User Tag List

Results 1 to 3 of 3

Thread: Going crazy

  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)

    Going crazy

    I have this simple 4 event example here and I simply cant get it to work and I cant see how it logically does not work??

    It is supposed to make it so when you click on one of the green boxes on layer 2 belonging to a group, a flag goes on, on the object and it is moved to layer 3 and the object sticks to the mouse. All is well that far, but then I have another event for releasing the object back to its original position when you click on a red detection box and the object you are holding is overlapping the detection box. Because the detection box is on layer 3 and the object you pick up is also on layer 3 when its flag is on I don't see why this does not work?

    I figure it has something to do with there being two mousclick registered at the same time and cancelling out each other or something. But the 2:nd event to happen in the event list is the one where the object is overlapping with the detection box and you click the left mouse button, and that is not true if they are not at the same layer. It then goes on the event line 3 where if you click the left mouse button on the object it will stick to the mouse. So considering that one is the last event to happen why does the object not stick to the mouse when you click on it if you dont remove the event from line number 2?

    Can someone please look at this and explain the logic behind this?

    I can get it to do what I want by moving the mouse around and spamming the left mouse button as crazy. I dont know if that is good either.
    Attached files Attached files

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS 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)
    King_Cool's Avatar
    Join Date
    Aug 2008
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The problem you are experiencing is quite complicated.
    Events wich start with a RED Condition are emidiate events, meaning they are handeled emediatly as soon as the conditions are met.
    Furthermore, the 'Click on Object' event seems to be handeled after the 'Left mouse click' Event no matter the order in the Event Editor.
    So you will have to imagine the real order your Events are handeled in to understand the logic of your programming.

    I have made minor modifications to your code and solved your problem.
    Red Events cas cause quite some confusion.
    Attached files Attached files

  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 King_Cool View Post
    The problem you are experiencing is quite complicated.
    Events wich start with a RED Condition are emidiate events, meaning they are handeled emediatly as soon as the conditions are met.
    Furthermore, the 'Click on Object' event seems to be handeled after the 'Left mouse click' Event no matter the order in the Event Editor.
    So you will have to imagine the real order your Events are handeled in to understand the logic of your programming.

    I have made minor modifications to your code and solved your problem.
    Red Events cas cause quite some confusion.
    Ah thanks for explaining this! Is this true with keyboard inputs to? Its really annoying when you do something that feels logical and it does not work. I got help on chat to by ProdigyX for another way to do it also. I will upload his version here:
    Attached files Attached files

Similar Threads

  1. Am I Crazy? - Shader Effects
    By ProdigyX in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 19th September 2013, 04:24 AM
  2. MMF 2 Has gone...Crazy. Please Help.
    By WwwWario in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 22nd June 2012, 11:24 AM
  3. Crazy Bat
    By matou in forum Released Games & Apps in Flash
    Replies: 0
    Last Post: 4th May 2012, 01:01 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
  •