Code sharing
« Going Away »

Welcome Guest. Please Login or Register.
Nov 22nd, 2009, 11:02pm






Pages: 1  Reply Notify Send Topic Print
 thread  Author  Topic: Going Away  (Read 173 times)
narutogamer
Administrator
ImageImageImageImageImage

member is offline

Avatar




PM


Posts: 0
xx Going Away
« Thread started on: Sep 15th, 2007, 9:53pm »
Quote

yeah i have another crashed code the code works the sprite shows up but when the game window is minimized the tank sprite disappears some one please help heres the code

Code:
nomainwin

WindowWidth=264

WindowHeight=345

open "Space Invaders" for Graphics_nsb as #main
Print #main, "fill black"
print #main, "flush"
loadbmp "bkg","SPRITES\BG1.bmp"
print #main, "background bkg"
loadbmp "tank", "sprites\tank.bmp"
print #main, "addsprite tank tank"
print #main, "spritexy tank  120 290"
print #main, "drawsprites"
print #main, "FLUSH"'Glues the sprites down (FIXED)
print #main, "trapclose [close]"
wait

[close]
close #main
END
 
« Last Edit: Sep 15th, 2007, 10:01pm by Nicholas » User IP Logged

Rebels130
Guest
xx Re: Going Away
« Reply #1 on: Sep 16th, 2007, 3:02pm »
Quote

you need to use the flush command to hold all the graphics to the window. look up "flush" in the Just BASIC help file
User IP Logged

Nicholas
Guest
xx Re: Going Away
« Reply #2 on: Sep 16th, 2007, 3:28pm »
Quote

Try this:
Code:
nomainwin

WindowWidth=264

WindowHeight=345

open "Space Invaders" for Graphics_nsb as #main
Print #main, "fill black"
print #main, "flush"
loadbmp "bkg","SPRITES\BG1.bmp"
print #main, "background bkg"
loadbmp "tank", "sprites\tank.bmp"
print #main, "addsprite tank tank"
print #main, "spritexy tank  120 290"
print #main, "drawsprites";
print #main, "FLUSH"'Glues the sprites down (FIXED)
print #main, "trapclose [close]"
wait

[close]
close #main
END
 
User IP Logged

BPL
Administrator
ImageImageImageImageImage

member is offline

Avatar




PM


Posts: 9
xx Re: Going Away
« Reply #3 on: Sep 17th, 2007, 10:46am »
Quote

Nicholas why are you signed in as a guest?
User IP Logged

Nicholas
Administrator
ImageImageImageImageImage

member is offline

Avatar




Homepage PM

Gender: Male
Posts: 41
xx Re: Going Away
« Reply #4 on: Sep 17th, 2007, 3:21pm »
Quote

I don't know... My dial up was going too slow for me to log in so I jsut posed as guest.
User IP Logged

BPL
Administrator
ImageImageImageImageImage

member is offline

Avatar




PM


Posts: 9
xx Re: Going Away
« Reply #5 on: Sep 18th, 2007, 10:58am »
Quote

Ah
User IP Logged

Pages: 1  Reply Notify Send Topic Print
« Previous Topic | Next Topic »




New Monthly Ad-Free Plan!

$6.99 Gets 50,000 Ad-Free Pageviews!
| Hookah | Free Shoutboxes |

This Board Hosted For FREE By Conforums ©
Get Your Own Free Message Board!