Hello, I have recently started making my first game in Verge, and I have just added an inventory. I have put some berries on various tiles, which the character can pick up. However, I am finding that I have to use a seperate Zone for each berry as my script tells Verge to change a specific point on the map. I should probably show you my code:
void PickupBerries()
{
Berries++;
SetZone(24,19,0);
SetTile(24,19,2,639);
}
void PickupBerries2()
{
Berries++;
SetZone(25,17,0);
SetTile(25,17,2,639);
}
void PickupBerries3()
{
Berries++;
SetZone(27,17,0);
SetTile(27,17,2,639);
}
I don't want to have to do this for every berry tile, so is there some kind of GetLocation function that I have missed? Or is there another way? It may be really obvious but I'm pretty new to this, so please don't hurt me! =P