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 / how do i get rid of the box?

Author
Message
kRx
20
Years of Service
User Offline
Joined: 2nd Apr 2005
Location: Canterbury, Kent, UK
Posted: 8th Apr 2005 23:32
run the code and u should see what im trying to do...

when u press enter little box pops up which is great if u press enter again i intend the box to go away and the number to lower by 20. The number part works but the box wont go away after amny frustrating hours im gonna ask u guys

the code:


any help is hugly appreciated

kR
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 9th Apr 2005 23:25 Edited at: 9th Apr 2005 23:26
Hi there kRx

I've slightly modified your code so that when you select (press Enter) on the "Attack" option, the box pops up and when you select the "Magic" or "Item" option, the box disappears. I hope this is what you want it to do



The reason the box doesn't disappear is because you aren't *clearing* the screen. So, the old information that the screen displayed still exists.

This can be done using the CLS command, OR you can simply hide all your previous data.

You maybe thinking 'but I used the SYNC command'. The SYNC command that you used simply *adds to* or *works ON* (or *changes*) the display on your screen but doesn't clear away old data.

When dealing with 3D however, clearing is unnecessary and only refreshing will do because 3D objects are almost always 'in the picture' - that is, they have to be present at all times and they are only *changed* or *worked on* - i.e. rotated, moved, scaled etc....

I hope this helps and good luck with your project

Regards

HelloWorld Tommorrow
kRx
20
Years of Service
User Offline
Joined: 2nd Apr 2005
Location: Canterbury, Kent, UK
Posted: 10th Apr 2005 00:09
it was semi what i waas trying to do but the advice was great it works perfectly now but i did have to do it kinda unproffesionally and remove a few functions until i work out a eetter method for that. thannks v.much for ur help

kR
HWT
20
Years of Service
User Offline
Joined: 1st Apr 2005
Location: Earth
Posted: 10th Apr 2005 01:19
You're welcome kRx

Please do tell me what else is missing and I'll see if I can fix it

HelloWorld Tommorrow
kRx
20
Years of Service
User Offline
Joined: 2nd Apr 2005
Location: Canterbury, Kent, UK
Posted: 10th Apr 2005 03:34
its perfect now. ur a legend!

kR

Login to post a reply

Server time is: 2025-05-23 10:32:12
Your offset time is: 2025-05-23 10:32:12