Animations

Learn here how to create and use plugins.

Moderator: Plugin Moderators

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

Platform

Plugin Creator

Animations

#1

Post by Kulche » Fri Jan 24, 2020 11:47

I rewrote the tutorial to make it clearer and easier for others to learn :)


Definition

First, you have to define the animation so you can use it later. Here's how to do so:

Code: Select all

[
	{
	"id":"$tutorial_animation00", //unique id of your animation
	"type":"animation",
	"frames":[{"bmp":"tutorial.png"}, {"bmp":"tutorial2.png"}],
	"speed":2.5 //speed at which will the frames change, 1 is default, the higher the value, the slower it goes
}
]
tutorial.png
tutorial.png (75 Bytes) Viewed 341 times
tutorial2.png
tutorial2.png (76 Bytes) Viewed 341 times

Usage

Now, you need to add the actual animation to a building:

Code: Select all

[
	{
	... //rest of the building's code goes here ^
	"animation":[
		{"id":"$tutorial_animation00", //defines which animation will it use
		"x":14, //position of animation on horizontal axis, x:0 is at the leftmost edge, will show the anim close to the center
		"y":-3 //position on vertical axis, x:0 is on the middle of the tile, will show the anim slightly above the center
		}]
}
]
And, that's the result:
yes_you_have_to.png
You have to believe it actualy moves, here's the file if you don't:
KulcheAnimations.zip
(13.76 KiB) Downloaded 6 times
Hope I didn't mess up with anything, if I did, notify me down there \/ :)
I'm not lazy, I'm motivated to do nothing!
...blame lobby for that

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

Platform

Plugin Creator

Re: Animations

#2

Post by Ølsken » Fri Jan 24, 2020 13:28

Nice tutorial :)
ImageJust my opinion

User avatar
yusuf8a684
Inhabitant of a Continent
Reactions:
Posts: 1245
Joined: Sun Dec 10, 2017 22:09
Location: Turkiye
Plugins: Show
Phone model: Samsung S5610K

Plugin Creator

Platform

Re: Animations

#3

Post by yusuf8a684 » Fri Jan 24, 2020 14:14

I kinda understand now but not sure :D
The Internet Addict

I can't define my self time to time... Just do not %100 trust me. Texting that honestly...

Know your friends well, enemies

...I am gone from forum and discord... But I will still play sometimes

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

Platform

Plugin Creator

Re: Animations

#4

Post by RayXP » Sun Jan 26, 2020 8:04

Same...
🇺🇸🇲🇽
FUTURE NFL WR OR QB
H-TOWN BOI 🐂🚀⭐
FOLLOW @RAY.XP ON INSTA
The Astros didn't cheat!
...My Real name is Ray

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”

Who is online

Users browsing this forum: No registered users and 1 guest