Custom animations

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
FranchuFranchu
Inhabitant of a Country
Reactions:
Posts: 774
Joined: Sun May 28, 2017 0:07
Location: Retrophrenology
Plugins: Show
Version: Beta

Custom animations

Post by FranchuFranchu » Sun Jun 17, 2018 22:22

Since KoalaGuy was 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
Currently Conlanging

......Affirmative=Positive=True=Yeah=Yes=OK=K=Potassium=K=0°K=-237°C

User avatar
dom.stephen
Small-town resident
Reactions:
Posts: 37
Joined: Sun Jul 30, 2017 1:57
Location: GMT+8:00
Plugins: Show
Version: Beta

Re: The ACTUAL tutorial on custom animations

Post by dom.stephen » Sun Jun 24, 2018 15:30

How is x and y defined?
Audio, video, disco.

I hear, I see, I learn.

User avatar
FranchuFranchu
Inhabitant of a Country
Reactions:
Posts: 774
Joined: Sun May 28, 2017 0:07
Location: Retrophrenology
Plugins: Show
Version: Beta

Re: The ACTUAL tutorial on custom animations

Post by FranchuFranchu » Sun Jun 24, 2018 16:34

You mean "move x" and "move y" or "x" and "y"?
Currently Conlanging

......Affirmative=Positive=True=Yeah=Yes=OK=K=Potassium=K=0°K=-237°C

User avatar
dom.stephen
Small-town resident
Reactions:
Posts: 37
Joined: Sun Jul 30, 2017 1:57
Location: GMT+8:00
Plugins: Show
Version: Beta

Re: The ACTUAL tutorial on custom animations

Post by dom.stephen » Sun Jun 24, 2018 16:48

Both? I'm clueless to animations :calc
Audio, video, disco.

I hear, I see, I learn.

User avatar
FranchuFranchu
Inhabitant of a Country
Reactions:
Posts: 774
Joined: Sun May 28, 2017 0:07
Location: Retrophrenology
Plugins: Show
Version: Beta

Re: The ACTUAL tutorial on custom animations

Post by FranchuFranchu » Sun Jun 24, 2018 21: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)
Currently Conlanging

......Affirmative=Positive=True=Yeah=Yes=OK=K=Potassium=K=0°K=-237°C

User avatar
-LeoLeo-
Inhabitant of a Planet
Reactions:
Posts: 1549
Joined: Sat Jul 08, 2017 12:46
Location: Planet Fastoon, Polaris Galaxy // Th
Plugins: Show
Version: Beta
Phone model: Vivo V7
Contact:

Re: Custom animations

Post by -LeoLeo- » Thu Oct 18, 2018 16: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???
• I'm one with the Lombaxes •
-สวัสดี! มีใครอ่านไทยมั๊ยฮะ?-
- #PrayForAizat -


Detroit: Become Human looks cool AS HELL ❤️ |ℹ️|
¤ The P.M. of Attobaxia.
¤ The CEO of Leopolis Corp.
¤ Love Ratchet&Clank

;) :space

User avatar
CommanderABab
AB
Reactions:
Posts: 7040
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Re: Custom animations

Post by CommanderABab » Thu Oct 18, 2018 17:37

Yes it is.

Search Red Box Road
587587Currently using beta 587. 587 What's new? :)
bus routes are supposed to be fixed!!
:cry:

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
CommanderABab
AB
Reactions:
Posts: 7040
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Re: Custom animations

Post by CommanderABab » Thu Oct 18, 2018 17:41

Redbox road.json
(16.48 KiB) Downloaded 17 times
587587Currently using beta 587. 587 What's new? :)
bus routes are supposed to be fixed!!
:cry:

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
CommanderABab
AB
Reactions:
Posts: 7040
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Re: Custom animations

Post by CommanderABab » Thu Oct 18, 2018 17:51

587587Currently using beta 587. 587 What's new? :)
bus routes are supposed to be fixed!!
:cry:

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
-LeoLeo-
Inhabitant of a Planet
Reactions:
Posts: 1549
Joined: Sat Jul 08, 2017 12:46
Location: Planet Fastoon, Polaris Galaxy // Th
Plugins: Show
Version: Beta
Phone model: Vivo V7
Contact:

Re: Custom animations

Post by -LeoLeo- » Thu Oct 18, 2018 18:35

CommanderABab wrote:
Thu Oct 18, 2018 17:51
viewtopic.php?p=49053#p49053
Thank you so much, Commander!!😁

Man, this is gonna be a blast!


Edit : I've now successfully spilled my drinks all over the table after looking at the code
• I'm one with the Lombaxes •
-สวัสดี! มีใครอ่านไทยมั๊ยฮะ?-
- #PrayForAizat -


Detroit: Become Human looks cool AS HELL ❤️ |ℹ️|
¤ The P.M. of Attobaxia.
¤ The CEO of Leopolis Corp.
¤ Love Ratchet&Clank

;) :space

User avatar
-LeoLeo-
Inhabitant of a Planet
Reactions:
Posts: 1549
Joined: Sat Jul 08, 2017 12:46
Location: Planet Fastoon, Polaris Galaxy // Th
Plugins: Show
Version: Beta
Phone model: Vivo V7
Contact:

Re: Custom animations

Post by -LeoLeo- » Thu Oct 18, 2018 18: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.....
• I'm one with the Lombaxes •
-สวัสดี! มีใครอ่านไทยมั๊ยฮะ?-
- #PrayForAizat -


Detroit: Become Human looks cool AS HELL ❤️ |ℹ️|
¤ The P.M. of Attobaxia.
¤ The CEO of Leopolis Corp.
¤ Love Ratchet&Clank

;) :space

User avatar
CommanderABab
AB
Reactions:
Posts: 7040
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Re: Custom animations

Post by CommanderABab » Thu Oct 18, 2018 19:10

-LeoLeo- wrote:
Thu Oct 18, 2018 18: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.
587587Currently using beta 587. 587 What's new? :)
bus routes are supposed to be fixed!!
:cry:

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

Online
User avatar
Imran M
Inhabitant of a Megacity
Reactions:
Posts: 277
Joined: Wed Oct 24, 2018 13:41
Plugins: Show
Phone model: Huawei p8 lite

Re: Custom animations

Post by Imran M » Sun Dec 02, 2018 14:27

Wait, could I make a rocket? Like the one from the missile silo? Because I'm making a space exploration plugin.
I HATE doing roofs, and I can't find any good window colours. :bb
I can also help, most of the time. As long as it's fun, or something easy, like making Json files.

My avatar is very original.

User avatar
Between3Characters
Metropolitan
Reactions:
Posts: 124
Joined: Thu Oct 04, 2018 13:31
Plugins: Show
Version: Beta
Phone model: 082155558223 redmi4a

Re: Custom animations

Post by Between3Characters » Thu Jan 17, 2019 12: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

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”

Who is online

Users browsing this forum: No registered users and 1 guest