Sign in to follow this  

Is it possible animate objects with Phaser3 (using createFromObjects)?

Recommended Posts

It's been very difficult to convert my Phaser2 games to Phaser3.

For instance, I could animate objects just as simple  as:

this.coins =;
this.coins.enableBody = true;
this.mapa.createFromObjects('moedas', 'moeda', 'coins', 0, true, false, this.coins);
this.coins.callAll('animations.add', 'animations', 'spin', [0, 1, 2, 3, 4, 5], 10, true);
this.coins.callAll('', 'animations', 'spin');

So, this way was easy to create hundreds of objects with TiledMap, including their animations. But with Phaser3, this code doesn't work anymore. All I get is a message:  this.coins.callAll is not a function

Is it possible to convert the code above to Phaser 3, without changing to Tiles instead of Objects?

Share this post

Link to post
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.

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.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.