Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / move object to mouse

Author
Message
Spacebuddy
12
Years of Service
User Offline
Joined: 8th Sep 2011
Location:
Posted: 24th Apr 2012 22:42
Hi All,

Is there a command that allows an object to move to the mouse position clicked?

Thanks
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 24th Apr 2012 23:41
Assume the object id is in a variable named 'obj' and it was originally placed using SetSpritePositionByOffset:



Cheers,
Ancient Lady
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 24th Apr 2012 23:51
If you want it to happen over time you could use this:


Login to post a reply

Server time is: 2024-05-04 09:46:10
Your offset time is: 2024-05-04 09:46:10