User Tag List

Results 1 to 3 of 3

Thread: Limiting joystick to up down left right

  1. #1
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export ModulePatch Maker
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)
    Renatos's Avatar
    Join Date
    Jun 2006
    Location
    São Paulo, SP - Brasil
    Posts
    593
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Limiting joystick to up down left right

    Hello everyone,

    Using the Joystick in the iOS, I saw there is an action for Joystick Mask, but I can't figure it out and get it to work. From my understanding it would limit the directions of the controler to up down left right for example. But how do I do it?

    From the help file:
    This action allows you to mask the input of the joystick. You have to provide a binary mask used to calculate a logical AND between the joystick input and the mask. The inputs are coded as following :
    %000001 : top
    %000010 : bottom
    %000100 : left
    %001000 : right
    %010000 : fire 1
    %100000 : fire 2
    For example, a mask of 3 (%11) will only allow up and down movements...


    I don't get what it means mask of 3, or how would you write it in the expression editor, because everything I have tried at least, has failed.

    Thanks in advance.

    Renato

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Take the directions you only want to use. Take the value for those directions and add them : you'll get the number to use.

  3. #3
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export ModulePatch Maker
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)
    Renatos's Avatar
    Join Date
    Jun 2006
    Location
    São Paulo, SP - Brasil
    Posts
    593
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So right, left, top, down would be 1111? I simply write 1111? Because when I did that, it didn't work...I'll try again.

Similar Threads

  1. Limiting an Angle
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 1st May 2013, 09:37 AM
  2. Limiting atan2 to 180 degrees
    By infinitum3d in forum The Games Factory 2 - Technical Support
    Replies: 6
    Last Post: 2nd April 2012, 11:31 PM
  3. limiting events
    By willow in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 27th February 2010, 09:22 AM
  4. Limiting digits
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 27th February 2009, 06:20 AM
  5. Limiting Jumps
    By dsilvers in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 3rd February 2009, 02:02 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
  •