Adjust Mouse Aim on Rotation (CAPX included)

Get help using Construct 2

Post » Mon Dec 09, 2013 7:21 pm




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!80bit2013-12-09 19:22:18
Made Cosmochoria - www.cosmochoria.com
Currently working on Slayaway Camp - www.slayawaycamp.com
B
27
S
8
G
3
Posts: 384
Reputation: 5,020

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests