Page 1 of 1

iphone interaction

PostPosted: Sat Mar 09, 2013 4:48 pm
by moebius
After playing around a little with moondefender tutorial on windows, now I understand the basic behaviour of the engine.
And now I will switch to my macbook to test the building for iphone using xcode, but... because we don't have a keyboard on the iphone, what about the interaction keys for xcode?.
As far as I understand, mouse control can be simulated by on screen touch events.
Can this be customized in some way or is there any other kind of interaction method for iphone games?.
I suppose that the only way is to add some kind of on-screen joystick. But how can we control touch events on icons on the screen?. Is there some example somewhere?.

Re: iphone interaction

PostPosted: Sat Mar 09, 2013 7:40 pm
by MrJolteon
'Mouse button down' events are all you need.

Re: iphone interaction

PostPosted: Mon Mar 11, 2013 6:45 pm
by moebius
I've written an on-screen joystick test app (using 'mouse button down' and 4 arrow actors) that moves a sprite all over the screen, and working like a charm.
Thank you