Problem picking up objects for inventory

Started by LinkMaestro, Mon 26/05/2008 14:37:54

Previous topic - Next topic

LinkMaestro

I'm doing the tutorial for AGS, as I just downloaded it and started learning it the other day. I'm having some problem with object commands.  I wrote the script verbatim from the tutorial, but when I go to run the game, it seems the interact icon needs to be in one very specific spot, like down to the pixel, in order to pick the key up. is there a way to increase the area that can be clicked in in order to interact with the object?

skuttleman

In the general settings pane, there should be an option called "pixel-perfect click detection". If you set this to false, then it will detect mouse clicks anywhere on the sprite (even the transparent pixels).

LinkMaestro

Ah, thank you very much, sir! I'll give that a shot.

Khris

Alternative solution:
In the room's before fadein event, set the key object to not being clickable, then use a hotspot instead.

SMF spam blocked by CleanTalk