Page 1 of 1

how to stop after collision and start the movement.

PostPosted: Fri Jul 08, 2011 3:18 pm
by raminjoon
I want to stop my character after collision have it do something: play a animation then after few seconds start rolling again. PLZ help. my character has creator actor, animation finish, collision commands on it.

Re: how to stop after collision and start the movement.

PostPosted: Fri Jul 08, 2011 4:25 pm
by schnellboot
u shouldn't post the same thing twice

but anyway what makes the actor roll?
if it's in script editor u can just create a new variable named roll or something
then if you have like
Code: Select all
xvelocity=5;
you write
Code: Select all
if(roll==1)xvelocity=5;
else xvelocity=0;

then add new script in create actor event and write
Code: Select all
roll=1;
if you want it to roll on start up

then you add a script on collision and write roll=0; the animation changing script and also create a new timer
then in the timer event u write roll=1;
have fun

Re: how to stop after collision and start the movement.

PostPosted: Fri Jul 08, 2011 9:47 pm
by raminjoon
sorry for posting twice as I am a new member here and not familiar with how forum works but here is the situation friend. I got a ball it rolls on x-axis right? ok now, I got a shooter at the bottom of screen I shoot the ball at certain point on the screen when its coming in. So I want it to stop for 5 seconds and play a different animation then after the time is over I want it to start rolling and finishing rest of its x-axis. now I should tell you that I am at the point that It does what I want it to do but the problem is for example if the ball has a animation to laugh at waiting point, that ball with that animation moves like reading the xvelocity=5; for example then it turns in to rolling animation. so I dont want it to read the xvelocity=5; script while its waiting but it does and I cant take that off because i need xvelocity in first place for it to come on the screen. so any suggestion?

Re: how to stop after collision and start the movement.

PostPosted: Fri Jul 08, 2011 10:28 pm
by schnellboot
don't understand you sry
is this what you want?

Re: how to stop after collision and start the movement.

PostPosted: Sat Jul 09, 2011 12:43 am
by raminjoon
TTTHHHHAAAAANNNNKKK YYYYYOOOOOUUUUUU THIS IS EXACTLY WHAT I AM TALKING ABOUT THANKS DEAR SSOOOO DDAAAMMMNNNN MUCH.


:D :) :D :o

Re: how to stop after collision and start the movement.

PostPosted: Sat Jul 09, 2011 2:20 am
by raminjoon
one more question friend, how can I do multiply collision events. I mean ok first time I hit the ball it will bounce, second time I hit the ball I want it to explode. how can I do that. can you make a presentation sample for me PPPLLLZZZ. thanks

Re: how to stop after collision and start the movement.

PostPosted: Sat Jul 09, 2011 7:37 am
by schnellboot
if the ball bounces the first time
where will it go
because if it bounces to the otherside it won't come back for the second time lol