yasdar

Members
  • Content Count

    13
  • Joined

  • Last visited

About yasdar

  • Rank
    Member

Contact Methods

  • Twitter
    https://twitter.com/YassineDardour
  1. yasdar

    Fading out emitters particles

    misunderstood how it works. Now I get it. If I set rate as 1500 ms particles will fade out in this time. It works now. yes this is right emitter.setAlpha(0.2, 1, 1500, Phaser.Easing.Linear.None, false);
  2. yasdar

    cordova media plugin + phaser.js

    i think this is what you are looking for. http://stackoverflow.com/questions/11616001/uiwebview-html5-audio-pauses-in-ios-6-when-app-enters-background/12414719#12414719
  3. yasdar

    Scale bug on ios device when use iframe

    i think this is the solution :
  4. Hi, Half of the screen becomes black when I play your game on Chrome in Android in order to have a yellow background for the entire game, in the boot state I'm using : preload: function(){ this.game.stage.backgroundColor = 0xFFFFCC;..} but result show half screen yellow+half screen black. and any solution ?, what is the cause ? Thank you
  5. yasdar

    how to load a sound in runtime

    Thank you for help drhayes. this is a good solution
  6. yasdar

    how to load a sound in runtime

    Hello, I have a game that uses many sounds , i don't want to load all sounds at the start of the game this will make this will make the player waiting for 5 min . I need to load one sound and play it when player click a button. i did this : //when player click a button this.game.load.audio("apple", ["assets/sounds/apple.mp3"]); var _sound= this.game.add.audio("apple");_sound.play('',0,1,false) but the console say : Phaser.Cache.getSound: Invalid key: "apple" any solution ? Thank you.
  7. yasdar

    Set constant velocity for body [Physics.P2JS]?

    sprite.body.damping= 0; sprite.body.mass= 0.1;
  8. yasdar

    add HTML table in the game

    Hi, how can i add a table to my game, i need the table to show the score of each played round. any idea ? can i add a html table in the game ? for the moment i'm using an image and i'm adding values using a text in front of the image but text go out of the table ( attached image) Thank you
  9. yasdar

    resolutions of the game

    Good link. Thank you oddskill
  10. yasdar

    Cat's Hunger [Phaser]

    good game a question for all. This game is simple ( no physics , little animations...) the FPS is about 28, is this normal ? why not 60. Thank you.
  11. yasdar

    resolutions of the game

    Hi, i was a flash programmer , and i made some games using the starling framework when making a game i always have 2 sets of graphics resolution( x1 for old devices and x2 for retina). with phaser : how to switch out for higher resolution graphics and scale up on retina devices.? have i to use a resolution x1 for website and x2 for mobiles ? any idea? code ? examples? are welcome.
  12. yasdar

    how to add an animation to a tilesprite

    Thank you for help. work fine .
  13. Hi, I'm trying to add a very little animation ( flying bird) to the background "tilesprite", the bird and the background have to move together. any idea how to do this ? Thank you.