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 / can i somehow delete one individual peice of text

Author
Message
Outscape
16
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 23rd Jul 2008 21:31
i know thers a cls command to clear the screen
but i want to know if i can delete certain texts eg
somehting like
print "hi",1
delete print 1
or somthing

is that possible?

Creators of Outscape

http://forum.thegamecreators.com/?m=forum_view&t=132472&b=8
Outscape
16
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 23rd Jul 2008 22:22
dont worry i figured out using the timer command to do this

Creators of Outscape

http://forum.thegamecreators.com/?m=forum_view&t=132472&b=8
Nano brain
16
Years of Service
User Offline
Joined: 7th May 2008
Location:
Posted: 24th Jul 2008 19:43
Yes, that works. But, cls will also clear anything else from the screen, making you to have to repaste everything again, which can take up precious processor time.

So, an alternative to cls(which this alternative in not always useful) is to clear the text by changing the ink color to the background color and then repasting the text in the same place. This will 'clear' the text from the screen without having to clear the whole screen.

Ex:
pirate
18
Years of Service
User Offline
Joined: 18th Apr 2006
Location: u.s.a
Posted: 24th Jul 2008 22:24 Edited at: 24th Jul 2008 22:29
you can also make a condition have to = 1 for the text to be placed on the screen...

if mytext=1
text 15,100,"GOOD JOB, LEVEL COMPLETED"
endif

this way it will only be placed on the screen if mytext=1...
to delete the text you just have to make mytext=0
this way you can have mytext=2,mytext=3 and so on...
be sure to have a cls at the beginning of your program...
i hope this helps

thanks, pirate
Outscape
16
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 24th Jul 2008 23:35
yea but that has to be in a loop
ahwile its my best otpion thanks

Creators of Outscape

http://forum.thegamecreators.com/?m=forum_view&t=132472&b=8

Login to post a reply

Server time is: 2024-11-25 21:23:34
Your offset time is: 2024-11-25 21:23:34