proc/BecomeBig() |
Specifically at the crossed and uncrossed proc sections that were put in so that if a player becomes big and their new bounds are touching or overlapping the button, the relationship between the player touching the button and the button itself is recognized (same with becoming small after touching the button while being big).
Question 1:
Why wont an if statement work instead of a for loop?
Quesiton 2: I replaced the obounds(8) - obounds() with just a plain obounds() proc in the BecomeBig() proc and it worked fine. Also I replaced the oboudns(8) - obounds() with oboudns(8) and it also worked fine. What was the need for the obounds(8) - obounds()?
In BecomeBig(), it searches through the atoms in a given list (provided by obounds()) and stops the entire procedure if something dense is in the way. You could only use if() to call another boolean procedure that checks for the same thing, but chances are that procedure would also have a for() inside of it.
2. It is to make sure it doesn't re-cross buttons the object had already crossed and to not re-uncross buttons it already isn't on.