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 position - how can i do it like object positionY?

Author
Message
Andrew
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: United Kindom (what makes it important?)
Posted: 17th Oct 2003 20:51
Well, in my game it's gonna have a frontpae where you can select what you wish to do.
How can i do the mouse position, so when the mouse is at a certain poit and is clicked it will go to wherever!!!
Its like object position like, if object positionyx(1)<600 this means if the object position, so how do i do this for mouse?

I can remeber most codes now this is great.
My website has great flash on it. go there http://www.marleygames.com
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 17th Oct 2003 20:53
mousex()
mousey()
will give you the position of the mouse on the screen


"Look a bandwagon.... lets jump on it!"
Andrew
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: United Kindom (what makes it important?)
Posted: 17th Oct 2003 21:03
So would i need something like
if mousex<20 then .....?

I can remeber most codes now this is great.
My website has great flash on it. go there http://www.marleygames.com
CattleRustler
Retired Moderator
21
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 17th Oct 2003 21:16
if mousex() < 20....

-RUST-
Andrew
21
Years of Service
User Offline
Joined: 23rd Aug 2003
Location: United Kindom (what makes it important?)
Posted: 17th Oct 2003 22:06
Also 1 other quikc question, how do i load a bitmap and show text as well, the text doesn't appear untill the bitmap has been deleted

I can remeber most codes now this is great.
My website has great flash on it. go there http://www.marleygames.com
zircher
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 18th Oct 2003 06:01
Check out the PASTE IMAGE command and the TEXT command, they can be used together to display images on the screen and write text to the screen.
--
TAZ

Login to post a reply

Server time is: 2024-09-21 06:31:48
Your offset time is: 2024-09-21 06:31:48