I'm using the 2D Roguelike tutorial controls for my character. When I try to change scenes, nothing happens; the player stays in the same scene. I've tried using the spawners and scene changers for both Makinom and ORK, but neither work. I'm making sure to use a 2D Box Collider instead of the regular collider. Any ideas what I'm doing wrong?
- the scene changer's conditions are valid (e.g. game states, variables, etc.)
- the player is really within the trigger (also check in 3D space)
- the player is set as player :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
- The player seems to be within the trigger, when I use a 3D collider it doesn't work, either
- The player is set as player
I'm going to try using the Roguelike's tutorial for the Exit and see if that works for changing scenes.
- That Box Collider 2D is indeed set to Is Trigger.
Here's a quick shot of one of my scene changers, for reference:
Note that for mine, I check for a Player tag so that only the Player herself can activate it which may or may not be necessary depending on your setup.
Before I made this change, weapons and other things technically attached to the player could activate the scene changer. :V
---------------------------------------
Personal Twitter: https://twitter.com/AMO_Crate
I make RFI! https://twitter.com/NootboxGames
Make sure your layers can collide with each other - check in Edit > Project Settings > Physics 2D if they're enabled in the Layer Collision Matrix.
@Kirb
The Start By Root Object setting would actually be there to only start interactions by the root game object, not any child objects :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Doh.
Let's just say it works now ;)