Whazza's Forum Posts

  • 7 posts
  • Thanks for fast response. I know but if you look closely if you hit the red or blue box you got 5 points and thats not what i want only if you hit the yellow one. The problem is if you read my post. It looks like you can click through the sprites.

  • Hello,

    I try for al long time to get someting working. I tried alot of things for my game. I got the issue when I give a Click mouse or touch event on a sprite, it dosnt matter what kind of Z order they are they all react one the same mouse button...

    I made a little example of my problem; [attachment=0:1nb83l42][/attachment:1nb83l42]

    How this works,

    if you hit the Blue and Red box they got destroyed,

    If you hit the Yellow box you got 5 points.

    My problem i tried to show here: The player needs to click the Blue and Red box first before he gets to the yellow part en get his points. But every time you hit the Blue and after that the Red one you also hit the yellow one. Why? I cant figure it out. I tried variables, families.

    Is there someone who got me a solution?? Before you give me your replay just test first of its working, Thank you,

  • Oke Thanks, Now I need to put everthing in a family.. weird that it works like this.. Thank you ^^

  • Mmmh, very annoying, i dont get it so i need to give al my objects a variable... i can use a family for al my sprites but still if i click one object the object behind also get hit by that mouseclick.. i tought maybe i missed a feature in construct.. I make a Hidden object game so there are alot of objects ^^

  • It dont work for me..

    [attachment=0:1rgbq5rz][/attachment:1rgbq5rz]

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ty, for fast response but how and where can i do that?

  • Hello,

    I cant find a solution on this Forum so fast...

    I have a Mouse click a object and after it gets clicked it gets destroyed. But when I have 2 objects behind each other. And you clicked on the one of the front it wil destroy both with 1 mouse click.

    for example:

    We got a Green square and a Yellow square.

    [attachment=1:1x5d0s7e][/attachment:1x5d0s7e]

    [attachment=0:1x5d0s7e][/attachment:1x5d0s7e]

    But when I click the Green block they both got destroyed in 1 click! How is this possible I clicked the green one and not the yellow one.. ??

    If someone can learn me the trick of this, I can solve alot of problems from my game. Ty,

  • 7 posts