So I've been working on a top-down RPG-style game for a while and I made a water tileset for it. I want the player's MAX_SPEED, FRICTION, and ACCELERATION export variables to change when the player is in contact with the water tiles.
I don't know much about this, but since no one answered. I think you are moving the character with arrow keys or something so you probably want to use an area2d node, with a collision polygon2d set to segments and then draw around the water. Then when you collide with it, you would change your variables, and set them back when not in collision. https://docs.godotengine.org/en/stable/tutorials/physics/using_area_2d.html
Is there any way I can specify the area in code, it always says (area) for all body entered signals? Even if I can't that's fine because I am using arrow keys/WASD to move so what you said would still work. But can I change the value (area) to be anything else?
Wait nevermind I read the docs