Hi,how can I make the cahracter to buy?
You know he enters a Bulding and there is a list of objects,
and he can buy.
if (money>50)
{
CreateActor("food", "food", no parent, no path, 0, 0, false);
money-=50;
}
You can also use another event to trigger this, like keyDown or collision.
Users browsing this forum: No registered users and 1 guest