Hi, recently I’ve been working on a way to make a sidescrolling enemy turnaround & go back in the opposite direction when they collide with a non-player object, with my setup being based on the one described in video tutorial [Link].
I’ve managed to get most of it working except how to get the enemy to turnaround in the opposite direction.
The coding for is supposed to be called upon from the Toggle Facing Direction function but the function is currently empty.
The reason that the ‘Toggle Facing Direction’ function is empty is because I don’t know how to go about implementing it. is because the tutorial I’ve been following thus far was intended for making a 2D sprite-based sidescroller as opposed a 3D sidescroller like I’m trying to make.
Does anyone know how I can convert setup so that it would work in a 3D sidescrolling game instead of a 2D one?
As always, any help whatsoever would be greatly appreciated!