[SOLVED] Yanfly Common Picture Events- Transparency issue

Status
Not open for further replies.

fightingferrets

Villager
Member
Joined
Aug 16, 2019
Messages
6
Reaction score
4
First Language
English
Primarily Uses
RMMV
Hello everyone! I've been a lurker for a while and am amazed at all the knowledgeable, helpful people on the forums. I hope my problem isn't a silly one.

I'm having an issue with Yanfly's Picture Common Events.

1. I show picture with a transparent background on the screen, no problem.
2. I create a common event to show text, no problem.
3. I use Yanfly's Common Picture Events to trigger the common event, no problem.
4. The issue is that the entire picture is a clickable trigger, including the transparent area. Since the shapes I'm making clickable triggers are oddly shaped, they all have some amount of transparent background.

Is there a way to make it so that only the visible parts of the displayed picture are triggers?

Thank you guys so much, I truly appreciate all the hard work in the forums.
 

Hyouryuu-Na

Sapphire Sodium
Veteran
Joined
Jun 15, 2017
Messages
947
Reaction score
2,213
First Language
Not English
Primarily Uses
RMMV
Maybe you can take a look at this extension to the Yanfly's Pictyre Common Events plugin by Caethyril
Apparently it can check if clicked pixel is transparent or not. Make a conditional branch (in the common event) and check if it's transparent. If transparent, do nothing. If not, then show text
 

fightingferrets

Villager
Member
Joined
Aug 16, 2019
Messages
6
Reaction score
4
First Language
English
Primarily Uses
RMMV
Maybe you can take a look at this extension to the Yanfly's Pictyre Common Events plugin by Caethyril
Apparently it can check if clicked pixel is transparent or not. Make a conditional branch (in the common event) and check if it's transparent. If transparent, do nothing. If not, then show text
Woah, thanks so much! I'll give this is a try and update the thread. I really appreciate you taking the time.
 

Hyouryuu-Na

Sapphire Sodium
Veteran
Joined
Jun 15, 2017
Messages
947
Reaction score
2,213
First Language
Not English
Primarily Uses
RMMV
Oh I misunderstood that extension :| It's plug and play. You don't have to do anything as it checks for you, I think.
 

fightingferrets

Villager
Member
Joined
Aug 16, 2019
Messages
6
Reaction score
4
First Language
English
Primarily Uses
RMMV
Oh I misunderstood that extension :| It's plug and play. You don't have to do anything as it checks for you, I think.
It absolutely worked! It was just as easy as putting the plugin after Yanfly's. Thanks a ton dude!
For reference, the player can now click just the visible pixels of the doors to go to the next area in the dungeon.clickthru.png
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,842
Reaction score
5,224
First Language
Dutch
Primarily Uses
RMXP

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 Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,018
Members
137,563
Latest member
MinyakaAeon
Top