1. Hello Guest! It's with a heavy heart that we must announce the removal of the Legacy GMC Archive. If you wish to save anything from it, now's the time! Please see this topic for more information.
    Dismiss Notice

Windows Can animated GIFs be added?

Discussion in 'Programming' started by MGSting, Nov 29, 2019.

  1. MGSting

    MGSting Member

    Joined:
    Jul 18, 2018
    Posts:
    23
    I know it can be done in GM2 but for original GM on Windows (version 8.1 I believe?) is it still possible? The gif isn't that long rather 4 or 5 seconds, or perhaps I can import it as an mp4 video?
     
  2. TsukaYuriko

    TsukaYuriko Q&A Spawn Camper Forum Staff Moderator

    Joined:
    Apr 21, 2016
    Posts:
    1,767
    Added to what, and how? As a resource via import? A sprite at runtime via sprite_add?

    Either way, the import dialog or documentation of the function you're trying to use include this information.
     
  3. MGSting

    MGSting Member

    Joined:
    Jul 18, 2018
    Posts:
    23
    For clarification, there's a 5 second animated gif I'm trying to add to the start of the project, it's not technically a sprite
     
  4. Catastrophe

    Catastrophe Member

    Joined:
    Sep 22, 2019
    Posts:
    222
    A sprite in GMS is an animation. create a sprite resource and import your GIF. I believe GMS < 2 can, but if it can't, just make it a spritesheet or split into into frames to load using:

    https://www.piskelapp.com/
     
    Last edited: Nov 30, 2019
  5. TheouAegis

    TheouAegis Member

    Joined:
    Jul 3, 2016
    Posts:
    7,136
    sprite_add()
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice