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.

DarkBASIC Discussion / need help!

Author
Message
loftin
18
Years of Service
User Offline
Joined: 3rd Feb 2007
Location:
Posted: 5th Feb 2007 17:37
i'm making a game for my class, and were farly new to barkbasic. we need to know how to make an object react when it is clicked on.

yo!
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 6th Feb 2007 09:02
One way is to detect the mouse's position on the screen versus the object's position on the screen.

This can be done by making use of the object screen x() and object screen y() with mousex() and mousey().

A short code demonstrating this, but not test is:


Login to post a reply

Server time is: 2025-05-26 03:41:01
Your offset time is: 2025-05-26 03:41:01