Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Is it possiable to set onscreen button over to out directly??


khleug35
 Share

Recommended Posts

Here it full code

https://jsfiddle.net/93q4z560/

I use the following link for template 

https://phaser.io/examples/v2/category/buttons

When I create more than one button and test it on mobile device or chrome toggle device mode.

1.png.5e6b6f1ba844a11eee669fbf8962d2ea.png

 

When I click the  button2 and hold it move it button 1, It work, button1 is over.

But Button1 is still "over", not "Out"

so when I second time to click the  button2 and hold it move it button 1, It work, button1 is over. it still over

how to  set onscreen button over to out directly, THX

if(button2.events.onInputOut{
button1.events.onInputOver = false;
button1.events.onInputOut = true;
}

Thank you very much

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...