Computer Science Canada getting rid of variables |
Author: | rollerdude [ Thu Mar 03, 2005 10:27 pm ] |
Post subject: | getting rid of variables |
so i'm making an arcade game, and when i click on the icon to play one of the games, it plays the game, fine, but when it's over, i want to free up memory by getting rid of declared variables is there anyway to do this? |
Author: | ssr [ Thu Mar 03, 2005 10:52 pm ] |
Post subject: | |
so can we see ur code? 8) |
Author: | jamonathin [ Fri Mar 04, 2005 7:06 am ] |
Post subject: | |
if you mean that certain veriables equal sum big ass pic, they have to be of "int" type so make em equal to a number, otherwise, juss go look up a flexible array tutorial. |
Author: | Cervantes [ Fri Mar 04, 2005 8:10 am ] |
Post subject: | |
Well, if it's a picture, use Pic.Free. For fonts, Font.Free. jamonathin wrote: if you mean that certain veriables equal sum big ass pic
The variable isn't the picture, it's just a number that links to the picture. It's like files (you know how you have to have a streamIn variable). Oh, and on that matter, also close files that are opened using close |