Hi guys,
I am making a twin-stick shooter using my gamepad. The left analog stick is set up to make the player move on the layout and right you steer a crosshair to aim for the enemy.
The layout is bigger than the screen view so the player has a 'scroll to' behavior.
The ting is that I want the crosshair to be fixed to the screen (like a mouse pointer) so I put the crosshair on the GUI layer (that does not have parallax assigned.)
The problem is when I want to spawn a bullet (player spawn another object) and set the bullet angle to the crosshair position x and y, the aim is pretty way off. I guess that having the player and crosshair on different layers with different parallax properties that makes the problem.
How do I get around this problem? Thanks!