Accelerate To: touch position problem, additional touches alter path
hey guys, having problems getting my bullet paths. when the player shoot, the bullets accelerate towards the touched position, however, if you touch again on the screen, before the previous(s) bullets have gone off screen, they change path immediately to the new touched area.
how do i make it so once the bullets have received their direction/path, that it cant be altered by anything?
http://gamesalad.com/game/42149
heres a link to the game atm incase you dont understand what i mean, fire at one location, then quickly shoot somewhere else and notice how the bullets change direction.
thanks guys
how do i make it so once the bullets have received their direction/path, that it cant be altered by anything?
http://gamesalad.com/game/42149
heres a link to the game atm incase you dont understand what i mean, fire at one location, then quickly shoot somewhere else and notice how the bullets change direction.
thanks guys
Comments
I'll post a response tomorrow sometime - it's a solution that Orbz showed me, so I can't take credit, but it'll do what you're describing.
Sorry I can't do it now - I just don't feel up to it!
Cheers,
QS
https://files.me.com/qsheep/qdjzjs
Cheers,
QS
however it has sparked a new problem. now the bullets arent shooting to the correct area.
e.g. their supposed to be shooting to where i touch on the screen, but instead their flying off completely to random positions it would seem, some off-screen, some +30'sh pixels off course.
any idea?
http://gamesalad.com/game/42149 to see what i mean
I imagine it's something to do with stuff you've added. If you put the bullets in and stuff just as I did, it should work...
So... Not sure! Sorry!
QS :O
In fact it is helpful to know an important difference. "When touch is pressed" means the actor has been touched within it's own shape (rectangle or circle). "Mouse is down" gets translated for iOS devices as the screen has been touched ANYWHERE.