PRSoluções

Members
  • Content count

    42
  • Joined

  • Last visited

About PRSoluções

  • Rank
    Advanced Member

Contact Methods

  • Twitter
    prsolucoes
  1. I have updated the code and to phaser 2.7.10 to anyone help me please. http://golandy.prsolucoes.com/ The code of this part of game is here: https://github.com/prsolucoes/golandy-web/blob/master/www/js/states/GameState.js#L190 Thanks.
  2. I already tried it. My current code: var layerWidth = context.floorLayer.layer.widthInPixels * context.floorLayer.scale.x; var layerHeight = context.floorLayer.layer.heightInPixels * context.floorLayer.scale.y; game.world.setBounds(-(layerWidth/2), -(layerHeight/2), layerWidth * 2, layerHeight * 2); And the result:
  3. Tried this code too: var layerWidth = context.floorLayer.width * context.floorLayer.scale.x; var layerHeight = context.floorLayer.height * context.floorLayer.scale.y; game.world.setBounds(-(layerWidth/2), -(layerHeight/2), layerWidth * 2, layerHeight * 2); And the result is near the same. Attached. The camera show the out map area. But the map is cutted and the other objects no.
  4. Hi, Changed the code to: var layerWidth = context.floorLayer.width; var layerHeight = context.floorLayer.height; game.world.setBounds(-layerWidth, -layerHeight, layerWidth, layerHeight); But it cut the image. See the screenshot. Thanks.
  5. Ok, thanks. I will ty it. I think camera has a offset that can be setted to work with this problems. I read the source, but i didnt find.
  6. Hi, Yes, i dont want that camera stop on map dimensions. I want the player always on camera center, but i dont know how i can do it more. On early versions my old code works. Today it is with the default behavior: http://golandy.prsolucoes.com Thanks.
  7. In the past, i only need change the camera. But it is not working more. var cameraX = Math.round((this.player.sprite.x) - (game.camera.width / 2)); var cameraY = Math.round((this.player.sprite.y) - (game.camera.height / 2)); if (cameraX != game.camera.X || cameraY != game.camera.Y) { game.camera.bounds = new Phaser.Rectangle(this.player.sprite.x + (game.camera.width / 2), this.player.sprite.y + (game.camera.height / 2), 0, 0); game.camera.x = cameraX; game.camera.y = cameraY; }
  8. Ok. I made a image manually to try explain better.
  9. Hi, On my open-source game Golandy: http://golandy.prsolucoes.com/ I want that the camera follow the player but see around the player and not the player move to top left corner and didnt see around the player or around the map. Can anyone help me? The source code of game state is here: https://github.com/prsolucoes/golandy-web/blob/master/www/js/states/GameState.js Thanks.
  10. Hi, Sometimes i get this error on phaser 2.7 beta 3. If i reload it works again. And when i click on button, bottom-left, the click was throught button and tilemap was clicked instead. Thanks.
  11. Updated. Still working. golandy.com.
  12. Hi, After update to beta2 the mouse/keyboard works again: http://golandy.com/ Sometimes everything stop animate, bomb dropping, the sea disappear, but i dont know hoe to reproduce it. Ty.
  13. Hi, I have updated my game to use Phaser 2.7 beta, you can check here: http://golandy.com/ After update, the player dont move more but no errors happen (dont move using keyboard or mouse). Thanks.
  14. Hi, Here is my game (beta version): http://golandy.com/ I dont know how to remove under click from bomb button. Tutorial: - Use mouse click to move or arrows - Use space to put bombs Thanks for any help.
  15. Help me