SOLVED: I have an issue regarding Objects and Interacting with them.

Started by Slasher, Sun 24/03/2013 10:21:37

Previous topic - Next topic

Slasher

Hi

I have an issue regarding Objects and Interacting with them although they do work but not to total satisfaction.

I have some objects (86 x 111) in which I want to adjust their Hotspot area from their feet to the middle of the images for better interaction use.

I find that pixel hunting is frustrating to say the least. I have @overhotspot@ to donate what the Object is and to indicate you are on it. But unless directly over that area the descriptions and interaction do not occur.

I have these images set at Transparency=50.

I am playing around with baselines to try and cope with this situation are you able to advice and assist me.

Thank you

EDIT: I found this solution:
Code: AGS

oghost1.Baseline=230;
oghost2.Baseline=246;
oghost3.Baseline=246;


All is well on the western front  (nod)

slasher



Khris

Regardless of the baseline, the transparency or the fact that objects are positioned using their lower left corner, the mouse will be over the object if the mouse cursor's hotspot is over a pixel of the sprite assigned to the object.
If for some reason the sprite has huge areas that are completely transparent and you want those to register as part of the object, make the object not clickable and use a hotspot instead.

Slasher

Hi Khris,

QuoteIf for some reason the sprite has huge areas that are completely transparent and you want those to register as part of the object, make the object not clickable and use a hotspot instead.
I had thought of that when I added it. It only has about 3 pixels transparency edge around it, probably needed to be 1 or 2.

Food for thought for when importing new images.

Cheers Khris


SMF spam blocked by CleanTalk