Jump to content

thiezar

Members
  • Content Count

    10
  • Joined

  • Last visited

  1. Well of course id doesn't work because you have to check wether the player is jumping or not with a boolean variable. But I do this in another way: In the update function of the player I check if it's body's y velocity is <0 (going up) or >0 (going down) and then I adjust it's sprite rotation. if(this.body.velocity.y < 0){ this.sprite.rotation = -0.4;}else{ this.sprite.rotation = 0;}Since the rotation is immediate I would suggest to lerp the rotation.
  2. If you found a solution please would you mid to tell us what it is?
  3. Very cool demo. Can't wait to see it officially released. About the physics engine... well, it is mandatory in a game engine so I'm waiting for p2.js implementation or.... what about box2d? I know there's a js porting
  4. Uhm well... as I said I just started using panda.js so maybe those features exists yet, but here's what I can find useful: - Tilemaps - Camera system - Animation manager (something like a state machine) - Fancy WebGL and Canvas effects (color correction, distortion, glowing, glass effect....) - 2D lighting About documentation, more details both on the API docs and on the tutorials comments are needed. Plus I can't find documentation on: - Tiling Sprites - Asset manager - Event dispatching At the moment I'm experiencing an issue with the physics engine: when a box collides with a box it stops
  5. Thank you very much! O.T.: I just started using Panda.js and even though it lacks some minor feature and a more detailed documentation, I think it could become soon a great engine and one of my favourite of course. Are you developing it alone?
  6. Hi! I would like to show a custom loading bar at the beginning of my game. Is this possible in panda.js? How?
  7. Good! I knew Phaser wouldn't have disappointed me on this Thank you and keep on making this great engine more awesome!
  8. I have a game with a MainMenu state and a Play state. I want to keep my animated background without reloading it (the animation should loop without interruptions) when I change from MainMenu state to Play state. How can I do this?
  9. It seems a good solution to my problem. Thanks. I didn't know sprites were added to the world group too. Where can I find those phaser engine details?
  10. Hi all. I have a problem with my game I can't understand. Here the code: function createTitleView() { //Creates title title = game.add.sprite(game.world.centerX, game.world.centerY-60, 'title'); title.anchor = new Phaser.Point(0.5,0.5); title.name= "title"; //Creates play button playBtn = game.add.sprite(game.world.centerX, game.world.centerY+60, 'playBtn'); playBtn.anchor = new Phaser.Point(0.5,0.5) playBtn.name = "play button"; //Creates game view titleView = game.add.group(); titleView.name = "title view"; titleView.add(title); titleView.add(playBtn);
×
×
  • Create New...