moving one frame thing only

Non-platform specific questions.

moving one frame thing only

Postby Caaz Games » Wed Feb 28, 2007 3:27 pm

is there a way to have an animation move only one frame and then stop again?
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Postby Sgt. Sparky » Wed Feb 28, 2007 7:55 pm

make a var called LastAnim,
when a key or event activates the anim change:
Code: Select all
Anim = animpos;
ChangeAnimationDirection("Event Actor", FORWARD);
if(animpos > Anim)
{
    ChangeAnimationDirection("Event Actor", STOPPED);
}

:D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby DilloDude » Thu Mar 01, 2007 12:00 am

Or if your animation is stopped, use
Code: Select all
animpos ++;
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Postby Fuzzy » Thu Mar 01, 2007 3:30 am

Actually, Dillo's works best. the other solution is not guarrenteed to only change one frame. It may be fine for some applications though.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Postby Caaz Games » Thu Mar 01, 2007 2:27 pm

Ok Thanks for the help! :D
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest