rich Posted April 20, 2013 Share Posted April 20, 2013 Yes, another one Fixed issue with create not being called if there was an empty init method.Added ability to flip a sprite (Sprite.flipped = true) + a test case for it.Added ability to restart a sprite animation.Sprite animations don't restart if you call play on them when they are already running.Added Stage.disablePauseScreen. Set to true to stop your game pausing when the tab loses focus.https://github.com/photonstorm/phaser Link to comment Share on other sites More sharing options...
Jesse Freeman Posted April 20, 2013 Share Posted April 20, 2013 Looking good! I updated to the latest build and everything worked. Thanks for the flip and fix to the AnimationManager. Link to comment Share on other sites More sharing options...
initials Posted April 20, 2013 Share Posted April 20, 2013 These are some of the features of Flixel that are really great to have and I was going to post about them but you've fixed them before I could even complain! One thing that the tests don't show how to do is use inheritance to create a subclass of Sprite outside of Phaser namespace. For example, if you've got a Player character and you want that to be a class that inherits from Sprite but has it's own set of actions. You can see how that's done looking at the Sprite class, but I'm sure it's just a small modification outside of the Phaser namespace. Link to comment Share on other sites More sharing options...
huhwhozat Posted April 20, 2013 Share Posted April 20, 2013 "Sprite animations don't restart if you call play on them when they are already running." Please allow this to be a parameter to the play() call - if not already - or provide some other means of restarting an animation. Link to comment Share on other sites More sharing options...
rich Posted April 20, 2013 Author Share Posted April 20, 2013 Just call 'restart' on them instead if that's what you need. Link to comment Share on other sites More sharing options...
huhwhozat Posted April 21, 2013 Share Posted April 21, 2013 Ah, okay cool! I missed that method XD Link to comment Share on other sites More sharing options...
initials Posted April 22, 2013 Share Posted April 22, 2013 If you're having build errors with this release, go into Tests > Misc > Screen grab.ts and exclude that file from the project. It doesn't exist and was cause my test suite to not build. Link to comment Share on other sites More sharing options...
mintoman Posted April 23, 2013 Share Posted April 23, 2013 Phaser looks extermely good, I should give it a try. mintoman 1 Link to comment Share on other sites More sharing options...
Leebo Posted April 23, 2013 Share Posted April 23, 2013 I'm currently a dedicated Flixel user, but it feels like the writing is on the wall for Flixel and Flash to some extent. Really liking what I'm seeing from Phaser and looking forward to 1.0. Link to comment Share on other sites More sharing options...
rich Posted April 23, 2013 Author Share Posted April 23, 2013 Leebo - there's no reason why you can't happily use both It's not an "either / or" world for us devs! Link to comment Share on other sites More sharing options...
Hsaka Posted April 23, 2013 Share Posted April 23, 2013 Hi, I'm using Phaser in a new game and it is awesome. Just wanted to let you know that the scrollzone examples on http://gametest.mobi/phaser/index.php are broken: Uncaught TypeError: Object #<Game> has no method 'createScrollZone' Link to comment Share on other sites More sharing options...
rich Posted April 23, 2013 Author Share Posted April 23, 2013 Good point Hsaka - uploaded those a bit early. ScrollZone is in 0.9.3 which I'm finishing off once I get the new DOM load code in there. Link to comment Share on other sites More sharing options...
Recommended Posts