Hoping someone can shed some light on where I'm going wrong here
In a nutshell: I'm making a city-building game, and when players construct housing blocks next to each other I'd like to add a bonus to the number of people they can house. By default, a housing block adds space for 10 units of population. Adjacent housing blocks should increase that by an additional 5 units. So if you build three housing blocks in a row, the centre block will provide 20 units, and the outside blocks will provide 15 units each.
What I've tried: I'm running this event sheet section under a "System: Every 1.0 Seconds" check, with the idea that the game will regularly be checking each housing block to see if it has become eligible for bonus population, but without running the checks every single tick:
The yellow SlotHousingBonus object is created on top of each SlotHousing object (and will be invisible). I tried this because asking the event to check if each SlotHousing was overlapping another SlotHousing at an offset wasn't working. This attempt isn't working either, and I'm not sure why. Population stays at 10 units for each block instead of adding the bonus amounts as well.
Does the "For Each Object" command not work this way? Is there a mistake I'm making in the checks? I can't figure this one out myself
Many thanks for reading.