Blank Screen - No image shows but Text saying Hi shows?? Code inside

Previous topic - Next topic

Amon

Code (glbasic) Select
// --------------------------------- //
// Project: RasterBars
// Start: Saturday, December 26, 2009
// IDE Version: 7.203


//SETCURRENTDIR("Media") // seperate media and binaries?

LOADSPRITE "rasterbar.png",0

SETSCREEN 800,600,0

LIMITFPS 60



LET GLOBAL yincrease = 50

TYPE RB
x
y
a
s
d
ENDTYPE

FOR xiter = 0 TO 10
GLOBAL r AS RB
r.x = 0
r.y = yincrease
r.a = 0
r.s = 10
r.d = 5
yincrease = yincrease + 10
NEXT

GLOBAL RBArr[] AS RB

DIMPUSH RBArr[], r

WHILE KEY(01) = 0

FOREACH r IN RBArr[]
DRAWSPRITE 0,r.x,r.y
NEXT

PRINT "Hi",100,100
SHOWSCREEN
WEND


Can anyone spot what I'm doing wrong?

Ta!
- http://www.amon.co | Dev Tools - BlitzMax - Shiva Unlimited - Unity Pro - Carrara 8 Pro - Hexagon 2.2.5 - Blacksmith 3D Paint - FuturePaint Pro - Bryce 7 Pro.
I'm never wrong at all; I just discover 1000 ways that don't work!

Amon

I fixed it. I had the gfx in the wrong media folder. I created one myself instead of using the one created by the app. :)
- http://www.amon.co | Dev Tools - BlitzMax - Shiva Unlimited - Unity Pro - Carrara 8 Pro - Hexagon 2.2.5 - Blacksmith 3D Paint - FuturePaint Pro - Bryce 7 Pro.
I'm never wrong at all; I just discover 1000 ways that don't work!