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

How to convert manual movement to automatic movement (aka Snake) in a 2D array grid and turn if coll

$
0
0
I'm moving my player object through the maparray grid manually using the WASD keys. How do I make the player object move in a straight line automatically (horizontal or vertical) and change directions based on the WASD keys, very much like snake. How to make the object to be unable to move in reverse of whatever direction it is going in ? Eg. If going right, unable to go left. Lastly, every tile inside the entire grid is assigned a value of either 0 or 1, with 0 being a walkable tile,...

How to convert manual movement to automatic movement (aka Snake) in a 2D array grid and turn if coll

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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