how to stop after collision and start the movement.

Talk about making games.

how to stop after collision and start the movement.

Postby raminjoon » Fri Jul 08, 2011 3:18 pm

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.
raminjoon
 
Posts: 40
Joined: Tue Jul 05, 2011 5:34 am
Location: Denver, Co.
Score: 3 Give a positive score

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

Postby schnellboot » Fri Jul 08, 2011 4:25 pm

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
Last edited by schnellboot on Fri Jul 08, 2011 10:29 pm, edited 1 time in total.
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

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

Postby raminjoon » Fri Jul 08, 2011 9:47 pm

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?
raminjoon
 
Posts: 40
Joined: Tue Jul 05, 2011 5:34 am
Location: Denver, Co.
Score: 3 Give a positive score

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

Postby schnellboot » Fri Jul 08, 2011 10:28 pm

don't understand you sry
is this what you want?
Attachments
collisionStop.ged
(1.45 KiB) Downloaded 93 times
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

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

Postby raminjoon » Sat Jul 09, 2011 12:43 am

TTTHHHHAAAAANNNNKKK YYYYYOOOOOUUUUUU THIS IS EXACTLY WHAT I AM TALKING ABOUT THANKS DEAR SSOOOO DDAAAMMMNNNN MUCH.


:D :) :D :o
raminjoon
 
Posts: 40
Joined: Tue Jul 05, 2011 5:34 am
Location: Denver, Co.
Score: 3 Give a positive score

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

Postby raminjoon » Sat Jul 09, 2011 2:20 am

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
raminjoon
 
Posts: 40
Joined: Tue Jul 05, 2011 5:34 am
Location: Denver, Co.
Score: 3 Give a positive score

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

Postby schnellboot » Sat Jul 09, 2011 7:37 am

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
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest