How to shoot a bullet at the touch position?

Simple AppsSimple Apps Member Posts: 158

How to shoot a bullet at the touch position ??

Comments

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    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.

  • Simple AppsSimple Apps Member Posts: 158

    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.

  • Simple AppsSimple Apps Member Posts: 158

    Help me if any one knows or have a tutorial on it ??

  • ArmellineArmelline Member, PRO Posts: 5,397

    Something like this?

  • SocksSocks London, UK.Member Posts: 12,822

    @Armelline said:
    Something like this?

    Nice ! :smile:

  • ArmellineArmelline Member, PRO Posts: 5,397

    @Socks said:
    Nice ! :smile:

    The only clever bit was worked out years ago by @RThurman :D

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881

    B)

  • Simple AppsSimple Apps Member Posts: 158

    @Armelline

    Thank you

  • SocksSocks London, UK.Member Posts: 12,822
    edited January 2015

    @Armelline said:
    The only clever bit was worked out years ago by RThurman :D

    @RThurman said:
    B)

    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.

Sign In or Register to comment.