User Tag List

Results 1 to 6 of 6

Thread: Created objects ignore conditions and events?

  1. #1
    Clicker 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)
    Adnihil's Avatar
    Join Date
    Oct 2016
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Created objects ignore conditions and events?

    I have an event that creates an active object when I click, and an other event that makes the object change position when it moves out of the play area. However, the objects created by clicking don't change position when they move out of the play area. Only the original active objects do (those that were there from the start). How can I link these created objects to the condition and event?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    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)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hard to tell the problem without seeing your code.
    Should work fine if you're using a create object action and the object is the same as your other objects.
    It could be that you're using the action 'shoot an object' to create your objects when clicking or that they're different objects and so need their own events?
    Try uploading a simple example .mfa file that demonstrates the problem.

  3. #3
    Clicker Fusion 2.5Fusion 2.5 Mac
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    zip2kx's Avatar
    Join Date
    Jun 2015
    Posts
    845
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    I had this issue before and my solution was quite simple, it was creating the new objects on the wrong layer. I'm guessing your issue is something similar, check layers, alt values or flags so the new ones have the same values as the others.

  4. #4
    Clicker 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)
    Adnihil's Avatar
    Join Date
    Oct 2016
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, I found out what was causing the created objects not to change position after leaving the play area.
    It seems that the virtual size is the culprit. When the virtual size is larger than the actual size of the frame, only original objects are affected by the 'leaves the play area' condition. Objects created by events don't seem to obey the condition.

    Now, for my game to work I do need the virtual size to be larger than the actual size. So how would I go about this?

    I added an example to this post in case it's not very clear what I'm talking about. Just try changing the virtual height to 500 and you'll see that it stops working.
    Attached files Attached files

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleUnicode Add-on
    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)
    AyreGuitar's Avatar
    Join Date
    Jan 2011
    Location
    Wales, UK
    Posts
    1,113
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Adnihil - Tried your example and still works if I set virtual height to 500 HOWEVER if I set virtual height to 600 it shows the bug you mentioned.

    Tried to eliminate the layers (since your original is on Layer 3 and you're creating on Layer 1) but bug still shows.
    I added a counter to display the Total number of objects, to see if the newly created objects were getting destroyed, but they weren't!
    This suggested that they were being made inactive, so I change the 'inactive if too far from window' from automatic to No and it fixes the bug!

    So it would seem that the default 'inactive if too far from window' automatic setting does different things for objects already in the frame and those that are created with actions, which sounds like a bug that needs reporting on the Bug Tracker for fixing in future versions.
    Good find!

  6. #6
    Clicker 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)
    Adnihil's Avatar
    Join Date
    Oct 2016
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh, yeah, forgot to mention that I had tried changing the layers but that didn't seem to affect anything.

    Great! Thank you so much for your help! I had been trying to fix this issue for 2 days, trying all sorts of different things. So glad I can continue with the rest of my game now!

Similar Threads

  1. Replies: 2
    Last Post: 15th March 2015, 02:27 PM
  2. Too many conditions in events: solutions?
    By faber in forum Fusion 2.5
    Replies: 7
    Last Post: 20th November 2014, 12:35 AM
  3. What events or conditions are heavy on memory
    By Simflare in forum Fusion 2.5
    Replies: 8
    Last Post: 19th August 2014, 08:28 AM
  4. Too many conditions/ORs in an event vs separated events
    By DinnerSonic in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 26th July 2012, 03:14 AM
  5. disable/deactivate certain conditions/events?
    By murderdeathkill in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 5th January 2008, 05:49 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
  •