Hello All,
Wasn’t really sure how to title this but if you are here thanks for reading.
So here is what I am in need of. Below is a picture of what I am going for as I am having a hard time describing it without an aid.
So in the first grid the center of top, leftmost square will be the fixed starting point of my object / line. When the user hits the arrow down key, the object will “grow” or the line will be drawn. It will move at a set speed and will continue to the center of the next square. If before it gets to the center, the user hits another input, it will take that input and move accordingly when it gets to the center. If there is no additional input, it will just continue in the direction it is going. So once it is in motion, it will continue until it collides with an outside edge.
(The example in the second picture shows the results if the user inputed, Down to start, Right, Down, Left, Down, No Input)
I want to see the line “grow” in motion.
As you can probably tell by my use of object/line I am unsure of the best approach to go about handling this. Ideally I would like something more than a line, maybe a growing snake or some other animal would make it look better, but that is a secondary concern.
I’ve tried researching line renderer, raycasting, Texture2d.setpixels, etc. but can’t seem to find something useful enough to get me on the right track.
If anyone has any thoughts or input on how I could go about getting the desired results, I would greatly appreciate it. I’m a semi-competent programmer that is new to Unity.
Thanks.
