The International Simutrans Forum

PakSets and Customization => General Resources and Tools => Topic started by: vzrenggamani on January 15, 2016, 11:42:25 AM

Title: How to make animated Pak graphic ?
Post by: vzrenggamani on January 15, 2016, 11:42:25 AM
Hi ,
Can anyone teach me about making animated pak graphic ? Like Water , Factory Producing ( smoke ).
Regards and Thanks..
Title: Re: How to make animated Pak graphic ?
Post by: Leartin on January 15, 2016, 12:18:28 PM
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.
Title: Re: How to make animated Pak graphic ?
Post by: Frank on January 15, 2016, 01:18:00 PM
Wiki - BackImage - Animations (http://simutrans-germany.com/wiki/wiki/tiki-index.php?page=en_BackImage&no_bl=y#Animations)

Wiki - SmokeDef (http://simutrans-germany.com/wiki/wiki/en_SmokeDef?structure=en_Devel_Index&page_ref_id=479)