Click and destroy object only on top

0 favourites
  • 13 posts
From the Asset Store
High quality sound effect pack, in the following categories: Simple, negative, pozitive
  • So i have 3 images, each image is clickable when i click on image image has been destroyed but when images is behind all been destroyed in one click. I wish to destroy only that which can be seen ??

    my examlpe : dl.dropbox.com/u/44710358/click.capx

  • kataryna

    So i have 3 images, each image is clickable when i click on image image has been destroyed but when images is behind all been destroyed in one click. I wish to destroy only that which can be seen ??

    my examlpe : dl.dropbox.com/u/44710358/click.capx

    I think this will help you. Now the whole thing is solely dependent on each object overlapping the next or it wont work. This is the complete opposite effect of what was happening before.

    Try it move each object away from each other or just one out of place really is all it takes. They (have) to be overlapping to work.

    1click_3blocks by N7Effect, on Flickr

    Your Example Link (fixed) Capx Enjoy <img src="smileys/smiley2.gif" border="0" align="middle">

    Browser Preview

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • destroy only that which can be seen? if "seen" is that on top and all other are allways covered by topmost(no changing of z order or position) than you need this simple exemple. If they can be covered partialy (or only two covered)but also completly or not covered at all than this little bit stupid exemple may help you

    ...there is also possibility to dinamicaly define if is one box inside another and then check if it is behind or before and then destroy one that you need...

  • ...there is also possibility to dinamicaly define if is one box inside another and then check if it is behind or before and then destroy one that you need...

    this is exactly what my example does is it not? <img src="smileys/smiley36.gif" border="0" align="middle" />

  • by "possibility to dinamicaly deffine..." I was thinking that it can be done not that I did...but here is how to deffine is one object inside another: http://db.tt/3iAGTdry

  • by "possibility to dinamicaly deffine..." I was thinking that it can be done not that I did...but here is how to deffine is one object inside another: http://db.tt/3iAGTdry

    podpathos

    Aww I see what you mean, thats actually pretty cool, that could be used as like a proxy to like to detect enemies inside attack player sorta thing whatcha think. <img src="smileys/smiley2.gif" border="0" align="middle">

    Wow soo many Ideas now imagine putting a block or wedge in front of an enemies face, and using the advanced laser technique to stop on collision of like a wall or a box the players behind, so the eyes of an enemey can be simulated very well in combination. Plus the shadows and lightning technique we can make a splinter cell type game.

  • Hmm... Erndog2k I just can not remove the last blue and it shows. So if you can see one box should be removed to give the click of a mouse.

  • kataryna use my second "stupid" example it is much better then Erndog2k's one <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Hmm... Erndog2k I just can not remove the last blue and it shows. So if you can see one box should be removed to give the click of a mouse.you just click one after another ???

    and podpathos

    your stupid Ver. works the exact same as mine except as long as you haven't clicked top object you can't click middle and so on. In yours if u see it u can click it. In mine if an objects overlapping another like it's on top it will prevent the others from being clicked until done so in proper order.

    The one difference they have is:

    Mine has ORDER, yours has no Order.

    But both do the same end game preventing you from clicking the object underneath.

  • I am just joking man (remeber mario exemple) <img src="smileys/smiley1.gif" border="0" align="middle" />

  • podpathos <img src="smileys/smiley3.gif" border="0" align="middle" />

    back to the A.I idea do you think it's possible to apply your technique to a radar system and/or Enemy line of sight. and have the line of sight be cut of by a box or wall etc... using the advanced laser technique, and when you are in enemies line of sight, have it the now A.I attack. Since it triggers a Text event I assume so. <img src="smileys/smiley2.gif" border="0" align="middle" /> and have multiple proxy's each further out from enemies eye's.

    But... I assume you could just add a simple collision detection to do the same job?

  • Erndog2k Probably bring you in error, the first square works fine, after the discovery of two more, you will see two squares, and now when they see it should give a clear, both in a different order.

  • I know what a lot time past and topic paster dont need solution, but i found it by move it or create under object after destroy 1st object and make 0.01 wait before it.

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