Hi Chris,
So I have followed the tutorial and I can't get this to work. I will explain my issued then show my set up.
Issues:
- If I run the VillageMap scene my OnStart commands (specific menu's off/on) work, but they do not run if I go to the VillageMap scene from my InGame Menu.
- When choosing the map from my InGame Menu from say, VillageSquare scene, when I click on the hotspots to go to a new scene, nothing happens
- My MapPlayer is the main player in both instances from above, but my Default Player is also in scene.
See video for my set up and issues.
https://www.dropbox.com/scl/fi/g8e2rrphp2x77479e18ye/Map-Issues.mov?rlkey=2vsotlgqbz24b2j77zsjtmvpv&dl=0
Comments
If you're using the Player-switching technique, avoid using the Scene: Switch Action when entering/exiting the map scene.
Instead, enter the Map scene by using the Player: Switch Action to switch to your Map player (who should be in the Map scene by default).
To go to VillageSquare, use the Player: Teleport inactive Action to move your regular Player to the VillageSquare scene, then use the Player: Switch Action to switch to them.
Hi Chris, I am using Player:Switch to enter and exit the map, I have updated the Player:Teleport inactive Action to change to VillageSquare scene, but nothing happens - see new video with commentary here:
https://www.dropbox.com/scl/fi/uhmec69tvk5nxanhhojbl/MapIssuewithCommentary.mp4?rlkey=af47zh71z2jx1rfl1samj74kf&st=95431u2t&dl=0
By this, I do not mean to place the Map player in the scene file itself - but that their "Start data", as set in the Settings Manager, is to have them be present in the Map scene by default.
Remove the MapPlayer object from the scene.
Where/when is your logic that turns on the BackArrow menu? Don't put it in OnStart - when you switch Player to another scene, OnLoad is called instead.
For more control over when exactly opening Cutscene logic is run, detach from the Scene Manager and instead add and configure the ActionList Starter component to it.
ok, so I have put my onstart cutscene into onload and the menus work correctly, however I cannot leave the scene via the hotspot interaction, nothing happens except over clicking and my player default comes running into the scene. This is the action list:
https://www.dropbox.com/scl/fi/tkyofpwwcw2vwikujn4nv/VillageSquare-Use.png?rlkey=ektetw3pkzv571x6j7pdhwkw4&st=wqd35xzc&dl=0
So how does this work when I need OnStart to load on scene visiting?
You can also see here that the back arrow now takes me back to my original scene when closing the map, but when I choose the VillageSquare, I am taken back to the scene I was originally in exactly like the back arrow
https://www.dropbox.com/scl/fi/spbysx83r3lkjjbbcls35/VillageMap_Issues.mov?rlkey=7tm9rywliq79i33j9inifphkj&st=3do0vu9o&dl=0
Plus the non OnStart and only Onload is not going to work for me as I have lots of variables in OnStart for each scene.
How would I disable all scene hotspots but only allow map UI hotspots if I were to use the map as a UI overlay of scene menu instead?
Place your Menu: Change state Action before the Player: Switch Action, to ensure it runs before the scene-change.
If no Scene: Switch Action is involved, and you are starting from a separate scene, then the default Player will be present due to a Player: Teleport inactive Action that places them there. Use the Actions Manager to search for instances of this Action - make sure that you have none running that teleport the Rufus Player to the map scene.
You can assign the same ActionList in both the OnStart and OnLoad cutscene fields to have it run at all times the scene is opened.
You have two Player: Switch Actions running one after another - avoid this. In the Map scene, the Map Player should already be active - only use a single such Action to switch back to your default Player.
You are also using the Player: Teleport inactive Action to move the MapPlayer in your Village Square: Use Action - avoid this. The MapPlayer should be the active Player at this time, and should remain in the Map scene. It is the default Player, Rufus, that should be moved to the VillageSquare scene.
As your Player: Switch Action that switches to Rufus should cause a scene-change, it will end the ActionList. Again, move any additional Actions (e.g. Menu: Change state) above it otherwise they will not be run.
The Engine: Manage systems Action can be used to disable the "Interaction" system, rendering Hotspots uninteractable.