The forum has been archived
While the forum may not be active, the community still lives on Discord! Click here to join us.
While the forum may not be active, the community still lives on Discord! Click here to join us.
Specific Order?
- ElectroYoshi
- Well-Known Member
- Posts: 11061
- Joined: October 18th, 2012, 8:27 pm
- Design Competitions Voted: 1
Specific Order?
For my latest level, I'm incorporating a puzzle in which you have to activate things in a certain order in order to progress. I want it to be so that you absolutely HAVE to activate them in that one order, and if you get it wrong, it's reset and you have to try again. How would I go about doing this in Atmosphir?
I need a shot again, that sweet adrenaline.
- kroltan
- Developer
- Posts: 285
- Joined: October 8th, 2012, 6:57 pm
- Design Competitions Voted: 1
- ElectroYoshi
- Well-Known Member
- Posts: 11061
- Joined: October 18th, 2012, 8:27 pm
- Design Competitions Voted: 1
- ElectroYoshi
- Well-Known Member
- Posts: 11061
- Joined: October 18th, 2012, 8:27 pm
- Design Competitions Voted: 1
Would either of you mind being more specific? I've been sitting here trying to pull it off for the last hour and a half or so, and I just can't seem to do it with that information alone.
Here's a little more information if it helps: I'm trying to make it so that you have to step on 4 colored tiles in a certain order. Each tile is distinguished by color and encompassed by an area condition item, and I want it so that players have to visit those boundaries in that one order.
Here's a little more information if it helps: I'm trying to make it so that you have to step on 4 colored tiles in a certain order. Each tile is distinguished by color and encompassed by an area condition item, and I want it so that players have to visit those boundaries in that one order.
I need a shot again, that sweet adrenaline.
- kroltan
- Developer
- Posts: 285
- Joined: October 8th, 2012, 6:57 pm
- Design Competitions Voted: 1
It's super simple if you don't mind about resetting, and becomes very complex if you want to invalidate the "code" if the player does it incorrectly. I've built the resettable version using counters and area triggers.
- Place an area trigger on each tile
- Place a Count trigger next to each area trigger (set Active Trigger to All Conditions and Count Value to 1, make sure it's on "Greater Than or Equal" mode)
- Add a Active Trigger condition to each counter to its respective area trigger (On Stay Area)
- For each count trigger, add each other tile's On Stay Area to the Reset Trigger, except the previous step and itself (e.g. if the sequence is ABDC, counter D will reset when area A or C is entered)
- Add the previous step's Count Condition to each counter (e.g. if the sequence is ABDC, place B's count condition on D)
- Place a Trigger interactive somewhere, and hook it to the last step's Count Condition (C, in my examples. This is so you may change the actual code without having to retrigger the target machinery)
- Use the recently created Trigger to activate anything you want.
- Entity
- Editorial Staff
- Posts: 3097
- Joined: November 29th, 2012, 9:41 pm
- Design Competitions Voted: 1
I'm assuming that you don't care if someone reactivates a trigger that's already been activated?
Here's how I would do it:
Lets say you have three triggers, 1, 2 and 3. You have to keep track of one thing for each of them: is it active?
When player enters trigger 1:
Here's how I would do it:
Lets say you have three triggers, 1, 2 and 3. You have to keep track of one thing for each of them: is it active?
When player enters trigger 1:
- Mark trigger 1 as activated
- IF trigger 1 is activated, activate trigger 2
- IF trigger 1 is not activated, reset everything.
- IF trigger 2 is activated, activate trigger 3
- IF trigger 2 is not activated, reset everything.
- ElectroYoshi
- Well-Known Member
- Posts: 11061
- Joined: October 18th, 2012, 8:27 pm
- Design Competitions Voted: 1