Wandering Animals

For Decorations and areal map layout tools.

Moderators: KoalaGuy, Showcase Moderators

Post Reply
User avatar
Lobby
Developer
Reactions:
Posts: 2733
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone: S7 edge

Wandering Animals

Post by Lobby » Sun Sep 10, 2017 15:48

Hi, here's another sample for fun functionality:
2017-09-10 15.40.14.png
Some animals wandering around and eating trees, wires and decorations :bb Here's a video๐ŸŽž showing them. They reproduce when you tap on them. Some of them will automatically be spawned on new maps.

Need some confusion? Here you have it :json

Code: Select all

// This is a plugin for TheoTown
// Visit www.theotown.com to learn more about TheoTown plugins
//
// Written by Lobby Divinus to demonstrate new fun functionality

[
  {
    "id":"$anim_terrain_animal00_animals00",
    "type":"animation",
    "frames":[{"bmp":"animals.png","w":32,"count":2,"handle y":8}],
    "speed":0.1
  },
  
  {
    "id":"$terrain_animal00",
    "type":"terrain",
    "ordinal":201,
    "width":1,
    "height":1,
    "title":"Wandering animals",
    "text":"Just some animals wandering around. Try to tap on them.",
    "frames":[null],
    "animation":[{"id":"$anim_terrain_animal00_animals00"}],
    "frame alignment area":true,
    "draw ground":true,
    "price":1000,
    "destroyable":false,
    "spawn":
    {
      "p":0.01,
      "height":600,
      "radius":600
    },
    "fun":[
      {
        "condition":{"type":"and","x":1,"inner":[
          {"type":"building","invert":true},
          {"type":"wire","invert":true}
        ]},
        "actions":[
          {"type":"build","id":"$terrain_animal00","x":1},
          {"type":"remove"}
        ],
        "p":0.1
      },
      {
        "condition":{"type":"and","y":1,"inner":[
          {"type":"building","invert":true},
          {"type":"wire","invert":true}
        ]},
        "actions":[
          {"type":"build","id":"$terrain_animal00","y":1},
          {"type":"remove"}
        ],
        "p":0.1
      },
      {
        "condition":{"type":"and","x":-1,"inner":[
          {"type":"building","invert":true},
          {"type":"wire","invert":true}
        ]},
        "actions":[
          {"type":"build","id":"$terrain_animal00","x":-1},
          {"type":"remove"}
        ],
        "p":0.1
      },
      {
        "condition":{"type":"and","inner":[
          {"type":"building","y":-1,"invert":true},
          {"type":"wire","y":-1,"invert":true}
        ]},
        "actions":[
          {"type":"build","id":"$terrain_animal00","y":-1},
          {"type":"remove"}
        ],
        "p":0.1
      }
    ],
    "on click fun":[
      {
        "condition":{"type":"and","x":1,"inner":[
          {"type":"buildable","id":"$terrain_animal00"},
          {"type":"building","invert":true},
          {"type":"wire","invert":true}
        ]},
        "actions":[
          {"type":"build","id":"$terrain_animal00","x":1}
        ]
      },
      {
        "condition":{"type":"and","y":1,"inner":[
          {"type":"buildable","id":"$terrain_animal00"},
          {"type":"building","invert":true},
          {"type":"wire","invert":true}
        ]},
        "actions":[
          {"type":"build","id":"$terrain_animal00","y":1}
        ]
      },
      {
        "condition":{"type":"and","x":-1,"inner":[
          {"type":"buildable","id":"$terrain_animal00"},
          {"type":"building","invert":true},
          {"type":"wire","invert":true}
        ]},
        "actions":[
          {"type":"build","id":"$terrain_animal00","x":-1}
        ]
      },
      {
        "condition":{"type":"and","y":-1,"inner":[
          {"type":"buildable","id":"$terrain_animal00"},
          {"type":"building","invert":true},
          {"type":"wire","invert":true}
        ]},
        "actions":[
          {"type":"build","id":"$terrain_animal00","y":-1}
        ]
      }
    ]
  }
]
Uses only one image:
animals.png
animals.png (1.47 KiB) Viewed 1204 times


Here the whole plugin as archive:
Attachments
animals.json
(3.34 KiB) Downloaded 98 times
wandering animals.zip
(2.56 KiB) Downloaded 163 times
...Have a nice stay

User avatar
JustAnyone
Inhabitant of a Planet
Reactions:
Posts: 1560
Joined: Sun Jul 23, 2017 12:45
Location: Space Station 478B
Plugins: Show
Version: Beta
Phone: Xiaomi Redmi 3s

Re: Wandering Animals

Post by JustAnyone » Sun Sep 10, 2017 15:51

That's very good thing. Totally using in my forests.
And another thing: What device and what screen recorder did you use?
President of Domkisas
Founder and owner of DSA
TheoTown discord manager
I can and or will reply to if someone says ANYONE
Developer of Plugin Creator.
Petition author of It's all fine.

User avatar
Lobby
Developer
Reactions:
Posts: 2733
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone: S7 edge

Re: Wandering Animals

Post by Lobby » Sun Sep 10, 2017 15:59

Thank you! I used a Galaxy S7 edge with a feature called Game Tools which is preinstalled from Samsung :teach
...Have a nice stay

User avatar
Josh
Graphic designer
Reactions:
Posts: 2181
Joined: Sat Mar 11, 2017 19:20
Location: First tell your location...
Plugins: Show
Version: Beta

Re: Wandering Animals

Post by Josh » Sun Sep 10, 2017 16:14

They stole my f*cking trees :lol:
Amazing job Lobby!
Proud TheoTown player sinds update 1.1.50

Creator of Aldorria, Covinton Empire, West Country, Sunnydale

Save nature, before it kills you๐ŸŒฒ

User avatar
Kulche
Inhabitant of a Conurbation
Reactions:
Posts: 547
Joined: Wed Jun 07, 2017 20:28
Location: In weird house
Plugins: Show
Version: Beta
Phone: Idk

Re: Wandering Animals

Post by Kulche » Sun Sep 10, 2017 17:57

I see new Runways in Your video. :D I think its coming! Btw nice!
Im a Wiki Editor now?

lol

Check my plugins!

User avatar
Josh
Graphic designer
Reactions:
Posts: 2181
Joined: Sat Mar 11, 2017 19:20
Location: First tell your location...
Plugins: Show
Version: Beta

Re: Wandering Animals

Post by Josh » Mon Sep 11, 2017 16:05

Lobby, can you make randomly spawning trees in the world so the animals can eat them and the amount of trees stays in balance
Proud TheoTown player sinds update 1.1.50

Creator of Aldorria, Covinton Empire, West Country, Sunnydale

Save nature, before it kills you๐ŸŒฒ

User avatar
Lobby
Developer
Reactions:
Posts: 2733
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone: S7 edge

Re: Wandering Animals

Post by Lobby » Mon Sep 11, 2017 16:29

Seems possible, especially if you would model trees as buildings (which makes a lot of sense as trees use just a subset of building features).
...Have a nice stay

User avatar
Josh
Graphic designer
Reactions:
Posts: 2181
Joined: Sat Mar 11, 2017 19:20
Location: First tell your location...
Plugins: Show
Version: Beta

Re: Wandering Animals

Post by Josh » Mon Sep 11, 2017 17:10

Cool!
Proud TheoTown player sinds update 1.1.50

Creator of Aldorria, Covinton Empire, West Country, Sunnydale

Save nature, before it kills you๐ŸŒฒ

User avatar
Barky
TheoTown Cartographer
Reactions:
Posts: 2077
Joined: Mon Apr 17, 2017 22:13
Location: Ireland
Plugins: Show

Re: Wandering Animals

Post by Barky » Mon Sep 11, 2017 19:15

:bc
Supreme leader of Reagold

"Only the dead have seen the end of the war"
-Plato

"It's all banter in the end" -Barky


Will leave forum if the tunnel issue is not (properly) resolved.

User avatar
Lobby
Developer
Reactions:
Posts: 2733
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone: S7 edge

Re: Wandering Animals

Post by Lobby » Tue Sep 12, 2017 12:54

I just updated this plugin to use new fun functionality from version 341. The animals will no longer eat power lines nor buildings :lol:

This plugin and variants of it will probably be included into the game.
...Have a nice stay

User avatar
Brody Craft
Inhabitant of a Multiverse
Reactions:
Posts: 5528
Joined: Tue Jan 24, 2017 11:15
Location: 69 Leetza St, Berevesk
Plugins: Show
Version: Beta
Phone: Samsung Galaxy Tab 3

Re: Wandering Animals

Post by Brody Craft » Tue Sep 12, 2017 14:27

Lobby wrote: โ†‘
Tue Sep 12, 2017 12:54
I just updated this plugin to use new fun functionality from version 341. The animals will no longer eat power lines nor buildings :lol:

This plugin and variants of it will probably be included into the game.
My god, animals eating power lines and buildings :lol: :shock:
"5000 Posts!"
President Of R.O.V.
CEO Of LobbyNet
1 Year Anniversary!
I play ROBLOX

Online
User avatar
A guy from Shireport
Former Fireout
Reactions:
Posts: 3173
Joined: Fri Feb 10, 2017 17:40
Location: Mini Market
Plugins: Show
Version: Beta

Re: Wandering Animals

Post by A guy from Shireport » Tue Sep 12, 2017 14:57

I must to kill that animal
Oh Hello Welcome To My Mini Market
And Don't pee on my floor

User avatar
CommanderABab
Inhabitant of a Multiverse
Reactions:
Posts: 5082
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Re: Wandering Animals

Post by CommanderABab » Wed Sep 13, 2017 3:10

Broken in 342
436436Currently using beta 436. 436 What's new? :bf
Level 4 roads!
:)

Telegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

User avatar
Josh
Graphic designer
Reactions:
Posts: 2181
Joined: Sat Mar 11, 2017 19:20
Location: First tell your location...
Plugins: Show
Version: Beta

Re: Wandering Animals

Post by Josh » Wed Sep 13, 2017 8:28

CommanderABab wrote: โ†‘
Wed Sep 13, 2017 3:10
Broken in 342
You have to download the latest version of the plugin
Proud TheoTown player sinds update 1.1.50

Creator of Aldorria, Covinton Empire, West Country, Sunnydale

Save nature, before it kills you๐ŸŒฒ

User avatar
CommanderABab
Inhabitant of a Multiverse
Reactions:
Posts: 5082
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Re: Wandering Animals

Post by CommanderABab » Wed Sep 13, 2017 9:15

Yep still broke
436436Currently using beta 436. 436 What's new? :bf
Level 4 roads!
:)

Telegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

User avatar
Lobby
Developer
Reactions:
Posts: 2733
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone: S7 edge

Re: Wandering Animals

Post by Lobby » Wed Sep 13, 2017 9:15

Thank you, it's a bug in action execution. Will be fixed in 343 :bf
...Have a nice stay

User avatar
CommanderABab
Inhabitant of a Multiverse
Reactions:
Posts: 5082
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Re: Wandering Animals

Post by CommanderABab » Thu Sep 14, 2017 9:12

Wandering animals still broke. I think it's because you no longer build new ones, just change the frames.

Fixed in 345. :)
436436Currently using beta 436. 436 What's new? :bf
Level 4 roads!
:)

Telegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

Hitez
Villager
Reactions:
Posts: 18
Joined: Sun Jul 30, 2017 6:55

Re: Wandering Animals

Post by Hitez » Sun Sep 17, 2017 2:15

You gotta get you that S8+ or a N8. Theotown looks gorgeous on it!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest