User Tag List

Results 1 to 2 of 2

Thread: Touch Control Issue

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Jaklar's Avatar
    Join Date
    Oct 2012
    Posts
    46
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Touch Control Issue

    Here's what I'm trying to accomplish...and getting mixed results:

    I'm going through a Canabalt-type tutorial that was originally created for PC and am trying to get it working on iOS. It only has a single control: jump. The longer the jump button is held, the higher the player jumps. Release jump button, plummet back to earth.

    The tutorial uses "Platform" as the player movement type, which I am leaving as is.

    I have the Frame set for Single Touch.

    For iOS Joystick Device, I've tried both "Touch" and "None"

    Here's the dealio:

    The tutorial sets a condition for gravity with "Always Set Gravity to 70"

    Then, when the player presses (and holds) the jump button, the tutorial creates a new condition for the player, i.e., "Repeat while Space Bar is Being Pressed" - Set Gravity to 20.

    I have changed the above entry to "Repeat While Left Mouse Button is Being Pressed" - Set Gravity to 20.

    Now, if I try this on my iPad, by just pressing and holding the virtual fire button displayed, the player just does a little jump with the 70 gravity.

    HOWEVER, if I put a second finger ANYWHERE on the screen, the jump button seems to kick in the lower gravity, resulting in a higher jump. If I release the jump button, the player descends slowly, which is not correct.

    HOWEVER, if I release my second finger from anywhere on the screen (but keeping the fire button down) the player drops faster and according to plan.

    So, my question is: what's the deal with this mysterious second finger being required...?

    Any help is greatly appreciated.

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Touch Control Issue

    I've left a an answer for this in your other thread you need to use the joystick object to read the buttons, not mouse key events.


    Sent from my iPad Mini using Tapatalk HD

Similar Threads

  1. Broken touch control since xcode update
    By WhatPixelYouOn in forum iOS Export Module Version 2.0
    Replies: 4
    Last Post: 24th September 2013, 05:55 AM
  2. BUG (257.24): New Touch on an object has started issue
    By mobichan in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 5th September 2013, 04:07 AM
  3. iOS Touch Control help
    By WhatPixelYouOn in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 25th March 2013, 03:53 PM
  4. Multi Touch Accumulation Issue - Identified!
    By scottige in forum Android Export Module Version 2.0
    Replies: 5
    Last Post: 22nd March 2013, 08:08 AM
  5. Problem with Touch Control
    By Captain_Harris in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 30th November 2011, 01:48 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
  •