I have made a desert map that loops, when the player enters the map they are traped 🙁
The idea was that the map was going to work as an event with 2 (well 3) possible exits, moving in a pattern to get to
exit 1 or exit 2 or just move left three times to exit the map back to where you came from.
Any help or suggestions would be greatly appreciated 😀
Well at some point you need to make a transfer to another map/spot or else of course they are going to be trapped. You can use conditional branches so that transfers only occur if the player is facing a specific direction. You could probably use switches to adjust the event transfers as the player uses them so that certain ones/activate/deactivate.
Can you tell us a little more about the exit patterns? 🙂
Initialize a variable named LeftExit equal to 0 at the start of your game.
A conditional branch should check if LeftExit >= 3
If so
Left Exit = 0
and the player exits the maze.
Otherwise
it will add +1 to the variable named LeftExit.
End
Complex path to oasis. But you can make it by checking with the same logic 3 times right.
If 3 times right occurs then you set a switch 3ROK = ON.
Thus you can go on to check for 4 down.
Otherwise everything resets to default.
Don't forget to reset everything on game start and every time the player does something wrong.
Variables to be used:
3right
4down
2right
5Down
Switches to be used:
2ROK (2 right OK)
4DOK
3ROK
5DOK
Same logic goes with the others.
To stray, when wrong it does not matter where you go after first mistake. You set a switch mistake on, you set wrongstep variable = 1 and every step you take you set
wrongstep+1
If it is 3, you set mistake off and wrongstep to 0 and go wherever you want by default end up.
I tried to explain something complex as clear as possible to you using the forum, so hope you got an idea on what to do.
The Event Page, on top left has Conditions. What I look is this:
Conditions:
EnterDesert is ON
QUESTION:
IS EnterDesert actually ON when the player is entering that field with the parallel proccess or not?
The first thing to check is if the conditions are met. If this condition isn't met, it will not run at all.
To eliminate this possibility, for debug reasons, untick this condition and let the parallel proccess run without any check.
If you still got problems, I will keep on replying, and maybe even try to make you a project with a working maze to see how it's done.
But I want you to do it yourself, I want YOU to be awesome, not me.
Try what I told you.
Alright I'll keep that in mindre in the future 🙂