we need more info. How are you firing the bullet? Button, touch? This affects how you write the code. I would suggest watching my GSLogic series. This will help you learn to code in GS.
Hi,
Gun (Actor) should fire a bullet(Actor) at the touch position of the screen. there is no button, and the gun should rotate and aim to the touch position.
I'm presuming by the 'clever bit' you mean the normalising of VectorToAngle ? Pretty useful stuff, I was actually trying to work that out, I know @RThurman has posted in the past, but I couldn't find an example.
Comments
we need more info. How are you firing the bullet? Button, touch? This affects how you write the code. I would suggest watching my GSLogic series. This will help you learn to code in GS.
Hi,
Gun (Actor) should fire a bullet(Actor) at the touch position of the screen. there is no button, and the gun should rotate and aim to the touch position.
Help me if any one knows or have a tutorial on it ??
Something like this?
Nice !
The only clever bit was worked out years ago by @RThurman
@Armelline
Thank you
I'm presuming by the 'clever bit' you mean the normalising of VectorToAngle ? Pretty useful stuff, I was actually trying to work that out, I know @RThurman has posted in the past, but I couldn't find an example.