Advanced smoke types

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
Lobby
Developer
Posts: 3714
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Advanced smoke types

#1

Post by Lobby »

As mentioned here you can add one or multiple smoke sources to your plugin. The definition to use smoke might look like

Code: Select all

"smoke":[{"id":"$smoke07","x":13,"y":-14}]
Where tags x and y define the relative position of the smoke source. Tag id defines which smoke object to use. We also defined the following smoke objects for you:
  • $smoke00
    Image
  • $smoke01
    Image
  • $smoke02
    Image
  • $smoke03
    Image
  • $smoke04
    Image
  • $smoke05
    Image
  • $smoke06
    Image
  • $smoke07
    Image
  • $watervapor00
    Image
  • $qualm00
    Image
The preview is just for impression. The animated version in the game might differ in size and frame count. Most of the smokes don't make sense for a chimney on a normal house. We encourage you to use either $smoke06 or $smoke07 for this purpose.
User avatar
Bearbear76
Former Bearbear65
Posts: 5730
Joined: 10 Feb 2017, 14:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: Advanced smoke types

#2

Post by Bearbear76 »

Lancaster Kingdom wrote: 28 Sep 2017, 00:55 Can you explain more about x and y? How do I get the smoke in the bottom of the building that's possible? I'm reading all the tutorials. :)
This thread should help you
http://www.theotown.com/forum/viewtopic.php?f=42&t=4147
User avatar
AntarcticTreay
Villager
Posts: 16
Joined: 07 Nov 2019, 08:06
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced smoke types

#3

Post by AntarcticTreay »

Can smoke be added to a train?
If the short answer is yes, what would it be like?
Train texture
Train texture
STEAM 1.png (1.33 KiB) Viewed 13095 times
Smoke:
smoke04.png
smoke04.png (1.9 KiB) Viewed 13095 times
CykaTrainSuit.json
(1.4 KiB) Downloaded 489 times
User avatar
Bearbear76
Former Bearbear65
Posts: 5730
Joined: 10 Feb 2017, 14:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: Advanced smoke types

#4

Post by Bearbear76 »

Never tried it but I think you might be able to add it normally via animation.
User avatar
TheFennekin
Neighborhood fox
Posts: 2728
Joined: 24 Aug 2017, 11:17
Location: Wandering around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced smoke types

#5

Post by TheFennekin »

@Naufhal yes and also cars or trams :)
User avatar
CERRERA
Townsman
Posts: 48
Joined: 25 Jan 2020, 06:19
Location: Philippines
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Advanced smoke types

#6

Post by CERRERA »

Lobby wrote: 21 Feb 2017, 21:08 As mentioned here you can add one or multiple smoke sources to your plugin. The definition to use smoke might look like

Code: Select all

"smoke":[{"id":"$smoke07","x":13,"y":-14}]
Where tags x and y define the relative position of the smoke source. Tag id defines which smoke object to use. We also defined the following smoke objects for you:
  • $smoke00
    Image
  • $smoke01
    Image
  • $smoke02
    Image
  • $smoke03
    Image
  • $smoke04
    Image
  • $smoke05
    Image
  • $smoke06
    Image
  • $smoke07
    Image
  • $watervapor00
    Image
  • $qualm00
    Image
The preview is just for impression. The animated version in the game might differ in size and frame count. Most of the smokes don't make sense for a chimney on a normal house. We encourage you to use either $smoke06 or $smoke07 for this purpose.

Smoke animation are supported by rotation?

Code: Select all    Reset

[ {"id":"$smoke01","x":45,"y":-50,"frame":0}, {"id":"$smoke01","x":45,"y":-50,"frame":1},{"id":"$smoke01","x":45,"y":-50,"frame":2}, {"id":"$smoke01","x":45,"y":-50,"frame":3} ]
JSON checker
Check
User avatar
JustAnyone
Developer
Posts: 3541
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Advanced smoke types

#7

Post by JustAnyone »

No, you should use animations for that.
User avatar
Вениамин Кузьминов
Villager
Posts: 21
Joined: 27 Jan 2024, 09:25

Plugin Creator

Platform

как делать дым

#8

Post by Вениамин Кузьминов »

Извините, а как вообще делать дым в плагин, если я создаю сам плагин в PDF? :?: :D
User avatar
CommanderABab
AB
Posts: 11193
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: как делать дым

#9

Post by CommanderABab »

Вениамин Кузьминов wrote: 26 Feb 2024, 18:06 Извините, а как вообще делать дым в плагин, если я создаю сам плагин в PDF? :?: :D
Follow the example in the first post to use smoke. PDF is the wrong type of file to create a plugin with.
Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”