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! / Sprite Sheets

Author
Message
old rinkly
20
Years of Service
User Offline
Joined: 11th Mar 2004
Location: Devon UK
Posted: 3rd Nov 2009 17:55
Hi, Been away for a while but decided to activate the old grey cells again. At 80, takes a bit of doing.
Regards sprite sheets I have forgotten how I overcome the following.
On sheets with eight lines,Directions of the compass.
If I am playing a sprite in one direction and I want to "Play Sprite" in another direction, how do I stop it running through the lines in between before running the one I want?.Cheers Old Rinkly

old rinkly
Virtual Nomad
Moderator
18
Years of Service
User Offline
Joined: 14th Dec 2005
Location: SF Bay Area, USA
Posted: 3rd Nov 2009 19:18 Edited at: 3rd Nov 2009 19:19
i think set sprite frame is what you're looking for. ie, if the direction has changed, set sprite frame to the first frame of that direction's animation sequence followed by play sprite.

Quote: "At 80, takes a bit of doing."

good luck, kid!


old rinkly
20
Years of Service
User Offline
Joined: 11th Mar 2004
Location: Devon UK
Posted: 3rd Nov 2009 21:47
Your right there Vertual Nomad, It all came back again. All it needs is a nudge. Cheers. Old Rinkly

old rinkly

Login to post a reply

Server time is: 2024-03-29 14:08:38
Your offset time is: 2024-03-29 14:08:38