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! / prite Animation-GIF or Spritesheet

Author
Message
They Killed Kenny
21
Years of Service
User Offline
Joined: 18th Jul 2004
Location: FL, USA
Posted: 27th Oct 2004 12:00
Which way is more felxible, animated GIf, or Spritesheet? I want to make an Isometric Type game, so I have to put the character in 8 angles. Right now i have this:




old wrinkly gave it to me, it worked, I wanted to find out somethingabout it and then he never answered. >.>

SO does anyone else have a different way of doing it with gifs? I
want to put more than one animation per file, so how would i go about doing that?
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 28th Oct 2004 00:23
I would use a sprite sheet, but it really depends on what editing software you have to create your sprites that would save yourself time in the creation process.

If no-one gives your an answer to a question you have asked, consider:- Is your question clear.- Did you ask nicely.- Are you showing any effort to solve the problem yourself
Old Wrinkly
23
Years of Service
User Offline
Joined: 14th Dec 2002
Location: Nth Devon UK
Posted: 28th Oct 2004 17:35
Sorry organised chaos, I thought I had finished with it and answered you, must be age catching up. If I am able to help just let me know.

OldWrinkly
They Killed Kenny
21
Years of Service
User Offline
Joined: 18th Jul 2004
Location: FL, USA
Posted: 29th Oct 2004 09:48 Edited at: 29th Oct 2004 09:49
its ok, i just need an example on how to put more thanone animation into a spritesheet

like this:


see? it has a character in 8 different angles, but I only want one angle to show up at a time.

I cant get it to work >.<
Old Wrinkly
23
Years of Service
User Offline
Joined: 14th Dec 2002
Location: Nth Devon UK
Posted: 29th Oct 2004 19:02
Hi. I see you have 66 images, Changing directions and what you want is to run say "Walk right" until you command it to change direction or turn etc.
Well what I do is cut out all the images Numbered 1 to 66.
Now make a variable ouside your loop "image=1".
Now in your loop you put " sprite 1,x,y, image"
Now if you just command "Inc image" it will run through the lot, which you dont want, so you do what I said previously,
If image>7 then image =1.
This as you know loops your first 7 from 1 to 7.
What you want is to change the animation to turn in any direction, so to do this you need to change the value of "image"
to the first number of the group you want.
So whatever you are using to command the turn, you out if "command":image = "the number you want":endif
and add the usual If image is more than"the last image"then image = "the first image".
I Know that if you are walking right and you want to turn right, you need to add the turn and the walk together during the turn so just experiment which looks best.
If you look below this, you will see a thread of mine "Sentry" have a read of this, it might help.
Best of luck.

OldWrinkly
Old Wrinkly
23
Years of Service
User Offline
Joined: 14th Dec 2002
Location: Nth Devon UK
Posted: 29th Oct 2004 19:09
sorry for typing error, YOU OUT, should read YOU PUT
So whatever you are using to command the turn, you out,if "command":image = "the number you want":endif

OldWrinkly
Old Wrinkly
23
Years of Service
User Offline
Joined: 14th Dec 2002
Location: Nth Devon UK
Posted: 30th Oct 2004 17:06
Hi, Your Source code is in "The Quiet One", Happy programing.

OldWrinkly
They Killed Kenny
21
Years of Service
User Offline
Joined: 18th Jul 2004
Location: FL, USA
Posted: 30th Oct 2004 22:51
thanks u really helped me there i had no idea how to do that
Old Wrinkly
23
Years of Service
User Offline
Joined: 14th Dec 2002
Location: Nth Devon UK
Posted: 30th Oct 2004 23:56
That's OK, If I can be of help in the future, your welcome. By for now.

OldWrinkly

Login to post a reply

Server time is: 2026-06-11 17:32:47
Your offset time is: 2026-06-11 17:32:47