bandit1200 wrote:
jemann wrote:Land's End
- 1W: The detonator worked fine this time, and in the sixth level tutorial. I don't know why it didn't work previously...
edit: And I just found that if you bump the first yellow door, it stops the detonator triggering.
In both Land's End:1W and Sixth Level:3N1E the script looks like this:
Label "Waiting for Bump"
Wait for event Player bumps obstacle
If ... go to "Bumped"
Wait for player at (area around detonator)
Go to "Waiting for Bump"
Label "Bumped"
Face direction X (to detonate bomb)
I'm no scripting expert, but I think I've worked this one out. I think if the player bumps something and isn't around the detonator, some sort of infinite loop occurs - as if the player is still registered as bumping into an obstacle when the loop comes around again. The result, anyway, is that the detonator stops working.
The solution I found was to insert a 'Wait 1 turn' after the 'Wait for player at' command and before the 'Go to'. With that change, the player can bump any number of obstacles before the detonator and it will still work.