User Tag List

Results 1 to 8 of 8

Thread: Buttons for directions

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Evilized79's Avatar
    Join Date
    Nov 2009
    Location
    Netherlands
    Posts
    890
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Buttons for directions

    Ok I have got two buttons (active) a left and right arrow.

    And I have a object with the platform movement.

    I want the object to walk left when I press the left active object.
    and right when I press the right button.

    I don't want to use that premade joystick thing for it being hard to handle.

    Can someone help me with some sort of code, I'm pretty noob at them.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS 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)

    Join Date
    Apr 2007
    Location
    Australia
    Posts
    1,152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Buttons for directions

    You can change the look of the premade joystick buttons by replacing the assets in the "Resources" folder of your xCode project.

    The only way you can create custom buttons and tell the active to move left and right from touch inputs is to use a manual set x and y position engine, or the platform movement object (instead of the standard clickteam platform movement).

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Evilized79's Avatar
    Join Date
    Nov 2009
    Location
    Netherlands
    Posts
    890
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Buttons for directions

    Yeah I found the folder where you can replace the buttons.

    Isn't there a way to make a line something like:

    When mouse is over object1---> read joystick state (arrow left)

    for example.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS 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)

    Join Date
    Apr 2007
    Location
    Australia
    Posts
    1,152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Buttons for directions

    Not that I know of, you'd be better off using the Platform Movement Object instead of the built in one. You can send commands like "User is holding left" with it.

  5. #5
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Evilized79's Avatar
    Join Date
    Nov 2009
    Location
    Netherlands
    Posts
    890
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Buttons for directions

    Thanks Rhysd!

    I will look into that!

  6. #6
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Evilized79's Avatar
    Join Date
    Nov 2009
    Location
    Netherlands
    Posts
    890
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Buttons for directions

    I never worked with this platform movement object.
    I see you can put all sort of numbers in it like acceleration, gravity ect. but i can't seem to find a lace where to set the actual speed of the object.

    When I give a command "user is holding left" it walks very slow.
    How can I make it go as fast as the actual speed it was given.

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS 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)

    Join Date
    Apr 2007
    Location
    Australia
    Posts
    1,152
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Buttons for directions

    Left and right speed is x velocity if i'm not mistaken. There should be a few tutorials on using the PMO in the examples/files forum if you do a search.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleInstall Creator Pro

    Join Date
    Jul 2006
    Location
    Germany
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Buttons for directions

    Also, a nice documentation and a good example (a simple game) are installed along with the object.

Similar Threads

  1. Soft Buttons not showing Home/Back/Multitask buttons?
    By Bipolar_Games in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 19th May 2013, 03:38 AM
  2. Looking In Eight Directions
    By variant in forum File Archive
    Replies: 0
    Last Post: 31st December 2009, 06:49 AM
  3. Directions
    By Olivier in forum File Archive
    Replies: 11
    Last Post: 10th July 2008, 09:16 AM
  4. Eight directions?
    By Aidan in forum The Games Factory 2 - Technical Support
    Replies: 1
    Last Post: 1st March 2008, 10:00 PM
  5. 360 Directions
    By JJames19119 in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 9th June 2007, 10:30 AM

Posting Permissions

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