Night Animations

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
Kulche
Kluche
Reactions:
Posts: 987
Joined: Wed Jun 07, 2017 20:28
Location: hello ja can you don't
Plugins: Show
Version: Beta

Platform

Plugin Creator

Night Animations

#1

Post by Kulche » Sun Aug 25, 2019 13:10

I recommend looking here; viewtopic.php?f=41&p=152003#p152003, and at animations there: viewtopic.php?f=41&t=7455. Best results with help of paint.net.

Information
This requires Plugin Creator Tools by Lobby to see the effects.
image.png
Defining a light animation is basically a normal animation with some additions. They consist of

Code: Select all

"light":true/false
which will make the animation visible at night, and

Code: Select all

"light switching":true/false
which will make it appear at night only. Applies to animation definition.
Here's a table with current animations' IDs and pictures with it's pivot points marked:
LMAO_TUTORIAL4POTATAS.png
LMAO_TUTORIAL4POTATAS.png (3.81 KiB) Viewed 3494 times
Step-by-step Tutorial
1. You should obviously choose a building first. We will use one of default buildings:
1.png
1.png (860 Bytes) Viewed 3494 times
2. Now, choose window shapes which will you use and where. Mark pivot points with some visible color.
2.png
2.png (866 Bytes) Viewed 3494 times
3. Draw a line across the frame at y=0. This will help you with defining coordinates.
3.png
3.png (826 Bytes) Viewed 3494 times
4. Now, pick two visible colors and draw a line from the pivot point to the previous line. If you are using paint.net, length should be displayed at the bottom-left. This will be your y. In this case it's 5.
4.png
4.png (840 Bytes) Viewed 3494 times
Protip: Y is negative (-) when above the black line, and positive (not +, just nothing) when below. So our Y will equal -5.

5. Time for X. Draw a line like this. The length is your X, here it's 9. It's always positive unless your window is in the left, outside the frame.
5.png
5.png (845 Bytes) Viewed 3494 times
6. Coordinates should now be written in the animation code like this:

Code: Select all

"animation":[{"id":"1x2l", "x":9, "y":-5}]
For animation IDs and pictures look above. Enter the ID accordingly to the frame.

7. Repeat with other lights. Our complete code should look like that:

Code: Select all

...
"animation":[{"id":"1x2", "x":9, "y":-5}, {"id":"1x2", "x":23, "y":-2}]
Rotation Aware Buildings
In case your building is rotation aware or contains more than one frame, add "frame" to animation code like this:

Code: Select all

[{"id":"1x2", "x":16, "y":-7, "frame":0}, {"id":"1x2", "x":12, "y":-1, "frame":1}]
First light will apply to the first frame, and second - to the second frame.

Custom Animations
In case you want to add your own animations, the color for windows is FFF6BB, with glow of 50%. You may also like send me your own.

Please don't say a thing about IDs.

...pls enlarge the pics
I'm not lazy, I'm motivated to do nothing!
...blame lobby for that

User avatar
MONTEMARINO
Inhabitant of a Conurbation
Reactions:
Posts: 500
Joined: Sat Nov 18, 2017 19:23
Plugins: Show
Version: Beta

Platform

Re: Night Animations

#2

Post by MONTEMARINO » Fri Oct 04, 2019 23:58

Brilliant!
Just one question; could be one big frame with all the lights fitting the building instead of doing light by light?

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

Platform

Plugin Creator

Re: Night Animations

#3

Post by CommanderABab » Sat Oct 05, 2019 0:22

Yes, but it doesn't look so great having the whole building lit.
826!826Currently using beta 826. 826 What's new? :)
diagonal road tool!!
:)

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

User avatar
Kulche
Kluche
Reactions:
Posts: 987
Joined: Wed Jun 07, 2017 20:28
Location: hello ja can you don't
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Night Animations

#4

Post by Kulche » Sat Oct 05, 2019 7:16

If I'm correct, this will probably use some more texture space.
I'm not lazy, I'm motivated to do nothing!
...blame lobby for that

User avatar
MONTEMARINO
Inhabitant of a Conurbation
Reactions:
Posts: 500
Joined: Sat Nov 18, 2017 19:23
Plugins: Show
Version: Beta

Platform

Re: Night Animations

#5

Post by MONTEMARINO » Sat Oct 05, 2019 21:13

Not the whole building but a pattern of lights distributed all over the building. Also it could be a pattern of 4/5 floors frame repeated with animation for some skyscrapers, in order to save texture space.

Is that possible?

User avatar
Kulche
Kluche
Reactions:
Posts: 987
Joined: Wed Jun 07, 2017 20:28
Location: hello ja can you don't
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Night Animations

#6

Post by Kulche » Sat Oct 05, 2019 21:22

You just have to create a frame and define the animation. I think basic lights are still a better way.
I'm not lazy, I'm motivated to do nothing!
...blame lobby for that

User avatar
Cephues
Villager
Reactions:
Posts: 15
Joined: Sun Jun 16, 2019 10:01
Plugins: Show

Platform

Plugin Creator

Re: Night Animations

#7

Post by Cephues » Sun Nov 10, 2019 17:05

Is the glow mandatory?
Junk masę!

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

Platform

Plugin Creator

Re: Night Animations

#8

Post by CommanderABab » Sun Nov 10, 2019 17:57

No
826!826Currently using beta 826. 826 What's new? :)
diagonal road tool!!
:)

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

User avatar
Kulche
Kluche
Reactions:
Posts: 987
Joined: Wed Jun 07, 2017 20:28
Location: hello ja can you don't
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Night Animations

#9

Post by Kulche » Sun Nov 10, 2019 22:24

Not mandatory but surely looks better.
I'm not lazy, I'm motivated to do nothing!
...blame lobby for that

User avatar
rjroldan1
Inhabitant of a Conurbation
Reactions:
Posts: 499
Joined: Mon Jul 17, 2017 16:16
Location: Antipolo, Philippines
Plugins: Show
Contact:

Platform

Plugin Creator

Re: Night Animations

#10

Post by rjroldan1 » Sun Dec 22, 2019 13:45

Brilliant
T.P.C.


Theotown Philippine Corporation

PHILIPPINES :linux

User avatar
rjroldan1
Inhabitant of a Conurbation
Reactions:
Posts: 499
Joined: Mon Jul 17, 2017 16:16
Location: Antipolo, Philippines
Plugins: Show
Contact:

Platform

Plugin Creator

Re: Night Animations

#11

Post by rjroldan1 » Mon Dec 30, 2019 7:30

Btw wheres the texture of the light animation of those streetlights
T.P.C.


Theotown Philippine Corporation

PHILIPPINES :linux

User avatar
Kulche
Kluche
Reactions:
Posts: 987
Joined: Wed Jun 07, 2017 20:28
Location: hello ja can you don't
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Night Animations

#12

Post by Kulche » Mon Dec 30, 2019 21:11

I thought they wouldn't be useful, but apparently they seem to be. I'll send the ID tomorrow.
I'm not lazy, I'm motivated to do nothing!
...blame lobby for that

User avatar
RayXP
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2864
Joined: Sat Nov 17, 2018 21:49
Location: Houston, TX
Plugins: Show
Version: Beta
Phone model: E-Nova Premier 6

Platform

Plugin Creator

Re: Night Animations

#13

Post by RayXP » Tue Jan 21, 2020 5:43

I don't get it
🇺🇸🇲🇽
THE OFFICIAL STADIUM BUILDER OF THEOTOWN
H-TOWN BOI 🐂🚀⭐
FOLLOW @RAY.XP ON INSTA
The Astros didn't cheat!

User avatar
Kulche
Kluche
Reactions:
Posts: 987
Joined: Wed Jun 07, 2017 20:28
Location: hello ja can you don't
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Night Animations

#14

Post by Kulche » Tue Jan 21, 2020 20:02

RayXP wrote:
Tue Jan 21, 2020 5:43
I don't get it
It's basically an animation definition with some extra steps. You might want to check anims tutorials before this.
I'm not lazy, I'm motivated to do nothing!
...blame lobby for that

Cliff
Settler
Reactions:
Posts: 3
Joined: Mon Dec 30, 2019 21:23
Plugins: Show

Re: Night Animations

#15

Post by Cliff » Thu Feb 13, 2020 13:09

wait what? i dont get it

User avatar
Ølsken
Former Bearbear65
Reactions:
Posts: 5058
Joined: Fri Feb 10, 2017 14:53
Plugins: Show
Version: Beta
Phone model: Samsung S10

Platform

Plugin Creator

Re: Night Animations

#16

Post by Ølsken » Fri Feb 14, 2020 0:15

Cliff wrote:
Thu Feb 13, 2020 13:09
wait what? i dont get it
You don't get what?
ImageJust my opinion

User avatar
Kulche
Kluche
Reactions:
Posts: 987
Joined: Wed Jun 07, 2017 20:28
Location: hello ja can you don't
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Night Animations

#17

Post by Kulche » Fri Feb 14, 2020 10:15

Cliff wrote:
Thu Feb 13, 2020 13:09
wait what? i dont get it
Night frames are basically simple animations. If you don't get it, I recommend studying the animation tutorial.
I'm not lazy, I'm motivated to do nothing!
...blame lobby for that

User avatar
Lakan Haraya
Townsman
Reactions:
Posts: 76
Joined: Thu Mar 28, 2019 9:34
Location: Taytay, Rizal, Philippines
Plugins: Show
Version: Beta

Plugin Creator

Platform

Re: Night Animations

#18

Post by Lakan Haraya » Mon Mar 23, 2020 8:11

Hi :') how can I add headlights in vehicles? Like the one in motorcycles and fire truck :)
Ako ang iyong Haráya
I am your Imagination

Founder of the first rebuilder-manufacturer of passenger-type jeepneys in TheoTown history.

Member of
TPhil Corp
“TheoTown Philippines Corporation”

User avatar
Kulche
Kluche
Reactions:
Posts: 987
Joined: Wed Jun 07, 2017 20:28
Location: hello ja can you don't
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Night Animations

#19

Post by Kulche » Mon Mar 23, 2020 11:05

Just like any other animation :)
Try looking in the content_car.json
I'm not lazy, I'm motivated to do nothing!
...blame lobby for that

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”

Who is online

Users browsing this forum: No registered users and 1 guest