I’m making new topic because it’s probably different bug than I reported before.
I see that you’ve made some changes with regions (move to region or something with this) because all my destinations (regions) have been changed to Undefined (Red ‘undefined’, but script name doesn’t red. Probably other bug.).
I’ve fixed all undefined to right regions. And it works good it this case: move to random position in (region name).
I have 1 more problem: move to random position in (entity variable).
Unit is teleported to (0,0) instead of moving to region!
And it looks like sensor is everywhere (and activate when unit starts touching item trigger repeatedly).
My game is unplayable now.
Game url: http://www.modd.io/play/azaria-lands
Item sprites in (0,0):
How it should work:
- When pickaxe hits unit and unit HP <=0 unit should be moved to Waiting to spawn region.
- After cooldown:whenSpawn (counted in every second trigger) unit should be moved to (spawnRegion) of unit (conditional in every second trigger too)