Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Wretched on Thu 11/05/2006 04:50:20

Title: Invisible hotspot marker on 32 bit inv cursors
Post by: Wretched on Thu 11/05/2006 04:50:20
 Just a wee thing but if you have a 32 bit inventory graphic, and use a sprite for the hotspot marker, the hotspot marker becomes a hole through the inventory graphic when used as a Use Inv mouse cursor.
Title: Re: Invisible hotspot marker on 32 bit inv cursors
Post by: Gilbert on Thu 11/05/2006 04:58:00
Is there Alpha Channel in the Hotspot marker?

Just a wild guess, the hotspot sprite and the inventory graphics were probably merged into one single sprite for use as a cursor, but the pixel transparencies weren't calculated orrectly (I guess for a semi-transparent pixel in the hotspot sprite, that Alpha value either replaced the Alpha value of teh resultant sprite or multiplied with the inv graphics Alpha value).
If that's the case, try using a hotspot sprite without Alpha channel (i.e. strictly opaque and strict transparent pixels) and see if the problem persists.
Title: Re: Invisible hotspot marker on 32 bit inv cursors
Post by: strazer on Fri 19/05/2006 13:07:13
Finally found it:

Quote from: Pumaman on Mon 02/05/2005 13:38:52
Quote from: strazer on Sat 30/04/2005 02:41:41When an inventory item with an alpha-channelled sprite is active, the cursor hotspot dot isn't drawn. Instead, there's a hole in the cursor graphic where the hotspot dot/sprite should be.

Thanks for pointing that out. I'll fix the hotspot dot side of things, but for the hotspot sprite you'll need to use an alpha-channeled hotspot sprite in order to get it to work.