Butters261285
Programmer
I am in the progress of making a scrollin space shooter, i have managed to get all of the coding to work so that it moves, the screen has boundaries, the ship can fire two lasers that add to a score when they hit the aliens. Ive got some fake AI settings on the aliens so they appear at different places when they die (me.spriteNum).loch=random(30)or something similar.
i have made an image in photoshop of the ship on a slant left and right, all i require to know now is what the code is to swap a sprite with another image while a key is being pressed.
i would imagine somehting like
if keypressed(125) then
sprite(me.spriteNum) = sprite(4)
end if
if keyreleased(125) then
sprite(4) = sprite(me.spriteNum)
end if
but im not sure, can anyone help ?
i have made an image in photoshop of the ship on a slant left and right, all i require to know now is what the code is to swap a sprite with another image while a key is being pressed.
i would imagine somehting like
if keypressed(125) then
sprite(me.spriteNum) = sprite(4)
end if
if keyreleased(125) then
sprite(4) = sprite(me.spriteNum)
end if
but im not sure, can anyone help ?