You should have 0 to Width-1. IE: For an array with width of 10, the indices are 0 to 9!
"Stop loop" is a System action, not an Array action! It won't work. I vaguely remember someone requesting an "Array.Stop loop" action. Use the System.For mechanism instead, to index into the Array.
Yes, the problem was even if one overlap was detected, the two other non-overlaps were resetting everything back again. Your mechanism is fine. The only refinement would be to add trigger-once on each of these events so the action is only run once, rather than every tick. The one additional step then is to have the Dwell animation loop by itself, rather than you triggering it.
settings139_B.capx
To find the first index of act 2, would be IndexOf(act*10+1). So for act=2, IndexOf(2*10+1), which is IndexOf(21). IndexOf(31)-1 would be the last act 2 index.
OnCollision is a trigger, not an event. It is ONLY true and ONLY run when the collision occurs. It is not processed in the usual manner, per tick.
Settings139.capx
Settings1_bht.capx
dropbox.com
Your problem is the background image is a solid! Get rid of that behaviour.
One way:
<img src="http://blackhornettechnologies.com/Construct2Stuff/SearchX.jpg" border="0">
SearchX
OK, figured it out.
1) you need flag = "g"
2) MatchAt works on the index of the match. You'll need to iterate by using MatchCount to build the string back up, if that's what you want.
RegexTester
Develop games in your browser. Powerful, performant & highly capable.
I have no idea what the Flags parameter does, but the correct Regex parameter should do what you need.
One possibility:
RegexMatchAt("Hello123", "[a-zA-Z]*", "", 0)
... and another:
RegexMatchAt("Hello123", "[^\d]+", "", 0)
You probably need a For Each for the Is NOT moving event so you only interact with the one object.
v1.11 released.
v1.10 released.