Jump to content

robbo

Members
  • Posts

    8
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Sheffield, UK

robbo's Achievements

  1. My first Phaser game and a bit of festive fun. Built with Phaser v 1.1.3. http://www.theworkshop.co.uk/getcracking/ Hope you enjoy it.
  2. Made an Easter game using v1.3 http://www.theworkshop.co.uk/getcracking/ Loving Phaser, thanks for all the hard work on it.
  3. robbo

    Physic bug ?

    I have had the same issue http://www.html5gamedevs.com/topic/3125-sprite-collision-odd-behaviour/ and Kibibu's fix solved it for me with regards to horizontal collision but it made it happen on the vertical axis instead.
  4. The problem is the same as this http://www.html5gamedevs.com/topic/2967-physic-bug/?hl=render#entry19274 I used kibibu's suggested fix of flipping the order of separation using... Phaser.Physics.Arcade.prototype.separate = function (body1, body2) { this._result = (this.separateY(body1, body2) || this.separateX(body1, body2)); }And it has fixed it for horizontal collision but now the problem is with vertical collision which makes sense, will look into this further.
  5. Found the forcing to use Canvas, so obvious I missed it - doh new Game(width, height, renderer, parent, state, transparent, antialias) renderer number <optional> Phaser.AUTO Which renderer to use: Phaser.AUTO will auto-detect, Phaser.WEBGL, Phaser.CANVAS or Phaser.HEADLESS (no rendering at all).
  6. If I try to use the Debug class, for example 'renderQuadTree' in the game render function I get the following error 'Cannot read property 'style' of null'. This is because the game.context is null, (From the docs : A handy reference to renderer.context (only set for CANVAS games)) and it is null because the game is using WebGL over canvas. How do I get the debug info to display in WebGL, or is there a way to force the came to use Canvas?
  7. I thought I had an issue with the bitmapText sitting behind other layers and spent ages trying to swap layers etc, but realised that I was passing a number to the 'setText' function and it does not display anything if you do this. Lesson learnt - Convert Numbers to Strings when passing to the text field.
  8. I have a platform style runner/scrolling game. The mechanic is if you get pushed off the left of the screen the game ends. I am using sprites as obstacles and as the floor (all square tiles assembled in a grid). The sprites are in a group and recycled and added back to the right of the screen when they leave the game world on the left side. The player sprite is moving along these and I am doing collision tests from the player sprite to the floor/obstacle groups. The problem I am having is that occasionally the player sprite gets stuck while running over the floor and obstacle sprites and then the player is pushed off to the left of the screen thus ending the game. I am not sure if I am going about this the correct way. Is this due to my implementation or a bug? Does anyone have any ideas? Game here: http://www.theworkshop.co.uk/testing/paulr/ Thanks
×
×
  • Create New...