
Animation in building rotation?
Moderator: Plugin Moderators
- MXD77
- Inhabitant of a Megacity
- Reactions:
- Posts: 256
- Joined: Mon May 15, 2017 0:05
- Location: Gdańsk
- Plugins: Show
Animation in building rotation?
It's possible to add animation to the buildings which has rotation 

Happy owner of cat and dog
Have a niceday
And greatings from Gdańsk

Have a niceday

And greatings from Gdańsk

- CommanderABab
- AB
- Reactions:
- Posts: 9242
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
- MXD77
- Inhabitant of a Megacity
- Reactions:
- Posts: 256
- Joined: Mon May 15, 2017 0:05
- Location: Gdańsk
- Plugins: Show
Re: Animation in building rotation?
So how code was look?
Happy owner of cat and dog
Have a niceday
And greatings from Gdańsk

Have a niceday

And greatings from Gdańsk

- CommanderABab
- AB
- Reactions:
- Posts: 9242
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
Re: Animation in building rotation?
Code: Select all
[{
"id": "helevatoranim.01",
"type" : "animation",
"speed": .5,
"frames": [
{"bmp":"upanimorn.png","w":1, "h":5,"count":32}
]
},
{
"id": "hbcanimat.01",
"type":"animation",
"speed":1,
"frames":[
{"bmp":"bcgrndflrallorn.png"}
]
},{
"id": "hbcanimat.00",
"type":"animation",
"speed":1,
"frames":[
{"bmp":"bcwallsorn.png"}
]
},{
"id":"harborres48",
"type": "harbor ind",
"author": "CommanderABab",
"width": 1,
"height": 1,
"speed": 1,
"draw ground": true,
"rotation aware":true,
"need water":true,
"frames": [
{
"x": 0,
"y": 0,
"w": 0,
"h": 56,
"count": 4
}
],
"animation": [
{"id":"hbcanimat.01","x":0,"y":-7},
{"id":"helevatoranim.01","x":22,"y":-2},
{"id":"hbcanimat.00","x":0,"y":-7},
{"id":"helevatoranim.01","x":22,"y":-2},
{"id":"hbcanimat.00","x":0,"y":-14},
{"id":"helevatoranim.01","x":22,"y":-9},
{"id":"hbcanimat.00","x":0,"y":-21},
{"id":"helevatoranim.01","x":22,"y":-16},
{"id":"hbcanimat.00","x":0,"y":-28},
{"id":"helevatoranim.01","x":22,"y":-23},
{"id":"hbcanimat.00","x":0,"y":-35},
{"id":"helevatoranim.01","x":22,"y":-30},
{"id":"hbcanimat.00","x":0,"y":-42},
{"id":"helevatoranim.01","x":22,"y":-37},
{"id":"hbcanimat.00","x":0,"y":-49},
{"id":"helevatoranim.01","x":22,"y":-44},
{"id":"hbcanimat.00","x":0,"y":-56},
{"id":"helevatoranim.01","x":22,"y":-51}
],
"power": -20,
"water": -10,
"level": 2
}]
- Attachments
-
- Not used. It messed up the elevator animation.
- bcrooforn.png (173 Bytes) Viewed 1281 times

- MXD77
- Inhabitant of a Megacity
- Reactions:
- Posts: 256
- Joined: Mon May 15, 2017 0:05
- Location: Gdańsk
- Plugins: Show
Re: Animation in building rotation?
Ok thanksCommanderABab wrote: ↑Sat Aug 05, 2017 16:02bcgrndflrallorn.png
upanimorn.png
bcwallsorn.png
Code: Select all
[{ "id": "helevatoranim.01", "type" : "animation", "speed": .5, "frames": [ {"bmp":"upanimorn.png","w":1, "h":5,"count":32} ] }, { "id": "hbcanimat.01", "type":"animation", "speed":1, "frames":[ {"bmp":"bcgrndflrallorn.png"} ] },{ "id": "hbcanimat.00", "type":"animation", "speed":1, "frames":[ {"bmp":"bcwallsorn.png"} ] },{ "id":"harborres48", "type": "harbor ind", "author": "CommanderABab", "width": 1, "height": 1, "speed": 1, "draw ground": true, "rotation aware":true, "need water":true, "frames": [ { "x": 0, "y": 0, "w": 0, "h": 56, "count": 4 } ], "animation": [ {"id":"hbcanimat.01","x":0,"y":-7}, {"id":"helevatoranim.01","x":22,"y":-2}, {"id":"hbcanimat.00","x":0,"y":-7}, {"id":"helevatoranim.01","x":22,"y":-2}, {"id":"hbcanimat.00","x":0,"y":-14}, {"id":"helevatoranim.01","x":22,"y":-9}, {"id":"hbcanimat.00","x":0,"y":-21}, {"id":"helevatoranim.01","x":22,"y":-16}, {"id":"hbcanimat.00","x":0,"y":-28}, {"id":"helevatoranim.01","x":22,"y":-23}, {"id":"hbcanimat.00","x":0,"y":-35}, {"id":"helevatoranim.01","x":22,"y":-30}, {"id":"hbcanimat.00","x":0,"y":-42}, {"id":"helevatoranim.01","x":22,"y":-37}, {"id":"hbcanimat.00","x":0,"y":-49}, {"id":"helevatoranim.01","x":22,"y":-44}, {"id":"hbcanimat.00","x":0,"y":-56}, {"id":"helevatoranim.01","x":22,"y":-51} ], "power": -20, "water": -10, "level": 2 }]

Happy owner of cat and dog
Have a niceday
And greatings from Gdańsk

Have a niceday

And greatings from Gdańsk

- CommanderABab
- AB
- Reactions:
- Posts: 9242
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
- rjroldan1
- Inhabitant of a Megalopolis
- Reactions:
- Posts: 647
- Joined: Mon Jul 17, 2017 16:16
- Location: Philippines
- Plugins: Show
- Contact:
Re: Animation in building rotation?
more writings my mind wanna blow up to understand
.╔═╗─────────────╔╗────────
║╬║─╔╗╔╦╗╔═╗╔╗─╔╝║╔═╗─╔═╦╗
║╗╣─╠╣║╔╝║╬║║╚╗║╬║║╬╚╗║║║║
╚╩╝╔╝║╚╝─╚═╝╚═╝╚═╝╚══╝╚╩═╝
───╚═╝────────────────────
T.P.C.
Plugin creator Doesn't had Cities
Re: Animation in building rotation?
Yes, this stuff is a bit tricky and there are multiple solutions to it. But most of the time you won't need this feature (at least I didn't).
=^._.^= ∫
- MXD77
- Inhabitant of a Megacity
- Reactions:
- Posts: 256
- Joined: Mon May 15, 2017 0:05
- Location: Gdańsk
- Plugins: Show
Re: Animation in building rotation?
It's looking really hard so that's need hard work 

Happy owner of cat and dog
Have a niceday
And greatings from Gdańsk

Have a niceday

And greatings from Gdańsk

- Designer Anthony
- Metropolitan
- Reactions:
- Posts: 105
- Joined: Sat May 23, 2020 20:40
- Location: California, USA
- Plugins: Show
- Version: Beta
Re: Animation in building rotation?
Do you need four frames to make rotation aware work? If less, will it still work?
- The_Real_Michael_1
- Black Hole
- Reactions:
- Posts: 1077
- Joined: Mon Mar 23, 2020 15:16
- Location: In the center of a Quasi Star
- Plugins: Show
- Contact:
Re: Animation in building rotation?
Bruh.Designer Anthony wrote: ↑Wed Feb 24, 2021 22:51Do you need four frames to make rotation aware work? If less, will it still work?
This topic is over three years old.
In the former solar system, there once was a star, 8 planets and their moons, some dwarf planets and their moons and asteroids. It was thriving in life.
Now there is nothing. Except me, a black hole, wandering through the emptiness of this Solar System.
Now there is nothing. Except me, a black hole, wandering through the emptiness of this Solar System.