I’m making a parkour game where you’re able to select a level using pop-up call to actions and then press a separate button to start which will teleport you to that area. Is there a way to make it so when you press start it will send you to a different portal depending on what level you chose? Also, I don’t want it so that as soon as you select a level you teleport there, due to how I want it so you can also choose player speed and if checkpoints are enabled.
(Sorry if I made it a bit confusing I tried to word it the best I could )
Try overlay and popups?
the call to actions can attach up to a teleporter and than immediately teleport you when you hit the button
Make a popup chain.
Popup 1 settings:
Call to action: Go to lvl 1
2nd call to action: Next
Make it so when the 1st call to action is pressed, it teleports.
Make it so when the 2nd call to action is pressed, it opens the next one.
you can have different overlays wired to different teleporters. nvm, don’t do what I said, I read it wrong.
Connect wires from buttons to teleporters. Make it so that when button pressed, teleport player here
Here:
- Have a Teleporter, Pop-up and button
- Wire
IN: Pop-up — OUT: Teleporter
- The Button should be in the area of the teleporter, and there you have it!
I don’t want to seem stubborn, but I don’t want to make it so as soon as you choose a level it starts, because you’re also supposed to be able to choose player speed, checkpoints disabled/enabled. So I want the only way to start is by pressing a separate button that isn’t a call to action or anything. (I should have mentioned that in the main post, I’ll do that now)
Ok, that makes it a bit more complex, but here’s an explanation (will have to include block code).
To choose your map, do the pop-up chains described by other users above, with the primary call to action being you choosing the map, and the secondary call to action you moving to the next option. Next, grab a counter. Default 1, and when the secondary call to action is clicked (on any of them) → increment counter. This way, it tracks which pop-up you are on when you choose that one, in which the counter won’t increment any more. The counter should update a property, “teleport-prop”. For each setting, you can do this, just have multiple counters. Now, when the game begins after choosing your settings, run this code:
Broadcast message on channel | Create text with | "teleport"
| get property | "teleport-prop"
Now, the teleporter for the first option should teleport you there when receiving on “teleport1”, the seconds map option on “teleport2”, and so on. Hope this helps!