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.

AppGameKit Classic Chat / What is the best way to clear screen in AGK?

Author
Message
Stormwire
13
Years of Service
User Offline
Joined: 3rd Sep 2010
Location:
Posted: 8th Jan 2012 05:51
In DBP you called CLS. I cant find anything similar in AGK.
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 8th Jan 2012 07:29
I don't think there is a CLS equivalent in AppGameKit (although I could be wrong). To hide things you need to use the SetWhateverVisible() commands. If you're talking about clearing a print command then it's basically not calling that command when syncing. A small example.



Stormwire
13
Years of Service
User Offline
Joined: 3rd Sep 2010
Location:
Posted: 8th Jan 2012 07:36
Thanks Hodgey. It is for a little program that uses 2d math functions to draw to the screen. It creates alot of sprites so i was hoping to have something that didnt need me to store every thing in an array to keep track of. I think your right I cant find anything even in the forum so it must be a case of loop through the array and delete as you go then update.
Hodgey
14
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 8th Jan 2012 07:39
You're welcome Stormwire, HideAllSprites() and DeleteAllSprites() would be a few nice commands to have.

Stormwire
13
Years of Service
User Offline
Joined: 3rd Sep 2010
Location:
Posted: 8th Jan 2012 07:44
DeleteAllSprites() would be sweet!
Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 8th Jan 2012 16:26
Quote: "DeleteAllSprites() would be sweet!"

I've already requested this feature for deleting all assets.

My signature is NOT a moderator plaything! Stop changing it!

Login to post a reply

Server time is: 2024-04-19 03:01:13
Your offset time is: 2024-04-19 03:01:13