User Tag List

Results 1 to 10 of 10

Thread: How do I allow only one click per frame...

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Robotica's Avatar
    Join Date
    Jul 2015
    Location
    Las Vegas, NV and Orange, CA.
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation How do I allow only one click per frame...

    Hello Everyone,
    First off much thanks to everyone who responded to my other questions on this forum. My game Future Police is coming out great so far as I have already designed all levels and objects and I am now working on programming. Please see below a couple screenshots of the title page, menu, and two of the 10 stages.

    future_police__sample_title_and_menu_small.jpg future_police__sample_stages_small.jpg

    I do have a question however, well a lot of questions... on programming certain type of events in my point and click shooter...

    How do I allow only one click per frame?? Reason being I want the player to only be able to select one stage on the stage menu screen (as shown in the image attached).

    Also, Since I am making an android game... when I program all these "Left Click" events... they will be translated to "tap on screen of your phone" events... correct? I don't see a tap on phone option... I would assume it would be converted to such but you know what happens when I assume...

    Another question... How may I be able to have my animation for the stage select occur... then run a "doors closing" animation where doors slide and cover the screen... THEN jump to the stage selected... I would imagine that upon selecting a stage it will jump to that new frame immediately and the user will not have time to view and appreciate the animation/transition to the stage they selected....

    I don't expect anyone to hand me anything on a silver platter as I have been at my desk for over 12 hours a day for 2 weeks now... working on this project full time I am learning a lot but still have so many questions... so if someone could just point me to a "Fusion 2.5 Bible" I would be DELIGHTED to read it. Not sure where I can find such thing though.

    PS. I am willing to hire a consultant to answer all these advanced questions I have about programming within Fusion 2.5.

    Thanks!

  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,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Yes, clicks are converted to touches on touch screen devices, if you want more control over your touch events, you can use the Multi-Touch extension.

    To prevent the user from making a second click, the easiest way would be to put an extra Condition on the clicking event. To make it really clear, we'll use counters in my explanation, but you could use a global value or a flag/alterable value as well.

    So create a new counter called "Click"

    Now, in the event editor create an event

    Conditions:
    "Click" Counter = 0
    + User Clicks on Stage 1 Button

    Actions
    Set "Click" Counter to 1
    Change Animation to "Doors Closing"

    The above event will only be true ONCE, because the click counter = 0 and when the user clicks on the button, it will be 1, so all the conditions won't be met for for the event to be true a second time.

    So now you can have another event

    Conditions
    "Click" Counter = 1
    + Animation "Doors Closing" has finished

    Action
    Jump to Frame (whatever frame you wish)

    To select other stages, you could do the same events except change the counter to 2 (for stage) or 3 (for stage 3)

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Robotica's Avatar
    Join Date
    Jul 2015
    Location
    Las Vegas, NV and Orange, CA.
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Brilliant! Thank you Dave. I believe I do understand your explanation. I, however, would also want a blinking animation between the user selecting the stage and the doors closing... so I assume I would do the same but have it as:

    CONDITION:
    "Click" counter = 0
    + User clicks on Stage 1 Button
    ACTION:
    Set "Click" counter to 1
    Change animation to "Stage 1 Button Blinking"


    CONDITION:
    "Click" Counter = 1
    + Animation "Stage 1 Button Blinking" has finished
    ACTION:
    Change animation to "Doors Closing"


    CONDITION:
    "Click" Counter = 1
    + Animation "Doors Closing" has finished
    ACTION:
    Jump to frame "Stage 1"


    That sound about correct? I will be programming this all night. haha. Thanks again! I appreciate your response.

  4. #4
    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,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Yep that should work - sometimes Fusion gives some unexpected results using "Animation Has Finished" but in this case I'm sure it will work perfectly.

  5. #5
    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)
    I made a quick example with your pic
    removed

    ya can change it to animation is over > next frame

    i used a button

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Robotica's Avatar
    Join Date
    Jul 2015
    Location
    Las Vegas, NV and Orange, CA.
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, sparckman... I was hoping you wouldn't do that... I was actually thinking that... "I sure hope sparckman doesn't make an MFA that everyone will download with my artwork in it."... yup... there it is...

    That's why I tried to make my screenshots super tiny at 255 pixels.

    Please don't distribute that. Can you please take that down?

    EDIT: yeah, sorry to sound like a jerk... just I've been at my desk for 12 hours a day for two weeks now and although I understand when it's released that someone could just take a screenshot and quote/unquote "copyright" my work... was hoping that catastrophe wouldn't happen prior to my release. This just makes it easy wayyy to easy for someone to use my work.

    Thanks though.

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleFirefly 3D Module
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,554
    Mentioned
    34 Post(s)
    Tagged
    0 Thread(s)
    I wouldn't worry too much, no ones going to rip your idea from the two graphics you supplied. By the way even the small ones you posted could be enlarged by anyone with a basic graphics program. Everyone puts out demo's and screenshots to promote their games these days, whatever your novel ideas for 'Future Police' are - I'm sure they're safe. No one even knows the basic game play you have in mind. Best of Luck, I hope to check out your game when you're finished.

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Robotica's Avatar
    Join Date
    Jul 2015
    Location
    Las Vegas, NV and Orange, CA.
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okie dokie. thanks Aenever.

  9. #9
    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)
    Quote Originally Posted by Robotica View Post
    Yeah, sparckman... I was hoping you wouldn't do that... I was actually thinking that... "I sure hope sparckman doesn't make an MFA that everyone will download with my artwork in it."... yup... there it is...
    That's why I tried to make my screenshots super tiny at 255 pixels.
    Please don't distribute that. Can you please take that down?
    Thanks though.
    Yes, the link has been disabled . I hear you making original art work is hard. Did you get it working after?

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Robotica's Avatar
    Join Date
    Jul 2015
    Location
    Las Vegas, NV and Orange, CA.
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Haha. I did. Thank you. I'm using a global value and having it reset to 0 after every level and you return to the selection menu.

Similar Threads

  1. Register a tap/click outside the frame?
    By BaloneyFraise in forum Android Export Module 2.5
    Replies: 9
    Last Post: 14th November 2016, 06:01 PM
  2. Mouse click in frame preloaders
    By Olivier in forum Flash Export Module 2.5
    Replies: 1
    Last Post: 4th December 2014, 06:24 PM
  3. Replies: 4
    Last Post: 30th November 2014, 05:07 PM
  4. after the first click, the system waits for a second before accepting the next click
    By kikiriki in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 9th August 2013, 01:45 PM
  5. Bottom of frame cut off when I click Run Frame/Application
    By soarerv8 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 23rd January 2013, 03:11 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
  •