My Project (2).wick (5.8 KB)
so, i started working on a roguelike shooter. i made the vcam follow the player, and the player’s gun point to the mouse using mouseX and Y, and javascript’s atan2 function. the problem is that, whenever the player moves (and so the vcam) the gun points to to mouse’s previous position and doesn’t update until the mouse is moved or clicked.
i assume, based on absolutely nothing, that wick’s (or candlestick’s, since that’s what im using) mouseX and Y values don’t update until the mouse is changed in any way. help would be appreciated.
