playMaker

Author Topic: "Mouse over" not working on 2 overlapping objects  (Read 994 times)

thunder

  • Playmaker Newbie
  • *
  • Posts: 22
"Mouse over" not working on 2 overlapping objects
« on: June 27, 2022, 11:33:12 AM »
I have a square that changes to red color when my mouse is over it, or else it stays green. It works fine alone but if I have another object behind of it(like a circle), it stops working on the part where it intersects with the other object. Both objects have box collider 2d. Any helps? Thank you very much.

https://filebin.net/5tcfjaufkbq9le0x



« Last Edit: June 27, 2022, 11:40:33 AM by thunder »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7623
    • jinxtergames
Re: "Mouse over" not working on 2 overlapping objects
« Reply #1 on: June 27, 2022, 01:40:41 PM »
Mouse over works as 3d

if you change the z position it should work.

thunder

  • Playmaker Newbie
  • *
  • Posts: 22
Re: "Mouse over" not working on 2 overlapping objects
« Reply #2 on: June 27, 2022, 03:24:08 PM »
Yeah it worked, thank you.