So I was working on my second part of the enchant levels and I wanted to add a little bonus (which is actually a big thing) on the third room you see this big monument on the middle of it, it is a decripter, and it works pretty much like fez's tetris code, but if you press all the buttons at once it simply activates all the modifiers needed to the event of the code, is there a way to avoid this? like, allowing the player to press the right buttons but to reset the sequence if he gets it wrong?
the level (WIP)



Unfortunately there's no nice way to set something like this up yet. But it is possible to do it with a horrible, contrived tree of modifiers and priorities/groups.

This version doesn't have the time constraint, but you could put durations on the right move modifiers to achieve this. Pressing the same move twice in a row doesn't cause a reset to keep it simpler.
Wrong moves are stored at each level with a higher priority than the containing folder, so that the 'Right move' modifier is deactivated and expires if they are activated. LEFT and RIGHT are stored in the top folder because they always cause the pattern to reset.


In the future there will be full lua scripting, making these kind of special object behaviours much easier to express. Modifiers are designed to handle state changes for things like pickups and attacks, but it's surprising what you can get them to do with ugly tricks.
[Please log in to post a comment]