Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Fenthick

#1

Hi there. I'm new at AGS. The name's Fenthick and I'm making my first game.

I've been following the webpage's tutorial, and I'm stuck at 3th step. I'm trying to pick up an object from the floor (a key) and add it to the inventory. I named the key object "oKey", and for the inventary object I'm using the default "iKey".

So I added that script to pick the key,

function okey_pickup()
{
  oKey.Visible = false;
  player.AddInventory(iKey);
  GiveScore(5);
}

But it don't really works. I've been hours trying to pick up the stupid key from the floor, but it doesn't moves, and it doesn't appears in my inventory.

Do you know what's up here? Of course, the key is in a walkable zone.

thx for reading, I'll wait for an answer  ;)
SMF spam blocked by CleanTalk