I'm not exactly sure what you mean. Should I use hotspot for that? I know there is 'walk point' but its for hotspots not for objects.
Sorry about that.
Let me see if I can find it.
thanks. that worked just fine:)
Aside from this question having been asked here about a million times already, there are various ways.
If you want to simply code it every time, use something like this:
player.Walk(x, y, eBlock);
player.LockView(VIEW); // change this to the pick up-view
player.Animate(...); // play pick up-animation, make sure it's blocking
oItem.Visible=false; // turn off object
player.AddInventory(iItem);
player.UnlockView();
Alternatively, you could use a custom function:
function WalkPickUp(int x, int y, int dir, int obj, InventoryItem*inv) {
Ã, player.Walk(x, y, eBlock);
Ã, player.LockView(VIEW); // change this to the pick up-view
Ã, player.Animate(...dir...); // play pick up-animation, make sure it's blocking
Ã, object[obj].Visible=false; // turn off object
Ã, player.AddInventory(inv);
Ã, player.UnlockView();
}
You could use Custom Properties to store the walk-to coords for objects.
Ã, player.Walk(object[obj].GetProperty("x"), object[obj].GetProperty("y"), eBlock);