User Tag List

Results 1 to 7 of 7

Thread: Crawling with the Joystick 2 object?

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Mar 2013
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Crawling with the Joystick 2 object?

    I just added a crouch and crawl to my movement.

    Im using the Platform movement object for collisions and the Joypad 2 object to support gamepad-control.

    This is how I want it to work: 1) Hold DOWN to crouch. 2) Keep holding DOWN while holding LEFT/RIGHT to crawl.
    This works flawlessly with the keyboard (arrowkeys), but when i try this on the gamepad (more specifically with the D-pad on my 360-controller) it doesn't work.
    The problem occurs when I push the D-pad down to the left or right. Im using the "Point-of-view" directions for the gamepad movement in Joypad 2 object.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Mar 2013
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is how i've set up the events for the keyboard to crawl:

    When:
    - Repeat while Player1 Moved down
    - Repeat while Player1 Moved left
    - X(Negate) Object is jumping * * * * * (platform movement object)
    - X(Negate) Object is falling * * * * * * (platform movement object)

    Do:
    Platform movement object - Set maximum X velocity to 100
    Player 1 - Change animation sequence to Crawling

    This works fine for the keyboard. But when i try applying this to the Joystick 2 object (more specifically to the D-pad of my gamepad) it doesnt work.

    I've tried this without any success:

    When:
    - Point-of-view joystick1 is backward * *(joystick 2 object)
    - Point-of-view joystick1 is left * * * * * *(joystick 2 object)
    - X(Negate) Object is jumping * * * * * (platform movement object)
    - X(Negate) Object is falling * * * * * * (platform movement object)

    Do:
    Platform movement object - Set maximum X velocity to 100
    Player 1 - Change animation sequence to Crawling


    Any suggestions?

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Mar 2013
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So this isn't possible to do with the D-pad of the controller? Only with the stick?
    Cause I am currently trying to make this work with the D-pad.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Mar 2013
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I tried this: Compare to a fixed value:

    Equal -
    POVDegrees( "Joystick 2 object", 3)

    for crawling to the right, but it doesn't work.
    what am i doing wrong?

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by AndyBazooka View Post
    I tried this: Compare to a fixed value:

    Equal -
    POVDegrees( "Joystick 2 object", 3)

    for crawling to the right, but it doesn't work.
    what am i doing wrong?
    You're forgetting the divided by 45.0 part.

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Mar 2013
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    help.png

    this is what i've done. tried exchanging the value 3 to 0,1,2,4, etc aswell without any luck. what am i doing wrong ?

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module

    Join Date
    Mar 2013
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    awesome! thanks. this really helped

Similar Threads

  1. Joystick 2 object
    By z33z in forum Released Extensions
    Replies: 26
    Last Post: 10th October 2019, 01:39 PM
  2. Joystick 2 Object
    By Panchos in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 15th July 2013, 06:27 PM
  3. Crawling Issues
    By FlinkGigitty in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 18th July 2010, 12:31 AM
  4. Wall Crawl/Insect Crawling
    By Cossin in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 16th March 2010, 02:54 PM
  5. Joystick 2 Object Example
    By Bedziu in forum File Archive
    Replies: 0
    Last Post: 25th October 2008, 09:22 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
  •