applying xoffset to player causing funky results

BlitzMax Forums/BlitzMax Programming/applying xoffset to player causing funky results

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

the first thing I would do is apply the offset to both. The one on the left gets -(offsetx/2) and the one on the right gets (offsetx/2) this should put the mouse between them. then your movement limits become

>(MouseX-offsetx/2-shipwidth/2) and <(MouseX+offsetx/2+shipwidth/2)