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! / Face Correct Way When Sprite Walks Left or Right

Author
Message
FakeBlood
22
Years of Service
User Offline
Joined: 18th Nov 2002
Location: Alabama, United States
Posted: 10th Feb 2005 07:34
Thought this might be helpful to someone eventually, but most of all I was bored so I made it lol. It simply makes a character walk left or right and face the correct direction. Code is short but heavily commented making it look big. Also pushes a second character when you walk into it. One image file(sprite) is required to use the code.
This is my own way I came up with, might not be the best, but it works!
So no making fun of me when someone comes in and shows me how to do it in 3 lines lol. Anyway, Enjoy

FakeBlood
22
Years of Service
User Offline
Joined: 18th Nov 2002
Location: Alabama, United States
Posted: 14th Feb 2005 09:12 Edited at: 14th Feb 2005 09:16
Turned this into a little mini game for the fun of it and for others to learn with. Character walks left and right facing correct directions with animation. Goal is to push the other turtle to the right edge of the screen before time runs out. The turtle tries to get back to its home location and will try to push you back until it gets there, or until you push him to the edge of the screen. Displays blinking text also.

About 6kb to download with the character image included, so no big deal to download. Source Files included.
http://www.geocities.com/charliesworld2002/Platform.zip

Login to post a reply

Server time is: 2025-05-17 13:36:56
Your offset time is: 2025-05-17 13:36:56