Transparency Bug?

Status
Not open for further replies.

Michio

Villager
Member
Joined
Jan 16, 2018
Messages
19
Reaction score
4
First Language
English
Primarily Uses
RMVXA
I'm back :0

(VX Ace)
I created a custom tile for tileset D, which is basically a puddle. Around the puddle is the transparent colour, so it should show the floor around it in-game.

But when I painted the tile with the editor, behind my puddle displayed the very first sample tile from tileset A (a floor tile, as it appears when you select it with the wall showing at the top of the tile.) This is so random I can only assume it's a bug.

Does anyone know why this happened? My puddle is a similar shade of blue, but I don't think that's the cause...
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
most likely not a bug - if there were a bug with Ace tilesets, that would have appeared before.

I can think of several possible things that might have happened here, but your description is too vague to identify the specific case. Can you give us screenshots of what you have on the map? And show us the tilesheet with the problematic tile?
 

Michio

Villager
Member
Joined
Jan 16, 2018
Messages
19
Reaction score
4
First Language
English
Primarily Uses
RMVXA
Thank you, I uploaded an image of the puddle where it can be selected in the editor, and and image of how it appears when painted on the map2018-02-12.png2018-02-12 (1).png
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
Could you please show us the Tilesets window, with the tab selected that has this tile on it? Please show the full window - don't crop it. I am interested in seeing something other than the actual tile.
 

Michio

Villager
Member
Joined
Jan 16, 2018
Messages
19
Reaction score
4
First Language
English
Primarily Uses
RMVXA
Sorry :0

Here's the screen

It just occurred to me that perhaps the problem is I'm using a D tile (the blue one) as a floor tile.
Maybe I can only have something that can be stood over (like a puddle) on top an A tile?
 

Attachments

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
You haven't given Shaz the info she needs because you haven't provided the whole of the window. Could you try again with your screen shot, this time without cropping it.
Thanks.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
is the tilesheet a full-sized one? which means is the rest of the D-sheet only transparent or is it missing?

The engine behaves strangely with incomplete tilesheets

And Shaz was asking for the tileset windows in the database, not the editor window with the map...
 

Michio

Villager
Member
Joined
Jan 16, 2018
Messages
19
Reaction score
4
First Language
English
Primarily Uses
RMVXA
Yes, the rest of D-sheet is transparent (as it is custom and I haven't filled it with anything yet.)

I'll try filling the rest of the tiles with a random colour.

Here is the tileset as it appears in the database.2018-02-13 (2).png
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
how did you set the transparency for that tilesheet? using the alpha channel of a png (true transparency), or did you use the color replacement transparency of the resource importer?
 

Michio

Villager
Member
Joined
Jan 16, 2018
Messages
19
Reaction score
4
First Language
English
Primarily Uses
RMVXA
When I imported the sheet it asks me to select a colour for transparency and translucency, so I guess the latter?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
yes, and that might be the cause if that color is not uniform through the background - small variations of the color are enough to leave fragments of non-transparency.

are you experienced enough with image programs to turn that into true transparency of an png picture? You'll need a good image program with support for both layers and transparency to do that, MS Paint would only destroy any transparency for example.

That would be the best option, but if you can't you'll need to fill the background with a uniform color for color replacement transparency to work correctly. And any uniform color is destroyed if using a high jpg compression...
 

Michio

Villager
Member
Joined
Jan 16, 2018
Messages
19
Reaction score
4
First Language
English
Primarily Uses
RMVXA
Thank you.
I'm using graphicsgale, I'll work out how to export an image with true transparency.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
1) make a new, empty picture with transparent background and of the same size
2) import the existing image on it in a new layer
3) remove all parts that are non-transparent, but should be transparent
4) save as png
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
It's not a problem with transparency - note that what's behind the puddle is not a solid colour - it's the water tile from the A tab. You can't make that happen by loading images in the wrong slot or having an incorrectly sized tilesheet or importing vs saving with a transparent background.

Here's what's happened.

It just occurred to me that perhaps the problem is I'm using a D tile (the blue one) as a floor tile.
This is what gave it away - your mention of the blue tile as the floor and being a D tile, but the pictures helped.

You've used the A water tile to cover your entire background. Then you've used the blue tile from D to cover the whole background as well - this gives you two layers - the water tile on the bottom (the ground layer), then the blue tile on the top (the upper layer).

MV gives you two upper layers, but Ace only gives you one. So when you draw over the existing upper layer (D tiles) with other D tiles, they replace what was already there on the upper layer, but they leave the lower layer alone. Therefore, you've got your puddle, but the water from the lower layer shows through in the transparent areas.

Ground tiles should be A tiles. This means you can place things over them. So put your blue tile on the A5 tab and draw with that over your whole map (wherever you don't want the water tiles to be). Then draw your puddle over it.
 

Michio

Villager
Member
Joined
Jan 16, 2018
Messages
19
Reaction score
4
First Language
English
Primarily Uses
RMVXA
You are a genius :')
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
Only after coffee ;)

You can report your first post and ask for the thread to be closed if the issue is fully solved.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,381
Reaction score
8,537
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,050
Messages
1,018,548
Members
137,835
Latest member
yetisteven
Top