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 Professional Discussion / Why this dont work

Author
Message
Tidus
22
Years of Service
User Offline
Joined: 17th Oct 2003
Location:
Posted: 19th Nov 2003 18:51
I want to go to the Load_Map label when I click then mouse button in this part of the code if (Mousex() > 197 and MouseY() > 367 and Mousex() < 441 and MouseY() < 401) then if (Mouseclick()=1) then Exit "See Source for more Info" but when I click the mouse the game finish without any error, why are this happen?
OSX Using Happy Dude
22
Years of Service
User Offline
Joined: 21st Aug 2003
Location: At home
Posted: 19th Nov 2003 18:52
Probably the mouse is in the required rectangle positions to start with, when you press the mouse button. Hence ending the program.


Mirrors are more fun than television. Well, that was fun, in a not-so-fun sort of way...
CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 19th Nov 2003 19:11 Edited at: 19th Nov 2003 19:13
you should probably get the click value first then see where the mous is located...

psuedo code:



but to agree, yes you are saying end/exit instead of calling sub

-RUST-

Login to post a reply

Server time is: 2026-07-26 20:16:45
Your offset time is: 2026-07-26 20:16:45