PlayMaker Help & Tips > iOS Help
ios / ipad / Iphone Touch Control a Character
REPORTER:
Hi, I´m new to Playmaker -
I´m developing an (2D) app for ios / Ipad / Iphone - i like to move a character (2D) with my finger (run, jump,walk etc.) - any idea / help to do it with playmaker?
Thanks Volker
skipadu:
What kind of movement you had in mind? With swiping?
If so, you can use Swipe Gesture Event -action.
Then you send different events based on the swipe direction. Wired it up as you want, e.g swipe up and your character jumps and so on.
REPORTER:
Hi , thanks for the answer . I would like to move the 2d character with the finger forward, backwards (ie to the left or right) (the character should then change from the idle status to the running status) as well as jump upwards. So practically the arrow control on the keyboard transferred to the finger movement. In addition, when the character comes to a certain point in the game, an action should happen eg. The character meets an object. Then, for example, an info should automatically appear what it is, etc. And last but not least, I want to avoid the character's various objects falling from the sky, when hit, it must start again from the starting point. And the "dodge" etc, again via the finger control on the ipad / iphone :). I have Adventure Creator, there it is described, but I wanted to try it with playmaker and wonder if it is possible.
Volker
skipadu:
To behave like arrow keys, I might myself use buttons on the UI and then wire them with Playmaker actions.
There are many tutorials available how to use UI buttons to send Playmaker actions, this is one example Maybe that will get you started with controls.
You described the whole game there and you should find it easy to do when you get into Playmaker and Unity. It is hard to tell every step here on forums.
Maybe watch some tutorials from following channels on YouTube:
* Dumb Game Dev
* Jinxter Games
There you should find awesome tutorials from various ways of doing what you want and more.
djaydino:
Hi.
There is also a sample file for a onscreen joystick on the Ecosystem
if you would like a onscreen controller :)
(Search for Ugui Joystick)
Navigation
[0] Message Index
[#] Next page
Go to full version