0 Favourites

Destroy Instances if... (SOLVED)

  • Hey all, i'm figuring out, i made a .capx which i don't know how to destroy the instance if the frames aren't equal.

    I wanted you can destroy a instance when 4 circles their frames are different, not equal

    -(1) (2) (3) (4)

    -(2) (1) (4) (5)

    You can click any instance to destroy if their frames aren't equal to other instances.

    Otherwise YOU can't destroy an instance if their frames are equal like:

    • (2) (2) (1) (1)
    • (3) (4) (1) (3)
    • (5) (5) (2) (5)

    Here is .capx

    http://dl.dropbox.com/u/76227787/FrameInstanceDestroy.capx

    Do you have an idea how to fix?

    Thanks!

  • Hi,

    I'm not exactly sure if this is what you wanted, but here goes:

    dl.dropbox.com/u/33370253/FrameInstanceDestroy_.capx

  • Destroy just the one you click on if it doesn't match any other. Is that right? destroyNotMatching.capx (r109)

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • Hi,

    I'm not exactly sure if this is what you wanted, but here goes:

    http://dl.dropbox.com/u/33370253/FrameInstanceDestroy_.capx

    aruche Yes! it worked now, actually i have a question, how to setup codebase to apply Array.Height, to make sure ALL circles

    Like this

    Height 1- (1)(2)(4)(5)

    Height 2- (3)(6)(7)(8)

    If all circles their frames aren't equal, it can destroy an instance

    Your .capx can destroy the instances if the frames aren't equal on height number 2

    Height 1- (3)(3)(2)(1)

    Height 2- (1)(2)(3)(4)

    If all circles on height 1 their frames are equal, it cannot destroy the instances, but on height 2 their frames aren't equal, it can destroy the instances.

    Is supposed to do not destroy an instance in height number 2 because the circles on number 1, the frames are equal.

    Thanks!

  • Destroy just the one you click on if it doesn't match any other. Is that right? destroyNotMatching.capx (r109)

    Hello ramones, oops your URL is broken.

  • Is supposed to do not destroy an instance in height number 2 because the circles on number 1, the frames are equal.

    Is the converse also true? For example:

    Height 1- (1)(2)(3)(4)

    Height 2- (3)(3)(2)(1)

    Can instances at Height 1 be destroyed?

    Examples:

    As long as <font color=blue>the current row or any row above the clicked/touched instance</font> has non-unique values, it cannot be destroyed:

    dl.dropbox.com/u/33370253/FrameInstanceDestroy_2.capx

    As long as there's a row with non-unique values in the <font color=blue>entire array</font>, nothing can be destroyed:

    dl.dropbox.com/u/33370253/FrameInstanceDestroy_3.capx

  • > Is supposed to do not destroy an instance in height number 2 because the circles on number 1, the frames are equal.

    Is the converse also true? For example:

    Height 1- (1)(2)(3)(4)

    Height 2- (3)(3)(2)(1)

    Can instances at Height 1 be destroyed?

    Examples:

    As long as <font color=blue>the current row or any row above the clicked/touched instance</font> has non-unique values, it cannot be destroyed:

    http://dl.dropbox.com/u/33370253/FrameInstanceDestroy_2.capx

    As long as there's a row with non-unique values in the <font color=blue>entire array</font>, nothing can be destroyed:

    http://dl.dropbox.com/u/33370253/FrameInstanceDestroy_3.capx

    aruche

    FrameInstanceDestroy_3.capx is a great solution! That's all i wanted, you're really a helpful person.

    I will owe you one if you pm me for specificed development.

    Thank you a lot!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)