Animation in building rotation?

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
MXD77
Inhabitant of a Megacity
Reactions:
Posts: 256
Joined: Mon May 15, 2017 0:05
Location: Gdańsk
Plugins: Show

Platform

Animation in building rotation?

#1

Post by MXD77 »

It's possible to add animation to the buildings which has rotation :bq
Happy owner of cat and dog :D
Have a niceday :)
And greatings from Gdańsk ;)

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

Platform

Plugin Creator

Re: Animation in building rotation?

#2

Post by CommanderABab »

Yes
Image

User avatar
MXD77
Inhabitant of a Megacity
Reactions:
Posts: 256
Joined: Mon May 15, 2017 0:05
Location: Gdańsk
Plugins: Show

Platform

Re: Animation in building rotation?

#3

Post by MXD77 »

CommanderABab wrote:
Sat Aug 05, 2017 15:36
Yes
So how code was look?
Happy owner of cat and dog :D
Have a niceday :)
And greatings from Gdańsk ;)

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

Platform

Plugin Creator

Re: Animation in building rotation?

#4

Post by CommanderABab »

bcgrndflrallorn.png
bcgrndflrallorn.png (1 KiB) Viewed 1281 times
upanimorn.png
upanimorn.png (241 Bytes) Viewed 1281 times
bcwallsorn.png
bcwallsorn.png (463 Bytes) Viewed 1281 times
MXD77 wrote:
Sat Aug 05, 2017 15:50
CommanderABab wrote:
Sat Aug 05, 2017 15:36
Yes
So how code was look?

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
   }]
Uses rotation aware to keep the building which is placed level by level from flickering. It actually looks the same at each rotation. If a different look was needed each view, you would need to make the animations rotation aware and provide 4 times the frames I did.
Attachments
Not used.  It messed up the elevator animation.
Not used. It messed up the elevator animation.
bcrooforn.png (173 Bytes) Viewed 1281 times
Image

User avatar
MXD77
Inhabitant of a Megacity
Reactions:
Posts: 256
Joined: Mon May 15, 2017 0:05
Location: Gdańsk
Plugins: Show

Platform

Re: Animation in building rotation?

#5

Post by MXD77 »

CommanderABab wrote:
Sat Aug 05, 2017 16:02
bcgrndflrallorn.png
upanimorn.png
bcwallsorn.png
MXD77 wrote:
Sat Aug 05, 2017 15:50
CommanderABab wrote:
Sat Aug 05, 2017 15:36
Yes
So how code was look?

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
   }]
Ok thanks :bc
Happy owner of cat and dog :D
Have a niceday :)
And greatings from Gdańsk ;)

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

Platform

Plugin Creator

Re: Animation in building rotation?

#6

Post by CommanderABab »

Updated what you quoted.
Image

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

Platform

Plugin Creator

Re: Animation in building rotation?

#7

Post by rjroldan1 »

more writings my mind wanna blow up to understand

.╔═╗─────────────╔╗────────
║╬║─╔╗╔╦╗╔═╗╔╗─╔╝║╔═╗─╔═╦╗
║╗╣─╠╣║╔╝║╬║║╚╗║╬║║╬╚╗║║║║
╚╩╝╔╝║╚╝─╚═╝╚═╝╚═╝╚══╝╚╩═╝
───╚═╝────────────────────
T.P.C.
Theotown Philippine Corporation
Plugin creator Doesn't had Cities

User avatar
Lobby
Developer
Reactions:
Posts: 3637
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta

Platform

Re: Animation in building rotation?

#8

Post by Lobby »

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).
=^._.^= ∫

User avatar
MXD77
Inhabitant of a Megacity
Reactions:
Posts: 256
Joined: Mon May 15, 2017 0:05
Location: Gdańsk
Plugins: Show

Platform

Re: Animation in building rotation?

#9

Post by MXD77 »

It's looking really hard so that's need hard work :mine
Happy owner of cat and dog :D
Have a niceday :)
And greatings from Gdańsk ;)

User avatar
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?

#10

Post by Designer Anthony »

Do you need four frames to make rotation aware work? If less, will it still work?

User avatar
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:

Plugin Creator

Platform

Re: Animation in building rotation?

#11

Post by The_Real_Michael_1 »

Designer Anthony wrote:
Wed Feb 24, 2021 22:51
Do you need four frames to make rotation aware work? If less, will it still work?
Bruh.
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.

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”