Save x and y of the target point into 2 attributes. Set move to behavior for your bullet. Specify direction x and y are same as for the saved attributes
That might work ok but the problem is that if you touch another place the bullet might go there instead, the touch thing in GS is a bit tricky, getting it to go somewhere is easy, getting to stay on that course can be tricky. If you wait until the bullet is done, then its no problem but people DONT wait they just touch everywhere like chickens looking for corn on the ground. I have spawed an actor where the touch was and then set the bullet to go to that actor, and game a time out for the firing so it was not true until it died. This keeps the bullet on track. So there are game issues that are more difficult to resolve than where to send the bullet. Good luck Mike
The problem I have with all of these options is that a bullet travels along a trajectory, effected by gravity and doesn't stop unless it hit's something. If it doesn't hit anything it travels off the screen..
Where it hit's the target is also where the damage occurs. I have a solution for this. It may not be elegant but it works with no performance issues that I can see at the moment.
You guy's may be able to refine even more for me too.
Comments
Mike
Check out the project Orbz made- it's awesome! (and SO simple!)
Seems that this question comes up every week. Maybe this should be a sticky?
http://gamesalad.com/game/play/76525
Where it hit's the target is also where the damage occurs. I have a solution for this. It may not be elegant but it works with no performance issues that I can see at the moment.
You guy's may be able to refine even more for me too.
http://gamesalad.com/game/play/83629
Cheers
Alcamie