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 / [DBP] A little help please.....

Author
Message
Pyramid Games Ltd
17
Years of Service
User Offline
Joined: 23rd Aug 2007
Location: Line 21, DBP
Posted: 6th Sep 2007 01:28
I need to know how when you click a button it goes to a sub routine and stays there instead of holding in the mouse...

Any Help?

Thanks,

PGL

Code Dragon
18
Years of Service
User Offline
Joined: 21st Aug 2006
Location: Everywhere
Posted: 6th Sep 2007 01:40
Code please

Pyramid Games Ltd
17
Years of Service
User Offline
Joined: 23rd Aug 2007
Location: Line 21, DBP
Posted: 6th Sep 2007 01:55 Edited at: 6th Sep 2007 03:47
Code Deleted



Randomness 128
17
Years of Service
User Offline
Joined: 13th Feb 2007
Location:
Posted: 6th Sep 2007 02:54
Try using do and loop in the sub routine.

Guyra
18
Years of Service
User Offline
Joined: 10th Nov 2005
Location: Norway
Posted: 6th Sep 2007 03:22
..and then use the return command with a specific trigger(if spacekey()=1 then return, for example) to go back to the main loop.
Pyramid Games Ltd
17
Years of Service
User Offline
Joined: 23rd Aug 2007
Location: Line 21, DBP
Posted: 6th Sep 2007 03:25
Oh ok! My problem is it won't clear the screen or delete anything. It just disables controls... Any help?

Guyra
18
Years of Service
User Offline
Joined: 10th Nov 2005
Location: Norway
Posted: 6th Sep 2007 03:29
To simply clear the screen use the command CLS. Preferrably right before the "gosub mouse". Also, you can use the SYNC command to update what's shown on the screen.
Pyramid Games Ltd
17
Years of Service
User Offline
Joined: 23rd Aug 2007
Location: Line 21, DBP
Posted: 6th Sep 2007 03:42 Edited at: 6th Sep 2007 03:45
Fixed nevermind...

Login to post a reply

Server time is: 2024-09-27 05:08:10
Your offset time is: 2024-09-27 05:08:10