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 / For some reason, I can't draw a 2d box with variables.....

Author
Message
calvins da man
19
Years of Service
User Offline
Joined: 17th May 2006
Location:
Posted: 12th Dec 2007 03:03
Okay, so I tried to create a box next to the mouse, and it doesn't work. no box is drawn. What am I doing wrong?

TDK
Retired Moderator
22
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 12th Dec 2007 03:11 Edited at: 12th Dec 2007 03:13
Quote: "box mousex,mousex,mousex3,mousex3"


Where in your code snippet do you define the values for these four (three) variables? (For a box you need X1,Y1,X2,Y2).

What exactly are you aiming for as it's not clear from your snippet. Do you want a fixed size box to follow the mouse when you click the right mouse button?

TDK_Man

PS: Try and keep your indenting under control...

calvins da man
19
Years of Service
User Offline
Joined: 17th May 2006
Location:
Posted: 12th Dec 2007 03:27
I'm sorry, the real code reads:

I am trying to make a box appear next to the mouse when it is clicked, and then stay there untill a left click. Also, on the "click off" that turns the box off, the words "Welcome to the Cool Place!" cannot be clicked.
luke810
18
Years of Service
User Offline
Joined: 4th Sep 2006
Location: United States
Posted: 12th Dec 2007 04:48
Here is what It should look like (Based on my intepretation of what you said you wanted) I tried to comment where I changed things and explain why I changed them:

calvins da man
19
Years of Service
User Offline
Joined: 17th May 2006
Location:
Posted: 14th Dec 2007 04:21
YES!!! Thanks so much.

Login to post a reply

Server time is: 2025-06-02 09:58:50
Your offset time is: 2025-06-02 09:58:50