How do i make Non-homing bullets?
Qorrel
Member Posts: 22
Hi.
I saw a tutorial on this quite sometime ago, yet i find it any more. Im trying to make a way so that when i press on the screen a bullet spawns at the player and then goes in a straight line to where he pressed. The only way i know how to do it means when ever i pressed somewhere else that bullet would change direction. Oh, im also trying to do it with Touch 3, incase that is significant.
-Qorrel.
I saw a tutorial on this quite sometime ago, yet i find it any more. Im trying to make a way so that when i press on the screen a bullet spawns at the player and then goes in a straight line to where he pressed. The only way i know how to do it means when ever i pressed somewhere else that bullet would change direction. Oh, im also trying to do it with Touch 3, incase that is significant.
-Qorrel.
Comments
Edit: The above is if it is heading towards that direction and continues on in that direction.
If you want it to stop and destroy when it gets to that point, give the bullet real type actor attributes to contain the target point(X,Y). Then interpolate its position attributes to those target points.
Then if its position matches its target destination( rule conditions) then destroy the actor.