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
How to convert manual movement to automatic movement (aka Snake) in a 2D array grid and turn if coll