How do I use an inverted overlap properly?

  • Currently I have the following events for toggling a variable change:

    The first event listed works and the variable is changed for each specific brick overlapped.

    The second event will only work once the Shopsign is overlapping absolutely no bricks (the bricks are sprites lined up right next to each other).

    How would I make it so the second event works as the Shopsign moves across the screen of bricks? (the Shopsign is never not overlapping a brick during the game)

    I've tried so many variations of the events but I can't seem to get the second event to work the way I want.


  • Empty event.

    ______Action > Bricks > set IsOverlapped to zero (dunno why you do not use a boolean, but hey)

    ShopSign Is overlap (Bricks)

    ______Action > Bricks > set IsOverlapped to 1

    Do not use a 'for each' for this.

    Replace that GameStart thing with a logic to activate/deactivate a Group.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Don't know why I didn't use a Boolean. Isoverlapped is changed to a Boolean now.

    It seems to work now with the events below:

    Thanks for the help. Can you please elaborate on why you suggested toggling groups on and off?

  • Well, i did not suggest to use a Group that way.

    I said:

    Replace that GameStart thing with a logic to activate/deactivate a Group.

    You have that reoccurring condition 'gamestart = 1 ?' I suppose that is not used only on those two places. Use Group to bundle all event that run when 'gamestart = 1. And activate/deactivate that Group to your needs. ... ing-groups

  • Excellent. Great elaboration.

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