lapamplamouse Posted May 27, 2019 Share Posted May 27, 2019 Hello, I using createFromObjects to create animated sprites from tiled into my game (they are coins). I wish for them to move across the screen when the player hits into them, by setting the angularVelocity. coins = road.createFromObjects('coin', 971, { key: 'coin' }); this.anims.play('spin', coins); However they don't seem to want to move, I can change the x and y coordinates, but I wish for this to be an animation of sorts. coins[bodyB.id].angle= 200; coins[bodyB.id].angularVelocity=10000; logging the properties to the console, shows they are updating correctly. But the sprite does not move an inch. console.log(coins[bodyB.id]); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.