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.

Newcomers DBPro Corner / How to tell when you click a sprite?

Author
Message
Eponick
21
Years of Service
User Offline
Joined: 18th Mar 2003
Location:
Posted: 21st Mar 2003 01:36
Hmm, I was just wondering if there was a function or somthing to see when you leftclick a sprite.

Thanks
John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 21st Mar 2003 01:38
Nope Write one yourself, it would be easy.

RPGamer

Current - RPG: Eternal Destiny
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy! Oh ya, and Tat has a plugin for that!
Eponick
21
Years of Service
User Offline
Joined: 18th Mar 2003
Location:
Posted: 21st Mar 2003 01:40
Yea, i figured that much..But im lazy

Thanks anyway

John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 21st Mar 2003 01:42
Just check for if mousex() and mousey() and so on and so forth then a variable equals one (like over=1) then if over=1 if mouseclick()=1 then spriteclicked()=1

RPGamer

Current - RPG: Eternal Destiny
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy! Oh ya, and Tat has a plugin for that!
Eponick
21
Years of Service
User Offline
Joined: 18th Mar 2003
Location:
Posted: 21st Mar 2003 01:45


Havnt tested it yet but it should work

Or is there an even simpler way?

Eponick
21
Years of Service
User Offline
Joined: 18th Mar 2003
Location:
Posted: 21st Mar 2003 01:47
Oops, make that:



John H
Retired Moderator
21
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 21st Mar 2003 03:31


I just edited it a little Nice try though- you just checked if it was over, not clicked, and you didnt close the function properly Oh well

RPGamer

Current - RPG: Eternal Destiny
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy! Oh ya, and Tat has a plugin for that!

Login to post a reply

Server time is: 2024-09-20 01:13:51
Your offset time is: 2024-09-20 01:13:51