Jump to content

problem with rotated Buttons


pat
 Share

Recommended Posts

Hello all,

 

I am beginning using phaser with WebStorm. I am looking the examples and I have a problem with "Rotated Buttons".

When the button rotate and when I move the mouse, the picture of the button change between OUT and OVER depending if my cursor is on or out the button.

It works well.

 

But, If I leave my cursor near the button (without moving), as the button rotate, the cursor is over the button and when the button rotates it can be out.

The problem is that Phaser does not refresh the state of the button.

To my mind, it is because the refresh of the button, is in the event of the move cursor.

 

post-4833-0-46862600-1390481441.png

 

Thanks a lot

 

patrick

Link to comment
Share on other sites

To be honest I would probably classify this as 'expected behaviour'. The cost of every single input enabled object, checking all potential pointers (of which there could be up to 10), every frame, is a bit overkill imho. At the moment it does work as you described: when the pointer moves (or is clicked).

Link to comment
Share on other sites

To be honest I would probably classify this as 'expected behaviour'. The cost of every single input enabled object, checking all potential pointers (of which there could be up to 10), every frame, is a bit overkill imho. At the moment it does work as you described: when the pointer moves (or is clicked).

Thanks a lot. I understand very well, the problem, you do not want to loose CPU time for an exceptionnel problem.

 

Is it possible to add a small function (in the render time for example) that force the rotating button to control and update its status ???

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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