User Tag List

Results 1 to 7 of 7

Thread: How to do regular movement?

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)

    How to do regular movement?

    I just started to work on transferring one of my regular games to iOS, it is a simple game where you can run to the left or right and jump. I am feeling completely lost though now. I looked in the example section but I could not find a simple example on how to implement moving of the character for iOS? Like just putting a couple of arrows on the screen that you tap to move left and right? Do you need an extension for it? Can you make custom made arrows and buttons?

  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)
    I prefer to actually create active objects and detect touches on them etc. but if you're using a built in movement you can't do it that way, it has to be attached to the default touch joystick. What you do is, go to your frame properties, to the iOS tab (looks like a little iPhone) set Touch mode to Multi touch, then set the Joystick Device to "Touch joystick" and enable the buttons you need with the checkboxes below. You can edit the way the joystick and buttons look in your Application properties under the iOS tab.

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DistantJ View Post
    I prefer to actually create active objects and detect touches on them etc. but if you're using a built in movement you can't do it that way, it has to be attached to the default touch joystick. What you do is, go to your frame properties, to the iOS tab (looks like a little iPhone) set Touch mode to Multi touch, then set the Joystick Device to "Touch joystick" and enable the buttons you need with the checkboxes below. You can edit the way the joystick and buttons look in your Application properties under the iOS tab.
    I use the PMO object for this game. But after testing I realize that I think the controls would be much better if you could move right by just pressing anywhere on the right side of the screen and moving left by pressing anywhere on the left side. Is this possible with the PMO object?

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    TechVision's Avatar
    Join Date
    Nov 2007
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sure that's possible. Take a look at this: http://community.clickteam.com/showthread.php?t=74139

    That covers the buttons, touches and controlling the PMO.

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export Module
    Outcast's Avatar
    Join Date
    Jan 2011
    Location
    Sweden
    Posts
    3,237
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Cool thanks

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)
    cfullerNY's Avatar
    Join Date
    Oct 2011
    Posts
    363
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if your app doesn't require multitouch, you will be fine using only regular "left mouse button" click event (for example "repeat while left mouse held down")
    if your app requires more than one touch simultaneously, you will need to use the multitouch extension and do some learning. many examples are available on these forums.

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    TechVision's Avatar
    Join Date
    Nov 2007
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by cfullerNY View Post
    if your app doesn't require multitouch, you will be fine using only regular "left mouse button" click event (for example "repeat while left mouse held down")
    if your app requires more than one touch simultaneously, you will need to use the multitouch extension and do some learning. many examples are available on these forums.
    If you use this method the "cursor" will still stay at the same position. So it's best to use touch objects (like in the example) with the same method for single and multiple touches in my opinion. You can of course limit the amount of touches and touch objects if they are not needed.

Similar Threads

  1. Regular vs Developer edition
    By GigaTron in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 22nd December 2011, 04:59 PM
  2. Get current corner of Regular Polygon movement
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 7th May 2011, 05:44 PM
  3. I can't get a regular cursor in mmf2
    By Skeets in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th July 2008, 01:48 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
  •