Hi, I want to create a jitter in the mouse position for a shooting game I'm making, just to make it a little tougher. I know it'd be a simple case of setting the mouse X and Y coordinates to a small random change but I can't find a way to do this in events and actions.
I've added a MOUSE object but the only option I've got in the ACTION section of EVERY TICK is to set the mouse cursor style, not the position as I'd like.
I would just make the cursor invisible, and use a sprite set position to the mouse x,y. For the jitter set the sprite position to mouse + random(-10,10). You'll probably want to use a variable, like if variable = this set position, variable = that set position + random.
The method employed in the example is to attach a sine-movement (angle) controlled sprite attached to the cross-hair/mouse position with the magnitude increasing in proportion to the distance the cross-hair is away from the ship.
Nice Project there Johnny. It sort of adds an extra it of detail to the game. Leaving the bullets shooting straight makes the game look a bit... constructed? While having it a bit waving just helps the game flow. Good job!