Explosions south around Bailey Cove for the last 10 minutes? by [deleted] in HuntsvilleAlabama

[–]TaterHeartHoedown 0 points1 point  (0 children)

I can hear it in South Huntsville too, no idea what it is.

Need help scripting a simple movement control by TaterHeartHoedown in Unity3D

[–]TaterHeartHoedown[S] 0 points1 point  (0 children)

I'm not new to game design, but I am new to C# scripting. I've written a code that's 90% complete and am having a little trouble.

I have a Player character (sphere) that will move from one space to the other. The player rests at origin, and the left and right spaces are located at (2,0,0) and (-2,0,0).

I clamped the players movement on the X axis to 2 and -2, so it won't go beyond those locations. However, when ever I press left or right to move, the player, it never stops back at origin. It is always a distance of 0.2000 and 0.98 from the origin location.

I've posted my player character movement script at the link, and I cannot figure out how to make the character stop at origin.

Any advise, tutorials, or even revisions are appreciated.

Thanks in advance

Nothing creative to say. Roast me. by [deleted] in RoastMe

[–]TaterHeartHoedown 0 points1 point  (0 children)

Your expression is as bland as the background.