Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: miguel on Sun 25/05/2003 12:13:53

Title: transparency clickable?
Post by: miguel on Sun 25/05/2003 12:13:53
hello to all,
is it possible to turn the transparent parts of sprites (npc's, objects) to not-clickable?
if not, there's going to be a lot of croping!
thanks
Title: Re:transparency clickable?
Post by: Scorpiorus on Sun 25/05/2003 15:01:55
yes, check  pixel-perfect click detection in the game options panel.
Title: Re:transparency clickable?
Post by: miguel on Sun 25/05/2003 23:45:07
I've done that, but I think it only goes for objects, I guess I'll have to crop all my sprites.
Btw, don't you think it's a good sugestion for a future AGS version?
thanks scorpioros
Title: Re:transparency clickable?
Post by: Ishmael on Mon 26/05/2003 05:55:37
ìt should work for NPC's too, unless they are scaled... or?
Title: Re:transparency clickable?
Post by: miguel on Mon 26/05/2003 15:36:19
yes they are scaled, doest it make a diference?
Title: Re:transparency clickable?
Post by: ThunderStorm on Mon 26/05/2003 15:45:10
Sorry to step in here, but I have been wondering about a very similar thing: If you've got a GUI (background color 0) with a partly transparent Image, will clicks on the transparent parts count as a click on the GUI or not?
Title: Re:transparency clickable?
Post by: Ishmael on Mon 26/05/2003 17:45:03
The pixel perfect click detecting only works on none-scaled characters... I think...

I think the GUI counts as a square area... It wont sorta show through...
Title: Re:transparency clickable?
Post by: Scorpiorus on Mon 26/05/2003 22:20:55
QuoteThe pixel perfect click detecting only works on none-scaled characters... I think...
The manual states it doesn't work correctly with the scaled ones. Not sure but maybe CJ got the option disabled at all for the scaled characters.


QuoteSorry to step in here, but I have been wondering about a very similar thing: If you've got a GUI (background color 0) with a partly transparent Image, will clicks on the transparent parts count as a click on the GUI or not?
Yes, it will. Setting the GUI not clickable allows to make it non-interactable but it will be entirely non-interactable though. You can use the ProcessClick() function to process click through the clickable GUI btw.

-Cheers
Title: Re:transparency clickable?
Post by: miguel on Mon 26/05/2003 23:25:42
ok, thanks a lot guys