• Content Count

  • Joined

  • Last visited

Everything posted by Nikow

  1. Interesting ! Thank you, i will try with this function !
  2. I have the same result as you for now, but no parallax in your gif ?
  3. Your character is everytimes on the center of the screen ?
  4. I know that... But when camera is following a sprite, first the sprite is moving to the center of the screen, after that, the camera is mooving , and last, the camera stoped and sprite is moving again. How could i create the parallax effect only when the camera is moving ?
  5. *And i Need to make parallax elements moove only when camera is mooving ? Thank you
  6. How can i relying the camera movement with one sprite ?
  7. Hi Everybody ! I'm working on a game with camera follow, and many plans on background. Is there a solution to make them moved at differents speeds ? To create parallax effect :). Thank you !! And sorry for my english ^^..
  8. for everyboy, do never create tilesprites on two differents states with same name.... It's solved all my probs... Thanks all !
  9. I Rich, Same prob on safari with 960x640 images ? Need help please..
  10. Try this : * 2, this.destroy, this);
  11. Like that : yourSprite.animations._anims.yourAnim.speed = speedYouNeed ;?
  12. It's return 1 for canvas ans 2 for webgl , it s looks like perfect
  13. Yes... I saw.... I need to keep it in the code...
  14. Hi, How could i know if my canvas is on webgl or canvas render mode ? Thanks !
  15. Yes.. I think it's too now.... Very problematics for my projects...
  16. I activate 'WebGL' on safari and it's works now, so it's a prob with canvas render...
  17. I resize it, but it's already not working on safari, need your help ^^?
  18. If i delete these lines, it's work on safari ( but very poor performance).. Any ideas ?
  19. I try to create a tile of 960pc wide, but noting have change.. I will try to resize the texture :/ ....
  20. It's 3000px png, i create tilesprite at the same size than the png. My scrolling bg width is 3000px ..
  21. Thank you Rich, Creations : bgCity3 = game.add.tileSprite(0,0,3000,640,'decorsBG3');game.physics.arcade.enable(bgCity3);bgCity2 = game.add.tileSprite(0,0,3000,640,'decorsBG2');game.physics.arcade.enable(bgCity2);bgCity1 = game.add.tileSprite(0,0,3000,640,'decorsBG1');game.physics.arcade.enable(bgCity1);And : bgCity1.tilePosition.x -= speed/10;bgCity2.tilePosition.x -= speed/20;bgCity3.tilePosition.x -= speed/30;In Render function.. It's working perfectly on others browsers...
  22. Hi, I've to finish a game this week, and i test it today, it's working very well on chrome and firefox, but not in safari, i ve the first screen of the game, but right after clicking 'play' button, i fall on a black screen with this error on my js console : [Error] TypeMismatchError: DOM Exception 17: The type of an object was incompatible with the expected type of the parameter associated to the object.createPattern (phaser2.3.0.min.js, line 6)_renderCanvas (phaser2.3.0.min.js, line 6)_renderCanvas (phaser2.3.0.min.js, line 3)_renderCanvas (phaser2.3.0.min.js, line 3)renderDisplayObject (phaser2.3.0.min.js, line 5)render (phaser2.3.0.min.js, line 5)updateRender (phaser2.3.0.min.js, line 9)update (phaser2.3.0.min.js, line 9)updateRAF (phaser2.3.0.min.js, line 14)_onLoop (phaser2.3.0.min.js, line 14)
  23. I think you can try to put all the scrolling functions like velocity and tilesprite scrolling in the render function of phaser and not in update.