hey i was just wodnering im making a program for just a simple game kinda like paratrooper but a bit different, so i have the cannon rotating where iw ant it to,
if InKey$()= "a"
rotate sprite 1, sprite angle( 1 ) - 1
ENDIF
if inkey$() = "d"
rotate sprite 1, sprite angle( 1 ) + 1
ENDIF
but for some reason my shooting code,
if SpaceKey()=1
PLAY SOUND 1
sprite 10,Sprite x(1),Sprite y(1),6
scale sprite 10,50
set sprite diffuse 10,0,255,0
rotate sprite 10, sprite angle( 1 ) + 1
endif
if sprite exist(10)
move sprite 10,-1
endif
for some reason the bullet always shoots 90 degrees from the way it is facingso if the cannon is poiting straight up it will shoot straight left, anyone have any ideas, im thinking that my cannon picutre is sideways so i could rotate it and save the picture a different way so it would work? would that do the trick, thanks,