Jump to content

Multiple phaser states transition


beuleal
 Share

Recommended Posts

Hi folks,

 

Im working with states transitions, and it isnt working with multiples.

 

Ps: If i use 1 state transition it works well

 

lets see the code:

		transitions = game.plugins.add(Phaser.Plugin.StateTransition);		transitions.settings({			duration: 1000,			ease: Phaser.Easing.Back.In,			properties: {				alpha: 0,				scale: {					x: 1.5,					y: 1.5				}			}		});		transitionsCircular = game.plugins.add(Phaser.Plugin.StateTransition);		transitionsCircular.settings({			duration: 1000,			ease: Phaser.Easing.Circular.In, 			properties: {				alpha: 0,				scale: {					x: 1.5,					y: 1.5				}			}		});

In my gameOver function ive this state call:

transitionsCircular.to("GameOver",true,false,batatasCounter);

I dont know why, but 'transitionsCircular' is working as 'transitions', so: Is phaser ready for multiples transitions?

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...