-
Forum
-
- It is currently 12 Nov 2026, 12:12
- All times are UTC
Find tutorials, documentation, and resources for creating and using TheoTown plugins.
-
FranchuFranchu
- Inhabitant of a Country
- Reactions:
- Posts: 796
- Joined: 27 May 2017, 22:07
- Location: Freezing in Argentina
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Post
by FranchuFranchu » 17 Jun 2018, 20:22
Since KoalaGuy asked to be deleted, all his posts are gone. One of those posts was about custom animations. So here I am remaking the tutorial
To define your animation:
Code: Select all
[
{
"id":"myanimation",
"frames":[ {
"bmp":"myanim.png"
"move x":5 //In moment number 1,
//our animation will be in x 5
"move y":16 //and in y 16
},{
"bmp":"myanim.png"
"move x":10 //In moment number 2,
//our animation will be in x 10
"move y":16 //and in y 16
}
]
"handle interpolation":5 //5 ticks between
//moment 1 and moment 2
}
]
To use it:
Code: Select all
[
{
"id":"buildingwithanimation",
"type":"decoration",
"width":1,
"height":1,
"frames":[{"bmp":"basepart.png"}],
"animation":[
{"id":"myanimation"}
]
}
]
I hope I didn't mess up with anything
Did you know you can't blink while smiling :) ?
-
dom.stephen
- Small-town resident
- Reactions:
- Posts: 37
- Joined: 29 Jul 2017, 23:57
- Location: GMT+8:00
- Plugins: Showcase Store
- Version: Beta
-
Platform
Post
by dom.stephen » 24 Jun 2018, 13:30
How is x and y defined?
Audio, video, disco.
I hear, I see, I learn.
-
FranchuFranchu
- Inhabitant of a Country
- Reactions:
- Posts: 796
- Joined: 27 May 2017, 22:07
- Location: Freezing in Argentina
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Post
by FranchuFranchu » 24 Jun 2018, 14:34
You mean "move x" and "move y" or "x" and "y"?
Did you know you can't blink while smiling :) ?
-
dom.stephen
- Small-town resident
- Reactions:
- Posts: 37
- Joined: 29 Jul 2017, 23:57
- Location: GMT+8:00
- Plugins: Showcase Store
- Version: Beta
-
Platform
Post
by dom.stephen » 24 Jun 2018, 14:48
Both? I'm clueless to animations

Audio, video, disco.
I hear, I see, I learn.
-
FranchuFranchu
- Inhabitant of a Country
- Reactions:
- Posts: 796
- Joined: 27 May 2017, 22:07
- Location: Freezing in Argentina
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Post
by FranchuFranchu » 24 Jun 2018, 19:58
"x" and "y" select a certain part of a image. For example
Code: Select all
"frames":[{
"bmp":"file.png",
"x": 20,
"y":40,
"w": 30,
"h":50
}]
will use a 30×50 rectangle starting at point 20,40 of file.png and set it as the building's frame. You don't to use them in animations. You can use them in any building
"move x" and "move y" are for animations. They set the position of the animation in a specific moment
In the first example of this topic, I made the animation go from (5,16) to (10,16)
Did you know you can't blink while smiling :) ?
-
-LeoLeo-
- Inhabitant of a Solar System
- Reactions:
- Posts: 1623
- Joined: 08 Jul 2017, 10:46
- Location: Usa
- Skype: magHibVE
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Post
by -LeoLeo- » 18 Oct 2018, 14:53
I know we can put animations on roads, but....
Can it like... be tile dependent?
like frame 1-16 each have different animations, is that possible??
If so, can I have an example???
-
-LeoLeo-
- Inhabitant of a Solar System
- Reactions:
- Posts: 1623
- Joined: 08 Jul 2017, 10:46
- Location: Usa
- Skype: magHibVE
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Post
by -LeoLeo- » 18 Oct 2018, 16:55
@CommanderABab
Okay, let me check...
You took the pictures, made them into parks (+ animation), steal those parks textures and make those into animation themselves, took those textures and uses them as BG/FG animation for the road... right?
Wow.....
-
CommanderABab
- AB
- Reactions:
- Posts: 11263
- Joined: 07 Jun 2016, 19:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Post
by CommanderABab » 18 Oct 2018, 17:10
-LeoLeo- wrote: 18 Oct 2018, 16:55
@CommanderABab
Okay, let me check...
You took the pictures, made them into parks (+ animation), steal those parks textures and make those into animation themselves, took those textures and uses them as BG/FG animation for the road... right?
Wow.....
Yep. Putting them into parks for storage was to save plugin space. It isn't necessary, you could define textures in the animations themselves. If you wanted 16 different animations though, you have to define each one separately as frames in the animations would cycle through all the frames in it for each road tile.
my avatar:

-
Imran M
- Inhabitant of a Country
- Reactions:
- Posts: 832
- Joined: 24 Oct 2018, 11:41
- Plugins: Showcase Store
-
Plugin Creator
Platform
Post
by Imran M » 02 Dec 2018, 12:27
Wait, could I make a rocket? Like the one from the missile silo? Because I'm making a space exploration plugin.
I just love the DOPE-amine you get after completing a plugin!
-
Between3Characters
- Metropolitan
- Reactions:
- Posts: 123
- Joined: 04 Oct 2018, 11:31
- Plugins: Showcase Store
- Version: Beta
-
Platform
Post
by Between3Characters » 17 Jan 2019, 10:39
Hi franchu. Do i need the animation, like in the smoke types? (Each one frame every corner of a animation's png)
Moderators, dont delete our plugins please
-
MaysaChan
- Small-town resident
- Reactions:
- Posts: 26
- Joined: 11 Jul 2018, 18:08
- Location: Thailand
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Post
by MaysaChan » 29 Mar 2019, 14:51
Between3Characters wrote: 17 Jan 2019, 10:39
Hi franchu. Do i need the animation, like in the smoke types? (Each one frame every corner of a animation's png)
what is you question again?
Snailpot Co.,Ltd
Just another THAI DUDE
Rookie 3D Artist
Plugins Illustrator (Rookie)
&
Plugins Maker
-
CommanderABab
- AB
- Reactions:
- Posts: 11263
- Joined: 07 Jun 2016, 19:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Post
by CommanderABab » 11 May 2019, 16:36
Hidden Content
This board requires you to be registered and logged-in to view hidden content.
my avatar:

-
Imran M
- Inhabitant of a Country
- Reactions:
- Posts: 832
- Joined: 24 Oct 2018, 11:41
- Plugins: Showcase Store
-
Plugin Creator
Platform
Post
by Imran M » 30 Jul 2019, 18:45
CommanderABab wrote: 11 May 2019, 16:36
Hidden Content
This board requires you to be registered and logged-in to view hidden content.
36v6c1.jpg
You do not have the required permissions to view the files attached to this post.
Last edited by Imran M on 13 Jun 2020, 19:08, edited 1 time in total.
I just love the DOPE-amine you get after completing a plugin!
-
Imran M
- Inhabitant of a Country
- Reactions:
- Posts: 832
- Joined: 24 Oct 2018, 11:41
- Plugins: Showcase Store
-
Plugin Creator
Platform
Post
by Imran M » 20 Mar 2020, 18:07
@FranchuFranchu Lobby Does this still work?
I just love the DOPE-amine you get after completing a plugin!
-
Imran M
- Inhabitant of a Country
- Reactions:
- Posts: 832
- Joined: 24 Oct 2018, 11:41
- Plugins: Showcase Store
-
Plugin Creator
Platform
Post
by Imran M » 20 Mar 2020, 18:13
Yaaaas! You guys might actually see some rocket stuff going on!! About time too, my plugin was basically clickbait since it released!