enpu Posted April 9, 2015 Author Share Posted April 9, 2015 Multiple animations now implemented:var player = new game.Animation( 'player1.png', 'player2.png', 'player3.png');player.addAnim('jump', [0, 1]);player.addAnim('run', [0, 1, 2, 1, 2]);player.play('run');// Change properties for each animplayer.anims.jump.speed = 10;player.anims.jump.loop = false;player.anims.run.reverse = true;// Define properties on addAnimplayer.addAnim('jump', [0, 1], { speed: 5 });// Play from specific frameplayer.play('run', 2); PixelPicoSean 1 Quote Link to comment Share on other sites More sharing options...
PixelPicoSean Posted April 9, 2015 Share Posted April 9, 2015 @enpu, you're hero Love the new API, even better than I've expected. @ThanosSIt is not hard to implement, but the structure of data may not be the same for everyone. And if you don't have a specific tool to generate these json files, it does not have benefits either. So I'd suggest not to add it as a core feature of Panda. Quote Link to comment Share on other sites More sharing options...
enpu Posted April 9, 2015 Author Share Posted April 9, 2015 New feature on bitmap font text, text wrapping: LinkTree 1 Quote Link to comment Share on other sites More sharing options...
Pattentrick Posted April 9, 2015 Share Posted April 9, 2015 @enpu That progress you made is looking awesome! Quote Link to comment Share on other sites More sharing options...
enpu Posted April 10, 2015 Author Share Posted April 10, 2015 Multiline bitmap text with wrapping and align Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted April 10, 2015 Share Posted April 10, 2015 @enpu - The new features are looking awesome! Quote Link to comment Share on other sites More sharing options...
LinkTree Posted April 13, 2015 Share Posted April 13, 2015 @enpu that's fantastic! love it. Quote Link to comment Share on other sites More sharing options...
enpu Posted April 13, 2015 Author Share Posted April 13, 2015 Some new things: - Audio fading (Web Audio)- Better hires support, no need to place objects with game.scale number anymore. Quote Link to comment Share on other sites More sharing options...
PixelPicoSean Posted April 13, 2015 Share Posted April 13, 2015 So engine itself manages hires, I like it Just tested the new fade in/out feature which is great. I'd suggest to add fade in/out support for music too, which might be more useful. Looks like there're only Graphics and TilingSprite are not finished, are you going to publish any alpha/beta versions before final release? Quote Link to comment Share on other sites More sharing options...
LinkTree Posted April 14, 2015 Share Posted April 14, 2015 Some new things: - Audio fading (Web Audio)- Better hires support, no need to place objects with game.scale number anymore.Just wondering if there is a way to override this default hires functionality without editing with the engine files?also not related to this update but from my testing with the video feature I noticed it doesn't work in cocoonjs do you know why? Quote Link to comment Share on other sites More sharing options...
enpu Posted April 14, 2015 Author Share Posted April 14, 2015 So engine itself manages hires, I like it Just tested the new fade in/out feature which is great. I'd suggest to add fade in/out support for music too, which might be more useful. Looks like there're only Graphics and TilingSprite are not finished, are you going to publish any alpha/beta versions before final release? game.audio.fadeIn(game.audio.currentMusic); Quote Link to comment Share on other sites More sharing options...
enpu Posted April 14, 2015 Author Share Posted April 14, 2015 Just wondering if there is a way to override this default hires functionality without editing with the engine files?also not related to this update but from my testing with the video feature I noticed it doesn't work in cocoonjs do you know why? What do you exactly mean by overriding default hires functionality? Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted April 14, 2015 Share Posted April 14, 2015 Hi @enpu I know that 2.0 is a work in progress, but I just wanted to try it out There are some things that don't work, like tweens and the fader plugin etc. I assume that this is normal, just wanted to double check Quote Link to comment Share on other sites More sharing options...
enpu Posted April 14, 2015 Author Share Posted April 14, 2015 How are tweens not working? Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted April 14, 2015 Share Posted April 14, 2015 Hi @enpu Basically, I've just made an animated Splash screen using tweens. When using the Master version - things work perfectly When using Develop, Im getting weird artifacts, missing graphics etc. Quote Link to comment Share on other sites More sharing options...
enpu Posted April 14, 2015 Author Share Posted April 14, 2015 Can you give me some code examples, i can't see nothing wrong with tweens. Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted April 14, 2015 Share Posted April 14, 2015 Hi @enpu I zipped up my project and emailed it to you so you can have a look if you need. It's very simple - just an animated splash screen. Let me know if I can do anything else. Thank you! Quote Link to comment Share on other sites More sharing options...
enpu Posted April 14, 2015 Author Share Posted April 14, 2015 Thanks, will take a look! edit: Ok there was some issues loading sprite sheets, i have made custom exporter for Texture Packer to clean the JSON from unnecessary data, the loader was not compatible with older JSON format, but it's fixed now. Another major thing is the anchor point, that is now using pixels instead of percents, that gives you imho more precise control, and allows you to easily place the anchor point outside of the sprite. Tweens seems to be working correctly. Quote Link to comment Share on other sites More sharing options...
enpu Posted April 14, 2015 Author Share Posted April 14, 2015 Here is new Panda Engine playground, to test latest 2.0 develop version and see some examples, you can also edit to code and it will automatically update: http://ekelokorpi.github.io/panda.js-site/engine/playground/ PixelPicoSean 1 Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted April 14, 2015 Share Posted April 14, 2015 Hi @enpu Awesome, I'll make the changes Thanks heaps! Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted April 14, 2015 Share Posted April 14, 2015 Hi @enpu Is there an easy way to set the anchor point to 'centre'? Quote Link to comment Share on other sites More sharing options...
enpu Posted April 14, 2015 Author Share Posted April 14, 2015 container.anchorCenter(); Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted April 14, 2015 Share Posted April 14, 2015 Hi @enpu Thanks!! I fixed the anchor points, but there still seems to be problems. - I can't seem to tween a 'container' with sprites inside (sprites alone tween fine). - The scaling modes don't seem to work correctly, when using 'hires' or 'retina'. - The Fader Plugin throws an error. Just letting you know Quote Link to comment Share on other sites More sharing options...
enpu Posted April 14, 2015 Author Share Posted April 14, 2015 Can you show your tween code, i can't see anything wrong when tweening containers. Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted April 14, 2015 Share Posted April 14, 2015 Hi @enpu var ninja = new game.Container();ninja.position.set(240, 432);mg.addChild(ninja); I then add body parts into the container and tween the whole thing like this ... game.scene.addTween(ninja, {y:248}, 200, {delay: 500, easing:'Quadratic.Out'}).start(); 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.