hello, I am trying to have gravity switch when the player is over specific tiles. I made a different tilemap on a different layer than my terrain so those tiles can work as like a background and tagged that as ‘shadowside.’
then wrote the code I’ve attached. (things like rotation and jumping I am saving for after the switch works at all)
currently the top half is filled with colored tiles I’ve put the tag and a trigger collider on and the bottom half is clear. when the player moves into the orange they drop very slowly to the clear side then drop like normal to ground. So the trigger is working but doesn’t stay triggered continually.
I also tried using a game object instead of the tiles but that had the same effect.
is there a different way to try this?