iOS Basic Joystick Operations
Greetings:
I've created a game for the iOS export where the main character operates on an eight directions movement. I then wanted this movement to take place using the Joystick on the iPhone and iPad. Now when I exported this to both iOS devices (ipad and iphone), the directional joystick moves the character properly on the device. However, how do you set the EVENT behaviors when the Fire 1 and Fire 2 buttons are pressed? Do I need another extension? I know that the logic would be "Upon pressing Fire 1, then the main characters animation would change". But how do I implement this in the game? Is there a setting that needs to be checked that i missed? Is there an object that I need to drag on the screen? The directional pad doesn't require you to use the event editor, but i'm assuming that the Fire 1 and Fire 2 buttons do.
As of now the following properties are in place for the frame:
1. iOS Options
Touch Mode: Single touch
2. Joystick
Device: Touch joystick
Fire 1 button (checked)
Fire 2 button (checked)
PLEASE HELP! :-) I need to know how to activate the Fire 1 and Fire 2 buttons.
Re: iOS Basic Joystick Operations
if you are using the joystick object then it's simply a matter of using "Upon pressing Fire 1" - do action. The joystick object should automatically display an A and B button on the simluator, the same as the joystick.
Re: iOS Basic Joystick Operations
I got it! Thanks alot. :-)
Re: iOS Basic Joystick Operations
It's really nice to have a default joystick object, just remember that you might have to make an event to enable the sticks in your game as you can disable the stick or either button from appearing, which is a nice feature.