Airplanes

Learn here how to create and use plugins.

Moderator: KoalaGuy

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

Airplanes

Post by Lobby » Sun Oct 08, 2017 13:11

Adding you own airplane to the game is straight forward. After you created your amazing graphics like this one :img
airplane.png
airplane.png (5.82 KiB) Viewed 744 times
You can define your plugin :json

Code: Select all

[
  {
    "id":"$lobby_airplane_mygreatairplane00",
    "title":"Big airplane",
    "text":"I'm the description.",
    "type":"airplane",
    "frames":[{"bmp":"airplane.png","w":96,"count":4,"handle x":48,"handle y":40}],
    "price":1000000,
    "fly height":200,
    "capacity":375,
    "speed":1
  }
]
An airplane plugin consists of four frames for each direction. Orientation for each frame works as for cars (v2).

About the handle, I recommend to move it to a point where you would say that's the center of the airplane on the ground:
airplane_handle.png
airplane_handle.png (3 KiB) Viewed 744 times
In case you're nice you might want to set a diamond price instead. That's possible with

Code: Select all

"diamond price":20
...Have a nice stay

User avatar
KoalaGuy
TheoTown Veteran
Reactions:
Posts: 6422
Joined: Mon Mar 06, 2017 21:45
Location: Koalafornia
Plugins: Show
Version: Beta
Phone: SamsungGalaxyJ5 2017
Contact:

Re: [Beta]Airplanes

Post by KoalaGuy » Sun Oct 08, 2017 13:13

Airplane plugin example:
viewtopic.php?f=59&t=4568
:)

User avatar
THEMAX
Inhabitant of a Galaxy
Reactions:
Posts: 2018
Joined: Thu Sep 14, 2017 17:30
Location: Paris, France
Plugins: Show
Version: Beta
Phone: STQAE imperial phone

Re: [Beta]Airplanes

Post by THEMAX » Sun Oct 08, 2017 13:56

THX YOU!!!
Emperor of Atlantean federated empire
Image
vive l'empereur et vive l'empire
leader of the space, aeronautic, military research , education and Health care

User avatar
CloakedGamer
Small-town resident
Reactions:
Posts: 29
Joined: Sat Oct 07, 2017 1:01

Re: [Beta]Airplanes

Post by CloakedGamer » Sun Oct 08, 2017 18:41

What is the width and height of a single frame of the aircraft?
:mine We are Rogue.

User avatar
KoalaGuy
TheoTown Veteran
Reactions:
Posts: 6422
Joined: Mon Mar 06, 2017 21:45
Location: Koalafornia
Plugins: Show
Version: Beta
Phone: SamsungGalaxyJ5 2017
Contact:

Re: [Beta]Airplanes

Post by KoalaGuy » Sun Oct 08, 2017 18:47

CloakedGamer wrote:
Sun Oct 08, 2017 18:41
What is the width and height of a single frame of the aircraft?
Frames provided here are width: 96, height:64

User avatar
JustAnyone
Inhabitant of a Solar System
Reactions:
Posts: 1672
Joined: Sun Jul 23, 2017 12:45
Location: Pickle Command Centre
Plugins: Show
Version: Beta
Phone: Xiaomi Redmi 3s

Re: Airplanes

Post by JustAnyone » Tue Dec 26, 2017 1:47

Could we have diamond price for award type plugins?
Founder and owner of DSA
TheoTown discord manager
Developer of Plugin Creator Application.

User avatar
rjroldan1
Inhabitant of a Conurbation
Reactions:
Posts: 394
Joined: Mon Jul 17, 2017 16:16
Location: philippines
Plugins: Show
Contact:

Re: Airplanes

Post by rjroldan1 » Tue Jan 02, 2018 10:48

how about json in huge airplanes
Silent

President of Metropole region

____________________________________________________________________________________
I LOVE PHILIPPINES

User avatar
Kulche
Inhabitant of a Megalopolis
Reactions:
Posts: 594
Joined: Wed Jun 07, 2017 20:28
Location: Why do you want to know my location?
Plugins: Show
Version: Beta
Phone: Idk

Re: Airplanes

Post by Kulche » Tue Jan 02, 2018 15:54

Wut?
Now on ❤Discord❤ !

lol

Currently busy making plugins..

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest