[Resolved] Transparent

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
fintattis
Villager
Reactions:
Posts: 11
Joined: 11 Jan 2020, 17:45
Plugins: Showcase Store

Plugin Creator

Platform

[Resolved] Transparent

#1

Post by fintattis »

I'd like to make the diagonal tiles placeable on terrain (=transparent). What JSON is required for that?
Currently it looks like this, but the grass is a part of the texture:
20200118133558_1.jpg

Code: Select all

[
  {
    "id":"$diagonalplazabottom00",
    "type":"terrain",
	"title":"Diagonal plaza bottom",
    "author":"fintattis",
    "width":1,
    "height":1,
    "frames":[{"bmp":"plaza_bottom.png"}]
  }
]
And when I remove the grass-part (make it transparent on the texture-file) of the texture and add "draw ground" water appears:
20200118141307_1.jpg

Code: Select all

[
  {
    "id":"$diagonalplazabottom00",
    "type":"terrain",
	"title":"Diagonal plaza bottom",
    "author":"fintattis",
    "width":1,
    "height":1,
	"drawground": true,
    "frames":[{"bmp":"plaza_bottom.png"}]
  }
]
TL;DR How do I make plugins with transparent background

P.S. I used the default textures while making this. Who do I credit, just Theo?

User avatar
Bearbear76
Former Bearbear65
Reactions:
Posts: 5730
Joined: 10 Feb 2017, 14:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: [Asked] Transparent

#2

Post by Bearbear76 »

It seems that you forgot to put a space between draw ground.

Code: Select all

Correct: "draw ground":true,
Incorrect: "drawground":true,
And yes, just Theo would be fine.

User avatar
fintattis
Villager
Reactions:
Posts: 11
Joined: 11 Jan 2020, 17:45
Plugins: Showcase Store

Plugin Creator

Platform

Re: [Answered] Transparent

#3

Post by fintattis »

Works now, thanks!

User avatar
yusuf8a684
Reactions:

Re: [Resolved] Transparent

#4

Post by yusuf8a684 »

looking like an usefull plugin

Post Reply Previous topicNext topic

Return to “Problems”