Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | 9BitStrider |
I’m currently using a tilemap for my game’s levels. I have code in place to determine which tile the player is standing on. But let’s say that the player is standing on a conveyor or ice:
Basically, the player will only slide until the game determines it’s x position is no longer above a conveyor/ice tile. Making them stop sliding at the edge of the tile, instead of falling off the edge from the momentum.
I have an Area2D in place to act as the player’s “Feet”. Basically I want to use this to determine if the player is standing on said tile so that they will plummet off the side instead of coming to a dead stop at the very edge.
Example:
Area2D is overlapping "Conveyor" or "Ice"
----Do conveyor/ice things.
Any and all help is appreciated. Thank you.
EDIT: I am currently using signals to determine when the Area2D is overlapping a tile. But that doesn’t help me with telling WHICH tile that it’s overlapping.