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.

Author
Message
scuzz
16
Years of Service
User Offline
Joined: 27th Mar 2010
Location:
Posted: 28th Mar 2010 07:22
hey, im kinda new to programming. Wondering if anyone could provide the code to make an aimer (a sprite) follow the mouse pointer. thanks.
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 28th Mar 2010 17:18


Windows 7 32-Bit Home Premium Intel Pentium Dual-Core @ 1.46Ghz 2038mb RAM
scuzz
16
Years of Service
User Offline
Joined: 27th Mar 2010
Location:
Posted: 28th Mar 2010 20:39
When i run the exe. it loads the image where the mouse pointer is, but the sprite will not follow the pointer. here is what i have:
load image "aim.bmp",1

sprite 1,mousex(),mousey(),1
wait key
end
scuzz
16
Years of Service
User Offline
Joined: 27th Mar 2010
Location:
Posted: 28th Mar 2010 22:23
nevermind, figured it out. just need to loop the command. thanks tho

Login to post a reply

Server time is: 2026-07-26 21:12:22
Your offset time is: 2026-07-26 21:12:22