Forum rules - please read before posting.

Player Starts

I know that we can now have AC reference which scene the player has come from to specify which Player Start to use, however, I don't currently see a way of knowing which entry point into a scene the player has used.

For example, there are two rooms, separated by two doors. The player could go from Room A into Room B, and the Player Start in Room B will have Room A as the scene the player has just come from. However, which door the player uses is not in consideration, only the scene they are going to / coming from.

So basically, how could you specify the multiple entry points into the scene from the current scene, and have player starts in different places. You might have a door and a ladder going from Scene A into scene B for example, but since they are both in the same scene, the player will always start at wherever scene B's player start is which states the player is coming from scene A.

...I tried to explain the best I could

:-/ 

Comments

  • A non-default PlayerStart is really more of a convenience than anything - you can achieve the same effect with an Object: Teleport and Camera: Switch Actions in your OnStart Cutscene.

    While a single PlayerStart per-scene is handy for most cases, you can instead rely on a Global Variable to keep track of which way the Player enters Scene B from Scene A by.  Setting that variable before exiting Scene A, and checking it when entering Scene B, would let you teleport the player to the appropriate spot.
  • Yeah, there's always a way around things when you think it through. Thanks for the advice Chris.
  • Hi!

    Is this still the way to do this? If so, where do you have to teleport the player? I understand he is supposed to be teleport to a marker that is placed in the new scene and I can't find that marker in current scene.

    Thanks.

  • What marker can't you find? All scenes have a player start marker by default, but you can also put down a "normal" marker to teleport the player to (it doesn't have to be a marker though, it's just the transform values that matter really).

  • So, I want to go from scene A to scene B, right? I assume, that what I have to do is set a hotspot on A to initiate my Object: Teleport action, and a marker in B where the player will teleport. Is this marker in B that I can't find in the Action I am setting in A.

    I hope I am explaining myself properly.

    Thanks for such a quick reply!

  • Wait, I missread. We are doing the teleporting on start. Sorry for that!

  • Hey! I'm having this same issue but am not entirely sure how this could be fixed? My character can come into a scene from two sides: right and left, the default player start is close to the enter on the left. I attempted creating an action OnStart that checked the previous scene and switched the scene's default player start 2d, but the player still appears on the same spot set by default. I don't really understand how the teleportation would work.

  • The PlayerStart you assign in the Scene Manager is used as the scene's default - i.e. the one to use if a more appropriate PlayerStart is found.

    A scene can have multiple PlayerStarts - add it from the Navigation panel of the Scene Manger, and configure its Inspector with details of which previous scene it references. Entering the scene from that scene will then cause that PlayerStart to be used.

  • Whaaa, I never knew one could have multiple Player Starts! This is great, I’ve been using Marker2Ds and I think variables to determine different player starts, but this seems way simpler, thanks.
    If you ever update the 2D Primer video tutorial Chris, which is already super helpful, adding a second scene and showing how the 2 scenes get wired up I think would be invaluable!
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.