Search found 2 matches

by MaxedOutNodes
Mon Sep 16, 2024 9:34 pm
Forum: Support and Development
Topic: Trouble with move to mouse when clicked
Replies: 6
Views: 611

Re: Trouble with move to mouse when clicked

Thanks guys, I've come from web dev in Javascript still learning Lua and graphics, I'll use the tween library that's already done the mathematics.
by MaxedOutNodes
Sat Sep 14, 2024 6:12 pm
Forum: Support and Development
Topic: Trouble with move to mouse when clicked
Replies: 6
Views: 611

Trouble with move to mouse when clicked

Hi guys, I've got this simple program and the idea is that when I left click, the player (square in this case) moves to where the cursor is. I have managed to get the square to move one pixel every time I click but I want it so that when I click, the square moves in a straight line towards that poin...