Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

My Code Causes Gaps Between 2D Sprites in Motion

$
0
0
Hello guys and gals. I'm attempting to have 5 sprite images follow each other on a 2D plane kind of like a free flowing snake body. I have a code that I've compiled using my limited knowledge of C# and various Unity3D tutorials. The first sprite gets the "SnakeHead" script and the other 4 sprites get the "Tail" script. The 4 tail sprites have their Target or Leader Sprite assigned in the inspector as well as the RotationSpeed which I usually set to 15. The leading sprite and the following body...

My Code Causes Gaps Between 2D Sprites in Motion

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>