How would i make a sprite (rocket/bullet) fire from my ship...its a space invaders sort of game. Using dbp!
Below is my code...
REM USUAL SETTINGS
Sync on
Sync Rate 30
Hide mouse
Backdrop on
Color backdrop rgb(0,0,0)
score = 0
lives = 3
REM LOAD AND POSITION THE SHIP
Load image "sprites/ship.jpg", 1
make object box 1,0.4,0.4,0
texture object 1,1
move object down 1,1
REM LOAD THE ROCKET
Load image "sprites/rocket.jpg", 2
REM MAIN LOOP
Do
Set cursor 470,10
Print "Score ", score ; " Lives ", lives
REM CONTROLLS
if leftkey()=1 then move object left 1, 0.05
if rightkey()=1 then move object right 1, 0.05
Sync
Loop
Thanks