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

0 Members and 1 Guest are viewing this topic.

Offline vzrenggamani

  • *
  • Posts: 86
  • Total likes: 14
  • 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

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]

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]

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:
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 »