Question by
MattiaGamba · Dec 06, 2021 at 08:43 PM ·
2d gamemovement scriptmobile devices
How to make the player move on a single axis based on whether you drag your finger on the screen or left or right?
I am making a game where there is a rocket that has to dodge meteorites, and to move I would like it to move left or right based on where you drag your finger on the screen. Can you tell me how can you give please?
Comment
Your answer
Follow this Question
Related Questions
NPC Movement 0 Answers
Issues with snake game in C# 2 Answers
unity 2d movement problem 0 Answers
How to make a 2D object, which can be moved left and right, constantly fall downwards? 1 Answer