Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

2D All the way! / Need Help with Sprite animation

Author
Message
ChaosNet
21
Years of Service
User Offline
Joined: 16th Jan 2004
Location: United Kingdom
Posted: 17th Mar 2004 22:32
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

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)

Login to post a reply

Server time is: 2025-06-20 05:55:16
Your offset time is: 2025-06-20 05:55:16