hey everyone!
so i have my code but for some reason it wont mirror back to the right after the left.
this is my code:
Rem Project: 2D game
Rem Created: 1/15/2006 7:37:41 PM
Rem ***** Main Source File *****
`Load the sprite
load image "media/sprites/hero1.png",1
`Set start Cords
x#=300
y#=450
`Set movespeed for INC and DEC later on if needed
movespeed#=.05
`Start loop
do
`clear screen so its black
CLS
`move left
if leftkey()=1
x#=x#-movespeed#
`If if is not fillped the right way then flip it
if leftkey() and flip# = 0
mirror sprite 1
flip# = 1
endif
endif
`Move right
if rightkey()
x#=x#+movespeed#
`If if is not fillped the right way then flip it
if leftkey() and flip# = 1
mirror sprite 1
flip# = 0
endif
endif
`Position knight in X# and Y# Cords
sprite 1,x#,y#,1
`print the current cords of sprite
print "X Cords: ",x#
print "Y Cords: ",y#
`set sprite alpha
set sprite alpha 1,150
`End loop
loop
if anyone could figure out why it wont mirror back that would be great.
thanks in advance,
-=Snowfall Stydios=-