eamonpartos's Forum Posts

  • 5 posts
  • THANK YOU! Overlap at offset makes EVERYTHING in my life better. It made doing this a 30 second affair, not the 5 hour one it was, and it will make the other things that i need to fix eaiser.

    You are a lifesaver.

  • perhaps a bit more information would help. i am making a game where the player picks up and moves boxes. Currently you can pick up the bottom box in a stack. That should not be. You should only be able to pick up the top box. So, i used the condition described at the begining to find out if a box was under another box. If so, it gets stuck. THe problem is, once the player moves the box above, the box below still thinks it's stuck.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • But what if the box moves? The variable still equals 1, but theres no box there.

  • yes, but what do I invert?

    obviously not "for each box".

    If i invert the box.x=x, then im just checking if theres a box at y and not at x.

    if i invert the box.y=y, then im jest checking if theres a box at x and not y.

    if i invert both box.x=x and box.y=y, then im checking if theres a box somewhere else.

    but theres fifteen boxes in the game- of course theres one somewhere else. i want to know if there is NOT one there.

  • So i need a condition which will determine if there is not a box at X,Y.

    To determine if there is one, i used

    for each box

    box.x=x

    box.y=y

    but if you do an else, it will check the first box to see if it is at x,y, then if the first box is not there it will go to the else. I want it to check ALL the instances, and if none of them are at x,y, then it determines there is no box at x,y.

    make sense?

  • 5 posts