Pressed - and two overlapping actor

stefdelecstefdelec Member, PRO Posts: 146

Hi,

I have a full screen button (A) and a small button(B). When player press the small button I don't want the full scree button to be activated. See what I mean.

A trigger a
B trigger b

When B is pressed, it triggers b only.

Am I clear? Any idea?

Thanks

Stéphane.

Comments

  • SocksSocks London, UK.Member Posts: 12,822

    Demo attached

  • stefdelecstefdelec Member, PRO Posts: 146

    Hum well done. I was thinking to do a lot more complex (fun?) code:

    if y mouse.position < ax+b...(it was in the bottom corner).

    Thanks!

  • SocksSocks London, UK.Member Posts: 12,822

    @stefdelec said:
    I was thinking to do a lot more complex (fun?) code:

    I always prefer simple code myself . . . here's an even simpler way to do the same thing (attached).

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880

    @stefdelec said:
    Hum well done. I was thinking to do a lot more complex (fun?) code:

    Here is a more complex (fun?) implementation. It takes care of any number of overlapping actors/buttons. The top button pressed is always triggered.

Sign In or Register to comment.