Tron-like movement and retractable / reversible trail?
Hello,
I have an idea in which the character's movement is best described as Tron-like, in that you have a body that continuously extends by moving the arrow keys, and you are unable to cross your own body (Think the trail left by a light bike in Tron, except it never fades, and the bike is your head and trail your body).
But, you wouldn't die upon touching yourself, just be blocked from moving further, like a wall. This is because I want to be able to retract the body in the event that you are stuck, but I'm confused how to do so.
My google searches show that I'm probably looking for a Trail Renderer with collision but I cannot find anything on how to reverse the actions - imagine a grappling hook that you're pulling back. It's not quite reversing time in that I only want the character to retract, while the rest of the scene is unaffected.
Any tips or advice for me to get started? I also realize the name of whatever type of gameplay this is called might have slipped my mind, so if someone knows what it is called, please let me know.
Thanks!
Your answer
Follow this Question
Related Questions
Teleporting trail renderer 3 Answers
My vehicle is not moving backwards with WheelCollider 0 Answers
Trail of Fire? 0 Answers
Issues w/ 2D shmup ship "lean" animations on diagonals 1 Answer
MoveTowards is curving for no reason 0 Answers