How do I stop a mouse click from effecting two objects at once.

1 favourites
From the Asset Store
Change the size and position of everything without calculating anything!
  • The issue as I understood it is that he clicks to create a tower then the second event also rotates the tower once as it is created which he doesn't want. The solution I gave is to create a stamped variable so only when it is created and stamped then it can be rotated i.e. not on the click where you spawn the tower, but on future clicks.

    The mouse button release also works because if you click to create a tower, it can't be rotated until you click a second time which is another solution to that problem. Family though cannot work for the reasons I mentioned, the black square is not a tower and it affects future events much like if you added the player to an enemies family.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 2 visitors browsing this topic (0 users and 2 guests)