I'm lost with my for statement...
Rem Project: Bullet
Rem Created: Sunday, August 28, 2011
set display mode 1700,1000,32
maximize window
hide mouse
Load image "Player.png",1
load image "Baddie.png",2
cls rgb(255,255,255)
Y#=100
i=50
i=500
Health#=100
for x = 2 to 10
x = x
next i
for y = 2 to 10
y = y
next i
for i = 2 to 10
sprite i,x,y,1
next i
sprite 1,x#,y#,1
set sprite 1,0,1
`---------------------Main loop
do
cls rgb(255,255,255)
`Make walls
box 0,950,1800,1000,rgb(0,0,0),rgb(0,0,0),rgb(0,0,0),rgb(0,0,0)
box 0,0,50,1000,rgb(0,0,0),rgb(0,0,0),rgb(0,0,0),rgb(0,0,0)
box 1650,0,1700,1000,rgb(0,0,0),rgb(0,0,0),rgb(0,0,0),rgb(0,0,0)
box 0,0,2250,50,rgb(0,0,0),rgb(0,0,0),rgb(0,0,0),rgb(0,0,0)
`Make chase
If x > x# then x = x-.3
If x < x# then x = x+.3
If y > y# then y = y-.3
If y < y# then y = y+.3
`Controls
IF upkey() then y# = y#-.6
IF downkey() then y# = y#+.6
IF rightkey() then x# = x#+.6
IF leftkey() then x# = x#-.6
`Collision system
If x# <= 49 then x# = 49
If y# <= 49 then y# = 49
If y# >= 931 then y# = 931
If x# >= 1631 then x# = 1631
`Update sprites
sprite 1,x#,y#,1
for i=2 to 10
sprite i,x,y,2
next i
loop
Wait, what?