I need help - I'm in the process of making a zelda style game and making the sprites is becoming brain wrecking.
I have made a main character sprite sheet with 44 images on it. I use the CREATE ANIMATED SPRITE command to grab the individual frames I need and that works fine.
My problem is with using the PLAY SPRITE command. I know it's buggy after having gone through the forums, but I couldn't see any piratical work-arounds. I know I can use the SET SPRITE FRAME command to stop the sprite from going through it's complete frame set - but how do you set it up within in a game loop? If I use it only 1 frame of the animation is shown.
I've also seen it on the forums that some people recommend animating the sprites yourself - but I have no idea how to even start doing this.
Here's my code as it stands
sync on : sync rate 60
hide mouse
create animated sprite 1, "player.bmp", 4, 11, 1
set sprite 1,1,1
sprite 2, 0, 0, 1
do
sprite 1, mousex(), mousey(),1
if keystate(17)=1 then play sprite 1, 40, 43, 100 `W
if keystate(31)=1 then play sprite 1, 36, 39, 100 `S
if keystate(30)=1 then play sprite 1, 28, 31, 100 `A
if keystate(32)=1 then play sprite 1, 32, 35, 100 `D
sync
loop
It uses wsad to get the sprite animating in the 4 directions - and you can use the mouse to move him about. I've also put the files along with media in a zip file.
http://cms-stu-iis.gre.ac.uk/sk125/sprite.zip
It's a small file (19KB) fans of Illusion Of Gaia may recognise the player
If any one can help me in any I'll be eternally grateful
(though knowing my luck - once the sprites are working I woun't be able to put them in my game properly)