I have this code for the sprite
[lua]local function spriteMove(event)
if xmovement > 0 or xmovement < 0 then
guy:prepare(“guymove”)
guy:play(“guymove”)
elseif xmovement == 0 then
guy:prepare(“guystop”)
guy:play(“guystop”)
end
end
Runtime:addEventListener( “enterFrame”, spriteMove )[/lua]
the problem is that it only shows the first picture of the sprite for some reason (sprite doesn’t play)
Any ideas? [import]uid: 104376 topic_id: 22130 reply_id: 322130[/import]
[import]uid: 52491 topic_id: 22130 reply_id: 88015[/import]