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

Author
Message
DayCreator
21
Years of Service
User Offline
Joined: 12th Dec 2002
Location:
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?
Moggie100
21
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:

walk=walk+1

code into:

walk=walk+0.5

which would make him walk at 1/2 speed.


Hope this helps,
Mog.

E-mail or call me on msn if you need any help @ moggie100@hotmail.com

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: 2024-03-29 06:42:57
Your offset time is: 2024-03-29 06:42:57