@TheComet
Thanks, I already had it working, this is my new code.
`sync on
`sync rate 40
xPos as integer
yPos as integer
xPos = 100
yPos = 100
load animation "finalAni.gif", 1
play animation 1, xPos, yPos
repeat
cls
if rightkey() = 1
inc xPos, 1
play animation 1, xPos, yPos
`place animation 1, 110, 110,
endif
if leftkey() = 1
dec xPos, 1
play animation 1, xPos, yPos
endif
`sync
until escapekey
The reason the SYNC commands are commented is because the animation only plays when SYNC is off, and as soon as it's back on, the animation isn't visible.
I am trying to add controls and collision to the animation, because it is a running animation for the player character, so it will need to move back and forth, jump and collide with platforms. The code I have move the animation, but it stops playing while it moves.
Again thanks for the help!