Single Event Upon an Object Collision?
davesfarm
Member Posts: 14
Hi, I have two objects, a ground and a ball.
I want when the ball hits the ground to spawn some particles, and shake the camera.
I havent even looked into shaking the camera yet heh, but I cant get the particles to only spawn when the initial collision of the two objects happens.
the particles keep spitting out because the objects, i guess after the ball has landed, continue to collide...
I set up a rule that said, when the objects collide to spawn the particles... is this not the right way?
is there a rule that changes something like this to only happen once, or during the initial collision that I am not aware of?
I have a feeling this is something I am totally just noticing because it seems like one would want this behavior quite often...
thanks!
I want when the ball hits the ground to spawn some particles, and shake the camera.
I havent even looked into shaking the camera yet heh, but I cant get the particles to only spawn when the initial collision of the two objects happens.
the particles keep spitting out because the objects, i guess after the ball has landed, continue to collide...
I set up a rule that said, when the objects collide to spawn the particles... is this not the right way?
is there a rule that changes something like this to only happen once, or during the initial collision that I am not aware of?
I have a feeling this is something I am totally just noticing because it seems like one would want this behavior quite often...
thanks!
Comments
then
When overlap or collide
and when self.firstimpact is false
--Do particals
--Change attribute self.firstimpact to true
So hopefully you can enlighten me on how do I?:
--Change attribute self.firstimpact to true
Thanks for the additional help!
I would recommend watch through tutorials as well as reading through the wiki. there is tons of info and have learned a lot watch tshirtbooths videos
http://gamesalad.com/forums/topic.php?id=11552
http://gamesalad.com/wiki/