Computer Science Canada images flikering =view.update ,cls |
Author: | Kyle [ Sat Apr 23, 2005 9:25 pm ] | ||
Post subject: | images flikering =view.update ,cls | ||
ok iv done this before but along time ago and i had to restore my computer so i lost how to do this . im tring to make a helicopter game were u have to dodge the missles that randomly come at you. i have one hilicopter but two pictures and i have 2 missle pictures (so that the flame moves) ok so when i use the keys to move my heliopter the misle flikers a lot, i belive this is because of the cls. i tryed to put in View.Update but i think im doing it all wrong. i tryed removing some cls but then it leaves a helicopter trial. {heres my code}
|
Author: | Kyle [ Sat Apr 23, 2005 11:34 pm ] | ||
Post subject: | |||
I would like to Thank JonnyTightLips for Fixing my program. Ok now i ran into another problem it says :cannot allocate item. Out of id numbers (max 1000) heres my new code
sory guys im not computer programing compatible |
Author: | Bacchus [ Sun Apr 24, 2005 12:08 am ] |
Post subject: | |
see where u keep making the Pic.FileNew ... you need to free those pictures, after you draw the picture just use Pic.Free(picID:int) |
Author: | Kyle [ Sun Apr 24, 2005 8:05 am ] |
Post subject: | |
WoW thanks never would of thougt, hmm now i think i put the Pic.Free (chopper:int) but i cant find that code any more :s. oops. well thanks for the help your a life saver. |
Author: | jamonathin [ Mon Apr 25, 2005 6:09 am ] |
Post subject: | |
It's good that your saving space by var pic :int := Pic.FIleNew("blah"), but unless you plan on reseting the variable to its default value every time, then just array your pics, and draw them seperately, without using Pic.FileNew everytime. and besides, it saves on time, if you were to use larger pictures. |
Author: | Kyle [ Mon Apr 25, 2005 4:38 pm ] |
Post subject: | |
exsplain? im a little slow at this. |
Author: | Kyle [ Mon Apr 25, 2005 4:54 pm ] |
Post subject: | |
ok nvm about that for now... wel yesterday i add a lot of cool stuff like a high score list and blowing up animation and ground but turuing did not save it? even after saving more then once. ok so i had to start all over. but the one thing that i can not fix is that there are 2 hillicopter images that are suposed to rotate threw each other (animation to make it look like its putting out smoke) exy "chopperlevel1.bmp" and "chopperlevel2.bmp" is there any way to do this with out making the flikering ? what am i doing wrong? |