- Home /
Question by
Rambolink94 · Sep 18, 2017 at 09:50 PM ·
movement2d gamemobile devicesswipe
Locking movement until character collides with walls, and moving character using a phone swipe.
I know this is a loaded question, but I've been trying to wrap my mind around this for days. Anyway, I'm attempting to make a 2D Physics game in which, using a phone swipe, you move your character in that direction until they collide with a wall, at which point they stop moving. During this movement, I need controls to be disabled, so that players can't move their player until after they've hit a wall and stopped. While I would love someone to provide me with a swipe script or reference to a swipe script, my priority is simply the movement. Any help would be greatly appreciated. Thank You!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612135135im_/https://answers.unity.com/themes/thub/images/avi.jpg)