This question was
closed Jan 17, 2017 at 08:37 PM by
JonKukula for the following reason:
I answered the question myself
Question by
JonKukula · Jan 17, 2017 at 07:52 AM ·
movementmousemoveobject movementobject move
How to move an object left and right by dragging mouse after clicking left mouse button.
Hi, so I am making a game for iOS and I have been trying to make a script where you can click the left mouse button anywhere on the screen and move the mouse left and right to move the object left and right to avoid obstacles. I already have it set so when you play the game the object just goes in a straight like but how do I script this? And I know it is different having to setup a touch button with iOS so how do I do that as well? I would like to have the mouse button temporarily so I can test the game out before deploying it to iOS.
ANY REPLY HELPS! Thank you!
The script I am using: http://prntscr.com/dvqldw
-Jonny
Comment