How do I fix this selection issue?

0 favourites
  • 3 posts
From the Asset Store
Selection frame like in RTS games, works both on mobile and desktop devices.
  • I have an invisible sprite that works like an RTS camera.

    However whenever the sprite overlaps a building sprite I can no longer select that building in game.

    I've tried changing the camera sprites size,

    moving it to a lower layer below the building,

    changing the camera to a tiled bg or particle effect,

    changing the building to a tiled bg.

    Nothing works!

    It's frustrating when the player can't select a building in a citybuilder if it's on the center of the screen!

    Please help!

  • Putting an invisible sprite over something doesn't stop it from being clicked so it must be something in your events.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Turns out the problem was in the events after all.

    I had a condition that the player cannot select a building while the cursor is over a menu button. I use the same sprite for all buttons, and while the main menu is invisible during gameplay the buttons are still there. I was blaming the wrong sprite all this time and now feel like a complete idiot. xD

    Thank you so much lionz for pointing me in the right direction!

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