How can I pause an animation?

Non-platform specific questions.

How can I pause an animation?

Postby Freddy » Thu Jun 19, 2008 8:29 pm

Anyone know how I can make an actor pause on the current frame of its animation when colliding with another actor?
Hola
User avatar
Freddy
 
Posts: 548
Joined: Sat Jun 02, 2007 3:42 pm
Location: Why do you want to know?
Score: 14 Give a positive score

Re: How can I pause an animation?

Postby asmodeus » Thu Jun 19, 2008 8:53 pm

There's a funciton:
ChangeAnimationDirection("Event Actor", STOPPED);
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: How can I pause an animation?

Postby Freddy » Thu Jun 19, 2008 9:06 pm

No, I need to have the specific frame, but, thanks anyway.
Hola
User avatar
Freddy
 
Posts: 548
Joined: Sat Jun 02, 2007 3:42 pm
Location: Why do you want to know?
Score: 14 Give a positive score

Re: How can I pause an animation?

Postby DXT » Fri Jun 20, 2008 12:53 am

MWAHAHAHAHAHA!

When you add that event, choose "wait for frame action" and pick the frame!

MWAHAHAHAHAHA!
Tremble in fear at my 3 kinds of ships!!!!
User avatar
DXT
 
Posts: 3
Joined: Thu Jun 05, 2008 8:55 am
Location: Omicron Persei 8
Score: 0 Give a positive score

Re: How can I pause an animation?

Postby feral » Fri Jun 20, 2008 12:58 am

if (animpos=6) // which ever frame you want to stop on
{
ChangeAnimation("Event Actor", "animation_name", STOPPED);

}
User avatar
feral
 
Posts: 308
Joined: Sun Mar 16, 2008 6:27 am
Score: 47 Give a positive score

Re: How can I pause an animation?

Postby feral » Fri Jun 20, 2008 1:04 am

Freddy wrote:Anyone know how I can make an actor pause on the current frame of its animation when colliding with another actor?


sorry just reread the first post

dxt is right.

on collision event.
select "change animation direction" = stopped
then instead of "immediate action"
choose "wait for frame action"
User avatar
feral
 
Posts: 308
Joined: Sun Mar 16, 2008 6:27 am
Score: 47 Give a positive score

Re: How can I pause an animation?

Postby Freddy » Fri Jun 20, 2008 5:25 pm

Thanks, but I need the animation completely stopped when it collides. For ex: if I had an actor with 10 frames, and when it colided with something else, it was on the third frame, I would need the third frame paused. If it was on the 5th frame when it collided, I would need the 5th frame paused, and so on. Any ideas?
Hola
User avatar
Freddy
 
Posts: 548
Joined: Sat Jun 02, 2007 3:42 pm
Location: Why do you want to know?
Score: 14 Give a positive score

Re: How can I pause an animation?

Postby asmodeus » Fri Jun 20, 2008 5:32 pm

Freddy wrote:Thanks, but I need the animation completely stopped when it collides. For ex: if I had an actor with 10 frames, and when it colided with something else, it was on the third frame, I would need the third frame paused. If it was on the 5th frame when it collided, I would need the 5th frame paused, and so on. Any ideas?

That should work with ChangeAnimationDirection(). When you collide the other Actor and you use that function, it should stop and that animpos, taht it was.
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: How can I pause an animation?

Postby Freddy » Fri Jun 20, 2008 6:58 pm

Ah, I see the problem here. I am using the script editor "change animation -> direction stopped" function, instead of the regular "change animation direction -> stopped" function. OK, problem solved, thanks everyone. :D
Hola
User avatar
Freddy
 
Posts: 548
Joined: Sat Jun 02, 2007 3:42 pm
Location: Why do you want to know?
Score: 14 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron