Make enemy fly across screen
by Robby Millsap · in Torque Game Builder · 02/02/2011 (4:03 pm) · 3 replies
Instead of killing my enemy, I would like him to fly back the way he was hit and bounce off objects like a pinball machine.
I'm trying to use the same code for firing an arrow to make him fly but with no success
Is there a faster way to do this?
I'm trying to use the same code for firing an arrow to make him fly but with no success
Is there a faster way to do this?
About the author
#2
I'm using the Adventure Kit, so hit detection is built in. Currently they die when hit. I would like this, instead to bounce the enemy x pixels in the direction you are facing as if you kicked a ball.
02/03/2011 (3:55 pm)
Hi DavidI'm using the Adventure Kit, so hit detection is built in. Currently they die when hit. I would like this, instead to bounce the enemy x pixels in the direction you are facing as if you kicked a ball.
#3
02/03/2011 (10:18 pm)
believe you can set the collision response from "KILL" to "BOUNCE". That might solve it.
Torque Owner David Helmer
The Kids
How are you currently doing hit detection. If you have some code you can use the "code" markup