Jump to content


  • Content Count

  • Joined

  • Last visited

About opendevcode

  • Rank

Profile Information

  • Gender
    Not Telling
  1. Great list. Thanks for taking the time to create it. I have tried Phaser before and I was wondering if there are some step - by step tutorial on how to create cross - platform games using Phaser. It would be nice to have some tutorials related to deploying your game on different platforms. Thank you again for this great list.
  2. Thanks Rich. What's the difference between body.immovable and body.moves?
  3. Hi, I am creating a character using different sprite parts and parenting it to a single sprite. //Parent spritethis.torso = group.create(0,0,actorType + '_body');this.torso.anchor.setTo(0.5, 0);//Child Sprite this.frontFoot = game.add.sprite(0,0, actorType + '_foot_front');this.frontFoot.anchor.setTo(0.5, 0);this.torso.addChild(this.frontFoot);I tried to enable the Physics body part of the parent sprite this.game.physics.enable(this.torso, Phaser.Physics.ARCADE);The result is that all child sprites have been given a body and started to drop. I just want the parent to drop itself and all chi
  4. Hi, @XekeDeath Thanks for the GUI group suggestion, it works perfectly. I am trying to put the camera or the world at the center of the player, but assigning a value on their position doesn't move any of the two. I posted a new thread with regards to moving the camera or world. http://www.html5gamedevs.com/topic/4273-moving-camera-and-moving-world/ Thank you
  5. Hi, I am not sure if this is a bug. I am trying to increment both the position of the world camera and want to move all their displayed object update: function () { this.game.world.y = 100; console.log(this.game.world.y);},The position of the world is changed but the world did not move update: function () { this.game.camera.y += 1; console.log(this.game.camera.y);},This time, the camera only results to zero. I have tried moving the camera with Phaser 1.1.3 and it works. I am curious why this approach is not working for 1.2. Thank you
  6. Hi XekeDeath, Great suggestion. I will try your method for GUI, as well as the world scaling suggestion by codevinsky. Thanks for pointing out the stage object. It gives me a clearer view of how Phaser renders. I should look more into the stage and world object. Is there any diagram on Phaser's rendering flow? or should I look for Pixi.js? Thanks for reminding about previous version, I am also using Phaser 1.2 which should pretty much work with your suggestion
  7. Hi Codevinsky, Thank you for you reply. Awesome. Checking distance between is the best way to go for this camera effect. game.world.scale.setTo(someXScale, someYScale);I have some issue with game.world.scale, since it scales all objects in the screen. I have a Sprite UI that must not scale with the world. Any other workaround for this scaling effect? Right now, I have separate multiple groups, instead of scaling the world. What do you think of this approach?
  8. Hello, Our team is trying to create a camera behavior similar to Super Smash Bros. The camera zooms out when players are far with each other camera zooms in when they are near. Any idea on how I could have a similar camera effect with Phaser? Thank you
  9. Hello, I have tried Phaser for a couple of weeks and I am trying to create something like a zoom in zoom out functionality on a 2D platformer. I am having trouble with setting the view of the game. I am using Phaser 1.1.3 First Approach: this.camera.screenView.width *= 5;I tried giving a different value for the camera's screenview. Screenview values changed but there are no changes with the camera's view. Second Approach: this.game.world.scale.x = 10I tried giving a different value for the world's scale, but the result is the same with the first approach. Nothing happend Third
  10. Hi George, I am also encountering some error with nested groups gameGroup = this.game.add.group();platforms = this.game.add.group();gameGroup.add(platforms);I am using Phaser 1.1.3 and I am receiving error: TypeError: e is undefined Have you encountered this error with nested groups? Thank you
  11. Would scaling affect the quality of the image? Is there any cutting method that could be used? Something that will strip only some parts of the image?
  12. I am thinking of adding some GUI on my character. How do you create health bars using sprites? Thank you
  • Create New...