Topic was automatically imported from the old Question2Answer platform.
Asked By
FeyGaming
Hi guys,
how is it possible to walk on a line or path only like in “Super Mario World” for SNES to get from level to level?
I tried to hook up my KinematicBody2D with area_entered to “walk” along the Path, but it goes only oneway. An when I entered the Area2D I, have to leave the Area2D before i can enter a second time.
Well, if you’re using Path2D- and PathFollow2D-nodes (as both the title and the tags suggest you do) it’s rather simple: all you have to do is translate the player inputs into offsets along the path - either forward or backward.
All things considered, in case you’re utilizing Path2D-and PathFollow2D-hubs (as both the title and the labels recommend you do) it’s somewhat basic: you should simply make an interpretation of the player contributions to counterbalances along the way - either forward or in reverse.