Jump to content

Panda 2 development


enpu
 Share

Recommended Posts

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);
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

So engine itself manages hires, I like it  :D

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); ;)

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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();

Link to comment
Share on other sites

  • enpu unpinned this topic

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