User Tag List

Results 1 to 3 of 3

Thread: Platformer Touch Control Problems

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Dowpag's Avatar
    Join Date
    Sep 2015
    Location
    Montréal
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry Platformer Touch Control Problems

    Hi,

    I'm making a platformer game for android devies. I'm using PMO as movement engine and I'm trying to set Touch/Multitouch contols. (I've set the Multiple Touch object, enabled regognition on all the frame, and set nuber of touches to 3)

    Basicly, the screen is split in 3 zones (see attached picture). So when the left or right section in pressed, the character goes left or right, and when the center section is pressed, the character jumps. dsdc.png

    At the moment, mouvements are working but there are two bugs that i'm unable to solve:

    1. When the character is not moving, if I press jump section, keep my finger on it, and THEN press a side, it jumps but it won't move left or right. (But if I hold a side section and then jump, everything works fine)

    2.If I hold Right section, then hold left section, then relesae right, then release left, the character will never stop moving. (Same thing happens on the other side). It would be nice to put priority on the last pressed. So if I'm holding right and then press left without having released right, Character will go left)

    My events are like this:

    Touch 0 is active on object RIGHT --> PMO RIGHT
    Touch 0 is active on object LEFT --> PMO LEFT
    A new touch on object JUMP has started --> PMO JUMP (I tried tu use same dependencies (Touch 0 is active) as the left/right movement, but I was unable to double jump)

    Any help to solve those two bugs would be very apreciated

    Thank you!

  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,112
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    the problem is you're not really using the "mutli" part of "multi touch" - the results you're getting are logical -

    In your first example, A New Touch on Jump has started (assume it will be touch 0) - so then when you do another simultaneous touch on the left OR right, that will actually be touch 1 active on the left/right buttons, not touch 0. So the player won't move left or right.

    There are numerous ways to solve this, I personally like to use "touch detectors" and assign a value of each touch to a detector.

    I can't open the file I'm linking in this post so it might be the wrong one.. but I made this example for someone a few days ago, it should help you out too.
    Attached files Attached files

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export Module
    Dowpag's Avatar
    Join Date
    Sep 2015
    Location
    Montréal
    Posts
    52
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks a lot for that! Problem solved

Similar Threads

  1. platformer problems
    By sgn15 in forum Multimedia Fusion 2 - Technical Support
    Replies: 58
    Last Post: 9th February 2014, 03:16 PM
  2. iOS Touch Control help
    By WhatPixelYouOn in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 25th March 2013, 03:53 PM
  3. Touch Control Issue
    By Jaklar in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 13th November 2012, 09:06 PM
  4. Touch based platformer (no on-screen buttons) Has this been done before?
    By Pineapple in forum iOS Export Module Version 2.0
    Replies: 6
    Last Post: 22nd February 2012, 08:56 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

Tags for this Thread

Posting Permissions

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