User Tag List

Results 1 to 5 of 5

Thread: Looking for custom joystick advice or tutorials?

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Bree's Avatar
    Join Date
    May 2014
    Posts
    317
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Looking for custom joystick advice or tutorials?

    Hi all!

    Are there any good app tutorials for movement out there for custom joysticks? I have been struggling to find a good way to make my movement work smoothly.

    The default joystick doesn't work for me the way I was hoping. I see I can upload images. I was thinking about having two buttons that you can press that moves the toon right/left only. Nothing else is needed for those buttons so it's pretty simple. Could I make two actives and then program it in somehow, or would I go through the joystick to do that?

    Thanks so much for your help!!

  2. #2
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    are you talking about a custom joystick for mobile phone games? like 2 buttons to move left/right?

    download the file I linked in this thread - http://community.clickteam.com/threads/88771-Touch-not-releasing-(

    if you want to use this with built in CT 2.5 movements, just use the Android Plus object to control the inputs.

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Bree's Avatar
    Join Date
    May 2014
    Posts
    317
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Thank you DaveC! I had to figure out how to get the attachment to work because it was downloading as a php file instead (save as .mfa before downloading not after - thanks Kimera!). This is exactly what I was looking for.

    Thank you!

  4. #4
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Bree's Avatar
    Join Date
    May 2014
    Posts
    317
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Hi DaveC or anyone else that sees this that can answer! So I got the buttons working but I'm struggling with understanding one thing.

    In the gameplay section you have this:

    Y Position of [ship] > 32
    Set Y Position to Y("Ship") - 3

    = equals moving up

    Y Position of [ship] < (Frame Height) - 32
    Set Y Position to Y("Ship") + 3

    = equals moving down


    How can I translate this to moving right/left instead? I know to start I need to use X instead of Y. As I test I am able to move right OK using the first code, but whenever I add the second line (with or without the Frame Height) it doesn't work for anything. I'm sure I'm having a hard time figuring it out because I don't fully understand the original code. Where does 32 come from? Does it have to do with resolution? If so mine is 640X1366.

    Thanks for any help!

  5. #5
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    That Y position is just to set a limit on how far up or down the ship can move, So:

    Y Position of [ship] > 32
    + button up

    - Set Y Position to Y("Ship") - 3

    This means as long as the player is pressing up AND the Y position of the Ship is greater than 32 pixels (so it doesn't go off the top of the screen) move the ship Up 3 pixels. Once the Y position of the Ship is near the top of the screen (say, 32 pixels from the top) the up movement will no longer trigger. You could set the 32 to any number you like, or not have it at all (but then the ship could fly off the screen).

    In the first place, all you really need is:

    Touch is overlapping Button 1 - set X of Ship to Ship X-1
    Touch is overlapping Button 2 - set X of Ship to Ship X+1

    then you can set movement limits/collisions after you have it moving left and right.

Similar Threads

  1. Custom Joystick Example (.mfa)
    By Kozyon in forum Android Export Module 2.5
    Replies: 5
    Last Post: 20th May 2014, 07:22 PM
  2. Custom Joystick Example (.mfa)
    By Kozyon in forum iOS Export Module 2.5
    Replies: 3
    Last Post: 20th May 2014, 08:51 AM
  3. Looking for advice on custom pathfinding...
    By ezzypixel in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 9th March 2013, 07:04 PM
  4. Joystick, sound and custom movement
    By ineke in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 3rd May 2012, 12:18 PM
  5. Joystick 2 extension only finds one joystick
    By Tomssuli in forum File Archive
    Replies: 1
    Last Post: 10th February 2009, 07:03 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •