1

Topic: [Suggestion] Animation

Hi,

  I assume animated tiles will be arriving in a future release - I'd like to suggest a method of implementing them.

  Each animation sequence should be contained within it's own image file (png). The sequence is defined from left to right, top to bottom. The trick is that the first frame is a dummy place holder (a blank solid colour) that defines the width and height of the frames.

  Example: If you had a sequence of 11 frames of animation, each of size 64x48. You could define an image of size 768x48. The first frame is a solid (single) colour that defines the width and height (64x48 solid blue of example). Then the animation will be cut out from left to right starting at position 64, 0 - 127, 47  etc.
  The same sequence of frames could also be defined in an image of size, 256x144 (4 cols x 3 rows).

  The advantage of doing it this way would be that the artist can define an animation sequence of any size they wish!

  If I get the time tonight, I'll upload an example image of what I mean...

2

Re: [Suggestion] Animation

Animated tiles, huh? I don't think this is neccessary at the moment and I REALLY don't think that this will arrive in a future release. wink
But keep this thread alive, don't spam and maybe someone who uses the search function can take the discussion on.

P.S. I haven't knew yet that .png can be animated. ^^
P.S.2 http://de.wikipedia.org/wiki/Animated_P … k_Graphics

Hooker's collection of the most Tee-ish skins!
http://www.teeworlds.com/forum/viewtopic.php?pid=39896

3

Re: [Suggestion] Animation

Humm... you can already animate images with the Envelopes... neutral
But admittedly, I don't know quite what you are saying... so I might be wrong. wink

Give others the respect you wish to be respected with. In the mean time, enjoy the website!

4

Re: [Suggestion] Animation

What he want are simple sprite animations, but I don't see something like this comming in an official release with official support.
But it's still possible to do some "sprite" animations, everyone who was on the Jump'n'Run servers should have seen some.

bam: WARNING:'src/game/server/gamemodes/mod.cpp' comes from the future

5

Re: [Suggestion] Animation

@Hooker, who said anything about animated PNG's?

@|X-treme|Bee, to be honest I've never used the Envelopes roll


The image below is based on the example I described above:

http://www.munyul.com/t/animation.png

In this image, the top left is the dummy frame used to define the size of all other frames, the colour used is irrelavant (it just needs to be a solid block in colour). The animation is simply a white box with text in it which slightly changes colour in each frame... The animation sequence is simple: 1, 2, 3, ... 10, 11, 1, 2 ... etc.

The game already has code to load PNG files and already has code to cut smaller images out of a larger images, so why not add a little bit of code to animate it all??

6

Re: [Suggestion] Animation

afaik animated solid tiles will never ever come up

Antoine de Saint Exupéry: It seems that perfection is reached not when there is nothing left to add, but when there is nothing left to take away.
Besides -  I am the gfx guy!

7

Re: [Suggestion] Animation

Huh, I think I've understood something wrong. I'm sorry. I'll go into the corner and I won't touch this thread anymore. I'm dirty. I'm bad. sad

Hooker's collection of the most Tee-ish skins!
http://www.teeworlds.com/forum/viewtopic.php?pid=39896

8

Re: [Suggestion] Animation

munyul wrote:

@|X-treme|Bee, to be honest I've never used the Envelopes roll


The image below is based on the example I described above:

http://www.munyul.com/t/animation.png

In this image, the top left is the dummy frame used to define the size of all other frames, the colour used is irrelavant (it just needs to be a solid block in colour). The animation is simply a white box with text in it which slightly changes colour in each frame... The animation sequence is simple: 1, 2, 3, ... 10, 11, 1, 2 ... etc.

The game already has code to load PNG files and already has code to cut smaller images out of a larger images, so why not add a little bit of code to animate it all??

Ooooh, I think I get it.
So it's like a simpler way of Animating images? :?

Give others the respect you wish to be respected with. In the mean time, enjoy the website!

9

Re: [Suggestion] Animation

hey, there is no need for animated tiles, quads ftw^^

Please use an english signature //heinrich5991

10

Re: [Suggestion] Animation

i like animated tiles but i think this way is to complicated!!!

11

Re: [Suggestion] Animation

@037, can you explain how someone could create the animated sequence shown below using quads?
http://members.tripod.com/~smajlik/new1/smiley022.gif

@Bobynator, how is this complicated? More than 80% of the needed code is already written in the game. As for the artists, this is a very flexible and easy to use format...