Hello All. I am looking for a better, more gamer friendly way of throwing an object in my game.
I have a horizontally scrolling tilemap.
The player needs to throw an object to hit a target.
Currently, when the player throws the object I have the X and Y ending coord for the thrown object hard coded, so that the thrown object always goes to (player.position.x+100, 150). I use 150 because that is where I have my targets arranged (all at 150 Y).
I want to add other targets at different Y values.
The game is somewhat fast paced (scrolling speed), the player is moved via a joystick and objects are thrown with a button press.
I am looking for a way for the player to select a target prior to throwing.
I am thinking I could use a second "target selection" button, what do you think?
The issue is then, how do I know when a tile with a particular GID is on the screen so that I can set it as a possible target?
Due to animations, sound effects, and a large tilesheet I am already taking a sizable FPS hit, so I need to keep it somewhat simple.
Thanks for any help you can give!
HM50