Not having the animation play

Talk about making games.

Not having the animation play

Postby CrackedP0t » Thu Feb 13, 2014 11:06 pm

How would I make it that the frame of an actor's animation only changes when I change the animpos variable, but it stays where it is once it's been set?
/人 ◕‿‿◕ 人\
Fang Pictures, my game development company:
http://fangpictures.comuf.com
User avatar
CrackedP0t
 
Posts: 157
Joined: Mon Dec 30, 2013 5:49 pm
Location: Crested Butte, CO (The US of A)
Score: 8 Give a positive score

Re: Not having the animation play

Postby skydereign » Fri Feb 14, 2014 4:21 am

You can when changing animation set the animation state to STOPPED. If you want this to happen immediately, in the actor's create actor event, use ChangeAnimationDirection("Event Actor", STOPPED). With that the animation won't play, and setting animpos will do what you want.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: Not having the animation play

Postby CrackedP0t » Fri Feb 14, 2014 6:00 am

Yay, thank you! :D
That was one of the most annoying bugs in my game.
/人 ◕‿‿◕ 人\
Fang Pictures, my game development company:
http://fangpictures.comuf.com
User avatar
CrackedP0t
 
Posts: 157
Joined: Mon Dec 30, 2013 5:49 pm
Location: Crested Butte, CO (The US of A)
Score: 8 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron