User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Long click / long press?

  1. #1
    No Products Registered

    Join Date
    Sep 2015
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Long click / long press?

    I really feel like I'm missing something here.. I've been trying to make an active object that will send you to another frame if clicked but will open up another menu if long pressed. Is this not a possibility or am I just not getting clever enough with my events?

  2. #2
    Clicker Fusion 2.5Android Export Module

    Join Date
    Sep 2010
    Posts
    564
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I did a test and i got it working doing it like this

    1. Repeat while left mousekey is pressed -----------> Add 1 to alterable value A + Set alterable value B to 1 (On an active object of your choice)

    2. (negate)Repeat while left mouse key is pressed -----------> Set alterable value A to 0 + Set alterable value B to 0

    3. Alterable value A =10
    +
    Alterable Value b =1 ------------> open menu

    4. User clicks with left button on active object -------> Go to frame

    try that and see if it does anything for you of course you can exchange that alterable value to be 25 instead of 10 if you want a longer press. Worked like a charm here!

  3. #3
    No Products Registered

    Join Date
    Sep 2015
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hm.. it makes perfect sense but for some reason I'm not getting the desired result! As soon as I click the left mouse to hold it over the active object it immediately sends me to the next frame. I'm trying to debug it but I can't come up with an answer just yet. Here's what I've tried:

    Repeat while left mouse-key is pressed AND mouse pointer is over "active1"
    >add 1 to alterable value a
    >set alterable value b to 1

    (negate)Repeat while left mouse-key is pressed
    >set alterable value a to 0
    >set alterable value b to 0

    Alterable Value a of "active1" = 10 AND alterable value b of "active1" = 1
    >Create "menu"

    User clicks with left mouse button on "active1" AND alterable value b of "active1" = 0
    >Jump to frame "2"

    I think I have to prevent it from looping to the click event but still allow the click event to happen somehow I'm just not seeing a clean way of doing that. Any ideas?

  4. #4
    Clicker Fusion 2.5Android Export Module

    Join Date
    Sep 2010
    Posts
    564
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Hmm...well to be completely honest i never tried to open a menu...i had on normal click just play a soundand on longer press endthe application but i figured it would still work...just change what you want to happen :-)

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    jn2002dk's Avatar
    Join Date
    Mar 2014
    Posts
    217
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quick and very dirty example using the multi touch object
    Attached files Attached files

  6. #6
    No Products Registered

    Join Date
    Oct 2016
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi, I'm sorry for bumping up a very old thread.
    I'm trying to find out how to create a long press command as well.

    To jn2002dk: I can download your .mfa file, but Fusion 2.5 says it must have your .mfw in order to open it. Do you still have that .mfw file? Or is it possible to explain how to do a long press command here?

    Thank you!

    If I'm not allowed to bump old threads, apologies!

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS 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)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,396
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Try this tutorial

    https://youtu.be/NEqMWq_T8p0

  8. #8
    No Products Registered

    Join Date
    Oct 2016
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much! I'm watching it now!

  9. #9
    No Products Registered

    Join Date
    Oct 2016
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I see Sparckman's long press command allows player to click anywhere. But if I would like the player to click and hold only on a specific object, what would be the proper way to do it?
    I've added "When mouse click on left on Object", but it doesn't seem to restrict the player's clicking position.

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS 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)
    Sparckman's Avatar
    Join Date
    Feb 2011
    Location
    Planet of the Kangaroos
    Posts
    1,396
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    here is an example from my new examples site.

    http://www.sparckman.com/filebox/product/p:yd8V8X83xtk

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Offering 2D Graphics for your games (paid) - from a long time Click product user.
    By method72 in forum Paid Design & Development Requests
    Replies: 0
    Last Post: 31st March 2014, 06:43 PM
  2. How long now?
    By DJFuego in forum Lacewing
    Replies: 13
    Last Post: 11th April 2009, 05:08 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
  •