Question for Codemonkey's joystick demo

LordTarantorLordTarantor Member, PRO Posts: 890
edited November -1 in Working with GS (Mac)
Sorry to jump at you with this but nobody has come up with a solution.
In your Joystick demo I have notice that if you have the joystick and add some buttons on the side, when you press one of this buttons and keep it pressed if you try to move the joystick it suddenly snap to the position where the pressed button is. Is there a way to avoid this?

Comments

  • LordTarantorLordTarantor Member, PRO Posts: 890
    to late... he has just left the building...
  • LordTarantorLordTarantor Member, PRO Posts: 890
    And now you are back please help...
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Not sure what you want to accomplish? What it should be doing is it should constrain the joystick to the position of the actor that it collides with. The actor that it collides with is always constrained to one set of touch values but it should be reset if it, itself, is not being touched. I'll have to update that later.
  • LordTarantorLordTarantor Member, PRO Posts: 890
    Oh thanks CodeMonkey for reply.
    What I am looking for is being able to move the actor using the joystick but without the problem that happen when you have other buttons to touch.
    Let say that my game is about this mouse that is trying to get out of a maze. The mouse can touch the wall of the maze because they have electricity and the mouse will have to start over if he touch them. So the precise movement is a must...
    Let say that I have a button that when pressed, the mouse shoot lasers or something from its eyes.
    What I notice in all the games created using your joystick and even in your demo is that if you press a button, not the joystick or in your demo (because there are no button) if you put a finger somewhere else on the screen and leave it press, when you try to move the mouse (or the actor) with the joystick, the mouse will star to move but to the direction of the finger that is being pressing a button.
    In my type of game that is lethal for the mouse.
    Can you please help us with this? I say us, because there has been a couple of post about this and there has been some people trying to figure this out but without luck over the past 2 month.
    Thanks again
  • LordTarantorLordTarantor Member, PRO Posts: 890
    Hi CodeMonkey:
    above I wrote my problem.
    Can you look at it to see if there is a way to fix this?
    Thanks a lot
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Sorry LordTarantor. Really busy right now. I will get back to this once I have enough time to rebuild the joystick project.
  • LordTarantorLordTarantor Member, PRO Posts: 890
    Thanks a lot CodeMonkey, I really appreciate it.
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    I might have fixed it this time. It wasn't resetting an attribute in the right order. It probably could be better, but it mostly works for that new OneControlOneButton scene.

    Remember that you need all those Touch# actors in the scene. I noticed they weren't all in some of the scenes.

    http://gamesalad.com/game/play/22929
  • DimensionGamesDimensionGames PRO Posts: 993
    sorry off topic a bit here CodeMonkey....im guessing there is no update today?

    BTW thanks for this amazing product being 15 programming isn't really an option with so little time on my hands XD

    Cheers
  • LordTarantorLordTarantor Member, PRO Posts: 890
    CodeMonkey... You are awesome... Thanks a lot...
    My 2 months of searching, finally has ended... I am so happy...
    Its working properly...
    Thanks again
Sign In or Register to comment.