Question by
isavbherman · Jul 23, 2018 at 12:17 PM ·
slideroguelike
How to make sliding movement at RogueLike 2D.
Hello, I'm new to Unity and I'm doing the RogueLike 2D tutorial. By default the player moves one tile at a time. And I want to know how I get the player to move freely until it collides into a wall or other collider.
Like the 2048 game where the squares advance in a straight line and only stop when they collide in the wall or in other squares.
Below is the part of the code declaring the move. How can I change to leave the move the way I want?
xsfsjnwt.jpg
(66.0 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612171335im_/https://answers.unity.com/themes/thub/images/avi.jpg)