Adjust Mouse Aim on Rotation (CAPX included)

0 favourites
  • 1 posts
From the Asset Store
Total customisation of the input! You can combine inputs from all peripherals. Make your game accessible for everyone!
  • <img src="http://www.80bit.com/pic/aim-20131209-111944.jpg" border="0">

    Hey there - just working on my game and came into an issue I cant seem to wrap my head around - if anyone has any insight or could offer some guidance I'd be immensely grateful. :)

    CAPX: http://d.pr/f/C4TY/Wnsp5Unk

    Use mouse to aim, left click to shoot. Bullets line up perfectly with mouse cursor, as expected.

    Now use A or D keys to rotate the Player, and in turn the screen. Once you are rotated, especially at "odd" angles (like 41 degrees, or 76 degrees, etc) the bullets no longer line up with the mouse cursor. They are slightly off, but never by a consistent amount.

    Im thinking it has something to do with the angle of the gun itself, never properly lining up or something, but no matter what I try i cant seem to get it working where the accuracy is always 100% on the mouse cursor..

    Any ideas? Thank you so so much in advance!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)