Author Topic: How to make animated Pak graphic ?  (Read 1107 times)

0 Members and 1 Guest are viewing this topic.

Offline vzrenggamani

  • *
  • Posts: 81
  • Total likes: 12
  • Helpful: 0
  • SetanKothak Families :v :v
    • OpenWorld Tech
  • Languages: ID, EN, C++, HTML
How to make animated Pak graphic ?
« 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..

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

Offline Leartin

Re: How to make animated Pak graphic ?
« Reply #1 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:

Code: [Select]
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:
Code: [Select]
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.
« Last Edit: January 15, 2016, 12:35:20 PM by Leartin »