// --------------------------------- //
// 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!
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. :)