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 / mouse control thingy

Author
Message
blank
21
Years of Service
User Offline
Joined: 4th Mar 2003
Location: My Computer
Posted: 4th Mar 2003 12:40
How would i get the mouse to be able to click on an object then a circle appears round it then click somewhere else to move it there. and if you click on an object then right click another object then it moves it there and interacts with it?
thanks in advance
John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 4th Mar 2003 14:10
First you need to check for mouse coordinates. Then when the mouse is over a certain area, you can have a variable like mouseover=1

Then you can do
if mouseover=1
if mouseclick=1
(here i would suggest a clear sprite over your image)
endif
endif

So then you can have another variable like circleon=1 then

if circleon=1
if (mouse is where you need it to be)
if mouseclick()=1
do whatever
endif
endif
endif

Hope that helps you

RPGamer

Current - RPG: Eternal Destiny
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy!

Login to post a reply

Server time is: 2024-11-24 03:54:30
Your offset time is: 2024-11-24 03:54:30