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 / Detect a mouse click on an object

Author
Message
GMS0012
18
Years of Service
User Offline
Joined: 18th Nov 2006
Location:
Posted: 22nd Apr 2009 21:55
I have 2 cubes..

how can I detect a mouse click on them (and have an event added).

I want to have text1 if i click on the left cube and I want to have text2 if I click on the other one..

how can I do this in dbPro?
Dabbler
17
Years of Service
User Offline
Joined: 3rd Mar 2007
Location: Minnesota
Posted: 23rd Apr 2009 05:00
Try looking up the pick object command in the help file.

I hope this helps.


Whatever...
Scorpyo
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: italy
Posted: 23rd Apr 2009 20:45
something like this (old code)

Encrypto Studios
18
Years of Service
User Offline
Joined: 18th Dec 2005
Location: Virginia
Posted: 25th Apr 2009 00:25
here is something easier to read im using for my level editor.


GMS0012
18
Years of Service
User Offline
Joined: 18th Nov 2006
Location:
Posted: 25th Apr 2009 08:45
thanks guys

Login to post a reply

Server time is: 2024-11-24 09:03:42
Your offset time is: 2024-11-24 09:03:42