Hi! First time poster, so I apologize if my formatting is a bit off - been using Construct 3 for about 2 and a half months now; long story short, I'm making a vertical scroller/runner/shooter game for a client and after making it with 8-directional controls, he now wants the player to follow the mouse for directional control...
I have accomplished that with a bullet behaviour and having the angle of motion calculated towards the mouse with every tick, however when the 'player' reaches the mouse it jitters. I tried to compare if the mouse was +- 50 pixels from the player and only set the angle of motion to the mouse if it is outside of that range.. I am assuming that's the issue anyways.
[
pseudo code: System > Compare mouse.x not equal player.x +- 50 AND System > Compare mouse.y not equal player.y +- 50 >> player bullet behaviour set angle of motion to angle(player.x,player.y,mouse.x,mouse,.y)]
I have only actually been "coding" for maybe 3-4 months, too, so I may not be using the right terms and expressions as well.. or going about this in a really clunky way lol.
One other tidbit, the player is a spriter object (using the plugin) pinned to a sprite because I had to use spriter for some animations and the sprite object for some collision detection and movement controls.
Please let me know if there is any more information I can provide to help you help me xD