by pixelpoop » Tue Jul 17, 2007 9:35 am
make 3 files all the same size with the lives icons lined up. Name the first file something like lives_icons_00.png and delete all but one of the icons out of it. Now in the second file delete just one of the 3 icons and name it lives_icons_01.png
Now name the 3rd file lives_icons_02.png and leave all the icons in it.
Now add a new actor to the game and name it lives_icon, now add the 3 files as its animations.
Now add an Event:-Create Actor -Script editor
Click on:variables/functions -Change animation -Stopped
Now copy paste this below the line you just created: animpos=2;
Now replace the first script I gave you with this:
lives_icon.animpos-=1;
x=0;
y=0;
//change the zeros to equal the x and y positions for the starting point
if (character_lives==3){ DestroyActor("lives_icon"); character_lives=0; DestroyActor("Event Actor"); }