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! / How do i use Sprites.. Please Help

Years of Service
User Offline
Joined: 12th Dec 2002
Posted: 14th Dec 2002 05:37
I see the line of saw the tutorial and examples from Dark Basics,

And my aim is to make a 2d game, but i need help understanding how to find the cordinates for the specific image i want...

Like i have a sprite sheet of megaman, rite there are a bunch of pictures of him doing a action scene by scene, how do i capture him walking?
Years of Service
User Offline
Joined: 15th Oct 2002
Location: Behind You...
Posted: 18th Dec 2002 22:42
One way of doing that would be to use the following code, the images are numbered 1-10 in the walking sequence.

You could change the walking speed by changeing the:


code into:


which would make him walk at 1/2 speed.

Hope this helps,

E-mail or call me on msn if you need any help @

Life is like a hot bath, the longer you're in it, the more wrinkles you get.

Login to post a reply

Server time is: 2023-05-30 12:26:24
Your offset time is: 2023-05-30 12:26:24