User Tag List

Page 2 of 5 FirstFirst 1 2 3 4 ... LastLast
Results 11 to 20 of 45

Thread: best way of comparing values and testing overlapping objects?

  1. #11
    No Products Registered

    Join Date
    Dec 2010
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK scratch that last post. the attack hitbox was not overlapping the object which is why it did not do the trigger. when the hitbox does overlap it, no matter what i ask it to check for, it ignores it. i am too far setup to just scrap how this works and honestly there is no reason it shouldn't work. is there truly no way without a fastloop to compare values between the overlapped objects without it only applying to one on screen or spreading it across all of them or even resulting it the comparisons to be completely ignored?

  2. #12
    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)
    Dont you worry.
    Ok so let me see if i got this right:

    - You have multiple Objects in your Frame.
    - Each Object has a Collision Hitbox and an Attack Hitbox attached to it.
    - You want an Objects Attack Hitbox to only affect other Objects ( or Objects Collision Hitboxes? ) uppon collision.

    Is this correct?
    In the Event Editor, how are you attaching your Collision Hitbox and Attack Hitbox to the Objects?

  3. #13
    No Products Registered

    Join Date
    Dec 2010
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the IDs for every hitbox are stored in an array and by comparing the object's array position to that of a master object, it positions accordingly to it. no fast loop used so the game is running great with lots of these on screen despite how many objects there are. since it works this way they are all sharing an ID value as alterable value U, which is the Y position of the array table.

    when the attack hitbox is overlapping the damage hitbox, it is just checking if the damage hitbox has a flag enabled and if the two objects have different value U's which are the ID.

    changing the order of the events drastically effects what happens but in no result does it every properly just check the ID's just right.

  4. #14
    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)
    So all individual Objects and assosiated Hitboxes have the same ID value, right?

    If so, i dont see why it shouldent work really.
    What kind of Action are you applying in the Colision Event?

    ...
    Try this and see if it works. It doesnt solve your problem, but might help figure out whats wrong:

    If AttackHB is overlapping DamageHB
    - DamageHB add 1 to Alterable Value A

  5. #15
    No Products Registered

    Join Date
    Dec 2010
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that alone works, trying to make a comparison with the overlap is what makes it no longer work in a way that makes sense.

  6. #16
    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)
    I think maybe i know what the problem is.

    Could you try to explain your Overlap Event in detail, or write its pseudo code?

  7. #17
    No Products Registered

    Join Date
    Dec 2010
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ( ATTACK HITBOX ) Flag 2 is Off
    + ( ATTACK HITBOX ) is overlapping ( DAMAGE HITBOX )
    + ( DAMAGE HITBOX ) ID <> ( ATTACK HITBOX ) ID

    this is what is currently providing the best result although it is still not properly making the comparisons

  8. #18
    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)
    But you said the Objects IDs were stored in an Array correct?

    Shouldne there be any refferance to the Array in the Condition above?

    When you say ( DAMAGE HITBOX ) ID and ( ATTACK HITBOX ) ID, are you reffering to their Alterable Values?

  9. #19
    No Products Registered

    Join Date
    Dec 2010
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that is the values on the objects. trying to pull a comparison to an array with multiple instances just doesn't seem to work.

  10. #20
    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)
    If Attack Hitbox Flag2 is OFF
    + If Attack Hitbox is overlapping Damage Hitbox
    + Damage Hitbox AlterableValue ID_ <> Attack Hitbox AlterableValue ID_

    So this is whats not working?
    And you are sure all Objects arre assigned IDs corretly?
    And your not using an Array at all now?

Page 2 of 5 FirstFirst 1 2 3 4 ... LastLast

Similar Threads

  1. comparing values on overlap
    By itsa_doozy in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 6th March 2013, 06:19 PM
  2. PROBLEM COMPARING FLOATING VALUES
    By Fernando in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 18th August 2011, 08:12 PM
  3. [BUG] PROBLEM COMPARING FLOATING VALUES
    By Fernando in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 6th August 2011, 05:40 PM
  4. Checking and comparing values of an object.
    By DEKE15 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 10th May 2009, 10:47 PM
  5. Comparing 2 global values question
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 19th January 2009, 04:23 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
  •