Jump to content


Photo

Sequence Animation


  • Please log in to reply
2 replies to this topic

#1 famous

famous

    GMC Member

  • GMC Member
  • 169 posts
  • Version:Unknown

Posted 14 July 2012 - 11:02 PM

Character Animation need more than 1 Animation like stand, walking, jump e.g. This Example offers 4 Functions to handle all Sequences in 1 single Sprite.

Download: www.mevedia.de/SA

Create Sequences

You can define Sequences by start- and end-number of the sub-Images and Speed.
animation_init();

animation_create(sprite0, "rotate", 0, 25, 1);
animation_create(sprite0, "spin", 26, 52, 1);

animation_set("rotate");

Sometimes you could need only 1 Image (like standing), so simply define a 1-Image-Range or the first Image Number and set Speed to 0.

animation_create(sprite0, "stand", 3, 3, 0);

Best regards,
famous
  • 0

#2 HelpMyFellowPeople

HelpMyFellowPeople

    GMC Member

  • GMC Member
  • 239 posts

Posted 16 July 2012 - 08:43 AM

Ahhh! This is brilliant! I havnt tested yet but this idea is great! I was thinking of working on some scripts to do just this! But now I dont have to. Thanks you. Like very much :)
  • 1

#3 Sasino97

Sasino97

    GMC Member

  • New Member
  • 35 posts
  • Version:GM8

Posted 25 July 2012 - 03:32 PM

This is fantastic :)! I'll download it, I will create 1 sprite per character :D!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users