User Tag List

Results 1 to 10 of 10

Thread: Multi-touch suggestion

  1. #1
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Multi-touch suggestion

    A common way to control something on the iphone is to drag with your finger. I'm using the multitouch object to do this with some events, but it would make it even easier if you could incorporate extra properties to this object that return the number of pixels on the X and Y since you started dragging with your finger on the screen.

    So what I'd like the multitouch object to have are four new properties and one new condition:

    • =XTouchOrigin( "iPhone Multiple Touch", 0) - returns the X position where you first touched the screen when the "a new touch has occurred" condition became true
    • =YTouchOrigin( "iPhone Multiple Touch", 0) - returns the Y position where you first touched the screen when the "a new touch has occurred" condition became true
    • =XTouchDelta( "iPhone Multiple Touch", 0) - returns XTouch-XTouchOrigin (the difference between the start touch position and the current touch position)
    • =YTouchDelta( "iPhone Multiple Touch", 0) - returns YTouch-YTouchOrigin (the difference between the start touch position and the current touch position)
    • (new condition) Is touch (x) occurring? - returns true if the touch is still alive (the current conditions only return true when a touch is first registered or when it ends)

    *note: I have achieved the above with events in MMF, but it would make things even easier if this was built in.

    If you were making your own analogue joystick control you could display the base point of it at XTouchOrigin and YTouchOrigin. The XTouchDelta and YTouchDelta would give you the amount of movement which you could act on. (i've seen several iphone games where the joystick position is dynamic in this way)

    The XTouchDelta and YTouchDelta also work for short dragging of your finger on the screen. This is useful for either moving an active object or for dragging the screen for scrolling.

    I guess it would make sense to add something similar to the joystick Control object as well, which at present only returns a direction. It would be useful if you could also return the amount you have moved the joystick from it's origin just like the XTouchDelta would do.

    I don't think any of this functionality is currently built in (apologies if any of it is, in which case I've not seen it!).

    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  2. #2
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Multi-touch suggestion

    As we have the origin and the delta, you could also return the angle and distance which would be very useful.

    • =TouchAngle( "iPhone Multiple Touch", 0)
    • =TouchDistance( "iPhone Multiple Touch", 0)


    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  3. #3
    Clickteam Clickteam
    Anders's Avatar
    Join Date
    Jun 2006
    Location
    Denmark, Århus
    Posts
    3,456
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Multi-touch suggestion

    Very good suggestions

  4. #4
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Multi-touch suggestion

    so we might see these in the next beta?
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  5. #5
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Multi-touch suggestion

    Oh, could we have two actions as well -

    • SetXTouchOrigin
    • SetYTouchOrigin
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multi-touch suggestion

    Those are good suggestions. I've done the same as AndyH in incorporating the Deltas with my own code, but having it built into the extension would make a lot of things much easier.

  7. #7
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Multi-touch suggestion

    Yes, I think it will make life easier for the mutlitouch and joystick objects.

    For drag scrolling (where you can keep the momentum going) you have to adjust the X and Y origin value hence the two set actions above.
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  8. #8
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Multi-touch suggestion

    I see Beta 15 has a new touch object. Will you be adding the above to one of the upcoming betas?
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  9. #9
    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)

    Re: Multi-touch suggestion

    Yes, the beta was created a little on the rush, I did not implemented all that I wanted. It will be for the next version.

  10. #10
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Multi-touch suggestion

    Thanks for putting these in. Will do some testing.
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

Similar Threads

  1. Multi Touch D-pad example
    By DaveC in forum iOS Specific Example Files
    Replies: 21
    Last Post: 23rd April 2015, 09:34 PM
  2. [Bug] Multi Touch Issues
    By scottige in forum Android Export Module Version 2.0
    Replies: 13
    Last Post: 12th March 2013, 12:34 PM
  3. Multi-touch and swipe?
    By GameMaker2019 in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 22nd January 2013, 08:23 AM
  4. Please help me :/ multi touch
    By Outcast in forum iOS Export Module Version 2.0
    Replies: 11
    Last Post: 16th January 2013, 06:09 AM
  5. multi touch
    By cfullerNY in forum iOS Export Module Version 2.0
    Replies: 8
    Last Post: 17th January 2012, 06:11 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
  •