• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Newby: about mouse clicks and location

G

gary schofield

Guest
Hi new here, just finished "space rocks" and "breakthrough" in GML.

I want to find out how to have an object immediately move from where it is at start, to another specific location, when mouse clicks on the object rather than the new location.

Can anyone direct me to something on this?

Thanks
 

YoSniper

Member
As long as you have the target coordinates defined previously, then in the Mouse Left Button Click Event, tell it to move towards that point. How you define the target x and y is another matter that you will have to define.
 
G

gary schofield

Guest
Thanks YoSnipper, ok I will look into ways of defining the target, I should get better search results on that... cheers!
 
Top