1 Attachment(s)
Drag and move to the right/left ? How can i do it ?
Hi,
I would like to create good movement with Drag and drop system. I mean sth like mobile space game (like Sky Force, Cosmos Endless Space Odyssey etc.). There you have to put your finger on the screen and move Space Rocket to the right/left ( I need Only on x axis movement). You can drag screen wherever you want and move Space Rocket. When you drop your finger from the screen then you can't control Space Rocket. How Can i do it ? I prepared example with 3 movements. I think that best option is Follow XMouse, but problem is:
1. How Can I set speed limit to move to the right/left ? ( I can slide very fast on my screen but i don't want very fast character/object movement)
2. How Can i create movement working only when i drag screen and stop working when i drop screen. I want move object/character when i drag screen and move , not object.
I hope that everything is clear :)
Below YouTube movie with similar control system (look where is my mouse cursor):
https://www.youtube.com/watch?v=qzvN2_Lmf6s
https://www.youtube.com/watch?v=tZwXICNQea4