iphone interaction

iPhone/iPod/iPad specific questions and discussion

iphone interaction

Postby moebius » Sat Mar 09, 2013 4:48 pm

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?.
moebius
 
Posts: 21
Joined: Thu Mar 07, 2013 12:27 pm
Score: 0 Give a positive score

Re: iphone interaction

Postby MrJolteon » Sat Mar 09, 2013 7:40 pm

'Mouse button down' events are all you need.
Join us on Discord!
Game Editor 2
These are the best ways to reach me these days


Your local Community Janitor, always lurking in the shadows...
User avatar
MrJolteon
 
Posts: 2326
Joined: Sat Aug 09, 2008 3:25 pm
Location: Stranded under endless sky
Score: 105 Give a positive score

Re: iphone interaction

Postby moebius » Mon Mar 11, 2013 6:45 pm

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
moebius
 
Posts: 21
Joined: Thu Mar 07, 2013 12:27 pm
Score: 0 Give a positive score


Return to iOS

Who is online

Users browsing this forum: No registered users and 1 guest

cron