Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: DCillusion on Sat 13/12/2003 17:40:33

Title: Point of Action
Post by: DCillusion on Sat 13/12/2003 17:40:33
How do I show the point where my Icon functions with a hotspot on the screen.  Old games used to do it, and the King's Quest remakes managed it.

The point doesn't appear until the player selects it.
Title: Re:Point of Action
Post by: MCF on Sat 13/12/2003 18:24:50
I'm not 100% sure what you're asking, but I'll try.

I'm assuming you want to make it clear which part of your cursor is the actual part that spurs an interaction.  

If you go to the cursors menu, you can change the hotspot very easily.  It's represented by a red dot on the icon display window.  Move that to wherever seems most convenient.  You can also make it easier on your player by adding some highlight to the hotspot in the actual icon image file.

Then again, this may not be what you were looking for.
Title: Re:Point of Action
Post by: DCillusion on Sat 13/12/2003 21:17:00
Thanks, but what I mean is..............

In king's quest VGA
When you click on the interact icon, a white dot appears where the point of action.

In your inventory, the item doesn't have a white dot.
When you click on the item, the white dot representing the point of action appears.

I hope that's more specific
Title: Re:Point of Action
Post by: Scummbuddy on Sat 13/12/2003 21:22:45
SetInvItemPic
SetInvItemPic (int inv, int sprite_slot)

Changes inventory item INV's graphic to be slot number SPRITE_SLOT from the Sprite Manager. This allows you to dynamically adjust an item's picture in the inventory window during the game.
Example:

SetInvItemPic(10,120);

will change the number 10 inventory item’s graphic, to the picture imported in slot 120 (sprite manager’s slot).

---------------

Would this work? Use this when you click on the inventory item?

You can also set an objects picture.
Title: Re:Point of Action
Post by: Ben on Sat 13/12/2003 22:43:18
I think I know what you mean..

At the bottom of the screen, there's a checkbox labeled "Draw hotspot dot on inventory cursors." If you check this box, the game will draw a dot on all inventory items when you select them. You can also change the color of the dot.
Title: Re:Point of Action
Post by: DCillusion on Sun 14/12/2003 04:55:24
Thanks, that worked perfectly