Ok, I have Fixed Sledge's slidind problem, thanks to the If\EndIf statements.
Sync On : Sync Rate 30
Hide Mouse
Rem Load Animation: Sledge Idle R.
Load Image "C:\Documents and Settings\Compaq_Administrator\Desktop\Sledge\SledgeRight1.bmp",1,1
Load Image "C:\Documents and Settings\Compaq_Administrator\Desktop\Sledge\SledgeRight2.bmp",2,1
Load Image "C:\Documents and Settings\Compaq_Administrator\Desktop\Sledge\SledgeRight3.bmp",3,1
Load Image "C:\Documents and Settings\Compaq_Administrator\Desktop\Sledge\SledgeRight4.bmp",4,1
Rem Load Animation: Sledge Idle L.
Load Image "C:\Documents and Settings\Compaq_Administrator\Desktop\Sledge\SledgeLeft1.bmp",5,1
Load Image "C:\Documents and Settings\Compaq_Administrator\Desktop\Sledge\SledgeLeft2.bmp",6,1
Load Image "C:\Documents and Settings\Compaq_Administrator\Desktop\Sledge\SledgeLeft3.bmp",7,1
Load Image "C:\Documents and Settings\Compaq_Administrator\Desktop\Sledge\SledgeLeft4.bmp",8,1
Rem Load Animation: Sledge Running R.
Load Image "C:\Documents and Settings\Compaq_Administrator\Desktop\Sledge\sledgerunr1.bmp",9,1
Load Image "C:\Documents and Settings\Compaq_Administrator\Desktop\Sledge\sledgerunr2.bmp",10,1
Load Image "C:\Documents and Settings\Compaq_Administrator\Desktop\Sledge\sledgerunr3.bmp",11,1
Load Image "C:\Documents and Settings\Compaq_Administrator\Desktop\Sledge\sledgerunr4.bmp",12,1
Rem Load Animation: Sledge Running R.
Load Image "C:\Documents and Settings\Compaq_Administrator\Desktop\Sledge\sledgerunl1.bmp",13,1
Load Image "C:\Documents and Settings\Compaq_Administrator\Desktop\Sledge\sledgerunl2.bmp",14,1
Load Image "C:\Documents and Settings\Compaq_Administrator\Desktop\Sledge\sledgerunl3.bmp",15,1
Load Image "C:\Documents and Settings\Compaq_Administrator\Desktop\Sledge\sledgerunl4.bmp",16,1
Rem Sledge Animations
sledgex= sledgex
IdleR=1
SledgeIdleRight= 1
SledgeIdleR:
SledgeIdleRight= SledgeIdleRight + 1
If SledgeIdleRight > 4 Then SledgeIdleRight= 1
Sprite 1,sledgex,240,SledgeIdleRight : Scale Sprite 1,200
Return
IdleL=0
SledgeIdleLeft=5
SledgeIdleL:
SledgeIdleLeft= SledgeIdleLeft + 1
If SldgeIdleLeft > 8 Then SledgeIdleLeft= 5
Sprite 1,sledgex,240,SledgeIdleLeft : Scale Sprite 1,200
Return
RunR=0
SledgeRunRight=9
SledgeRunR:
SledgeRunRight= SledgeRunRight + 1
If SledgeRunRight > 12 Then SledgeRunRight= 9
Sprite 1,sledgex,240,SledgeRunRight : Scale Sprite 1,200
Return
RunL=0
SledgeRunLeft=13
SledgeRunL:
SledgeRunLeft= SledgeRunLeft + 1
If SledgeRunLeft > 16 Then SledgeRunLeft= 13
Sprite 1,sledgex,240,SledgeRunLeft : Scale Sprite 1,200
Return
Rem Sledge Movement
Movement:
If Rightkey()=1
RunR= 1
RunL= 0
IdleR= 0
IdleL=0
sledgex= sledgex + 10
EndIf
If Rightkey()=0
RunR=0
IdleR=1
IdleL=0
sledgex= sledgex
EndIf
If Leftkey()=1
RunR=0
RunL= 1
IdleR=0
IdleL=0
sledgex= sledgex - 10
EndIf
If RunR = 1
Sprite 1,sledgex,240,SledgeRunRight
If RunR=0
IdleR=1
EndIf
EndIf
If RunL = 1
Sprite 1,sledgex,240,SledgeRunLeft
If RunL=0
IdleL=1
EndIf
EndIf
If IdleR=1
Sprite 1,sledgex,240,SledgeIdleRight
EndIf
Return
Rem Main Loop
Do
GoSub SledgeIdleR
GoSub SledgeIdleL
gosub SledgeRunR
gosub SledgeRunL
gosub movement
Sync : Sleep 20
Loop
So now his Left walking animation is functioning wonderfully!
Ahem... However He will not Idle facing the left side. I need to find a way to determine if Sledge is facing the left side or the right side. The first and only real thought that comes to mind is of course to use a variable. I just don't know how.
Example:
If SledgeDirection=0 Then He is facing the right side.
To bad that isn't an actual command...