Push Box Spread Value Events
Hi
I have some trouble getting spread value to work in my push box event. I also have some trouble understanding this in general. But how can I make these events work with more than 1 box? Where do I add spread value events?
PushDetector is overlapping Box
+ Box is NOT overlapping Obstacle: Set HorizBox to HorizPlayer
Push Detector is NOT overlapping Box: Set HorizBox to 0
HorizBox <> 0
+ Box is NOT overlapping Obstacle: Start loop "MoveBox" ABS(HorizBox("Box")) times
On Loop "MoveBox": Set X position of Box to X("Box")+(HorizBox("Box")/ABS(HorizBox("Box")))
On Loop "MoveBox"
+ Box is overlapping Obstacle: Set HorizBox to 0, Set X position of Box to X("Box")+(0-HorizBox("Box")/ABS(HorizBox("Box"))), Stop loop "MoveBox"
... Or are my choice of events generally wrong?