News:

Want to praise Simutrans?
Your feedback is important for us ;D.

How to make animated Pak graphic ?

Started by vzrenggamani, January 15, 2016, 11:42:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vzrenggamani

Hi ,
Can anyone teach me about making animated pak graphic ? Like Water , Factory Producing ( smoke ).
Regards and Thanks..

SIMUTRANS INDONESIA WEBSITE  <<< Indonesia Simutrans Addons Center And Web
HOPE YOU UNDERSTAND MY ENGLISH

Leartin

#1
Well... this might not be the right place to ask this question.
Edit: Oh, and look at that, I have some awesome mod powers, so I can do something about it! -->moved

Every animation in Simutrans is created by displaying several images one after another.

For smoke, all you need to do is create a smoke object with a few images:

obj=smoke
name=whateveritiscalled
image[0]=...
image[1]=...


If nothing changed, industry emissions have two images, and vehicle emissions have 5 images. (Although if that is indeed still the case, I guess it's time for an extension request)

For water, use this:
obj=ground
name=Water
image[A][B]=...


where A is the depht of water and B is the frame of the animation, both starting with 0.

For Buildings, I'll link you to the tutorial I posted on Facebook a while ago:
https://www.facebook.com/photo.php?fbid=1148321635182970&set=gm.1627293387560288&type=3&theater
Essentially, it's the fifth parameter in a building image, and you just count up for the different animation frames.