Just a question
Moderator: Plugin Moderators
- Kamikazi
- Inhabitant of a Conurbation
- Reactions:
- Posts: 471
- Joined: 27 Jan 2018, 00:58
- Location: ESPAÑA
- Plugins: Showcase Store
- Version: Beta
- Contact:
-
Plugin Creator
Platform
Just a question
how do i make when i touch a biulding, for example, destroys the whole city
- Kulche
- Pluche
- Reactions:
- Posts: 1141
- Joined: 07 Jun 2017, 20:28
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Just a question
See Fun Attribute in Tutorials and Documentations section.
To make an explosion, add this to your code:
To make an explosion, add this to your code:
Code: Select all
... //Basic code for any building
"on click fun":[ //Fun will work on click. For daily use, change to "fun"
{
"actions":[{
"type":"disaster", //To add a disaster function
"id":"nuke", //Will cause a nuke to explode on the building
"x":0,
"y":0 //Position of 'nuke' action
}
]
}
]