What happens with the option key afterwards?

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited November -1 in Working with GS (Mac)
When I wan to convert my project to Xcode, how is the option "key" for left,right control defined?

Or should I consider to use Accelerate?

Comments

  • JadarStudiosJadarStudios Member Posts: 264
    What do you mean, convert your project to XCode? Like make an Ad-hoc build?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    If you are building a game for iOS you must specify other controls for anything that is run off the keyboard. the only thing that will work interchangeably between iOS versions and MAC is mouse and touch.
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    GameSalad Project to Xcode File for iPhone

    Okay in my case, my Actor is controlled by Key left/right...but how to solve that when building up an Ad-hoc?

    Change to touch (how would that work concerning movements?) or what to do when still using key?
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    You need onscreen controls that do the same thing that you have the keyboard keys assigned to do.

    Here is just one of the many ways of doing that…

    Make you some graphics for control buttons, arrows, round button, whatever you want. Create a text attribute, and call it "controls"

    Now go into your buttons individually. For example, lets use right movement. So go into the graphic you made that will control the actors movement to the right. Make a rule that says...

    When touch is pressed > change attribute.controls to "right"
    Now go into your main actor, and where you have the rule for the keyboard control that makes your character move right, change the rule you already have in there to say …

    when attribute.controls contains "right"…(You are changing the drop down menu from saying when "key is pressed" to when "attribute") And leave the rest as you already have it… Now that onscreen button you made should now control your characters right movement.

    Then go through each button and do the same thing, changing the rule to make it go up or down, or jump or whatever.

    Hope that makes sense.
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okey, did it like you said but when I try to play the game and I press the buttons, my actor runs and runs and runs, means he does not stop when I stop pressing the button?!

    And also the image of the actor, I added Animate with different pictures, but when the actor goes left/right and then stop, the sidepictures stay and my frontpic is not shown again?"
Sign In or Register to comment.