rodrigezer

Members
  • Content Count

    18
  • Joined

  • Last visited

  1. rodrigezer

    adding extended sprite to scene

    awesome dude !! i was googlin it for a while.
  2. rodrigezer

    Move camera by "dragging" the world floor

    Can update it for phaser 3?
  3. rodrigezer

    How to change background color

    I did it with this line this.cameras.main.backgroundColor.setTo(255,255,255); https://photonstorm.github.io/phaser3-docs/Phaser.Display.Color.html
  4. rodrigezer

    How to enable Debug showing Sprite collision boxes

    lol i was looking for that option for one hour But i have a problem this.physics.add.image(400, 100, 'block'); <<< It renders debug overlay, cool this.add.image(400, 100, 'block'); <<< render nothing. http://labs.phaser.io/edit.html?src=src\physics\arcade\simple body.js
  5. rodrigezer

    Collision physics.collide .y++

    oh...well then just wait for the new release. TY
  6. rodrigezer

    Collision physics.collide .y++

    Hello. i'm making a collision detec, i have it var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { preload: preload, create: create, update:update }); var c1, c2 function preload() { game.load.image('caja', 'assets/objetos/caja.png'); } function create() { c1 = game.add.sprite(0,100, 'caja') c1.name = "c1" c1.body.immovable = true c2 = game.add.sprite(0,0, 'caja') c2.name = "c2" c2.body.velocity.y = 100; //when i use .velocity, the collision works } function update(){ // c2.y++ //BUT WHEN I WANT MOVE THE SPRITE THIS WAY, THE COLLISION DONT WORK. game.physics.collide(c1, c2, collisionHandler, null, this) } function collisionHandler(){ console.log("crash") }how can i do ? i need move the sprites around "x" and "y".
  7. rodrigezer

    Check animation frames / when finished

    why doesn't work it ? player.animations.add('run')player.animations.play('run', 12, false, true); player.animations.onAnimationComplete.add(function(){ console.log("complete") }, this);
  8. rodrigezer

    How to use the onAnimationComplete

    why doesn't work it? player.animations.add('run') player.animations.play('run', 12, false, true); player.animations.onAnimationComplete.add(function(){ console.log("complete") }, this);
  9. rodrigezer

    Error in Tween/Easing.js.

    Sorry, but, whera are the complete list of easing ? Ty
  10. rodrigezer

    sprite.input.allowVerticalDrag = false;

    Thank you. I do that, and works i was just wondering,maybe thera is a method
  11. Helllo. This code let us dran in the vertical // This will lock the sprite so it can only be dragged horizontally, not verticallysprite.input.allowVerticalDrag = false;There is a method that allows you to drag in a circle? When you start dragging the sprite does not move but that allows you to spin in placer something like sprite.input.allowRadialDrag = true;I need drag this handle, and it drag in circle (image)
  12. rodrigezer

    Keep looping without focus

    Sorry, but i'm new with phase How can i aply? var canvasW=800;var canvasH=650;var opt={ preload: preload, create: create, update:update };var game = new Phaser.Game(canvasW, canvasH, Phaser.CANVAS, 'game',opt);game.stage.disableVisibilityChange = true; // here give me errorsfunction preload() { game.load.image('control_panel', '/assets/control_panel.png');}function create() { game.add.sprite(0, 0, 'control_panel');}function update(){console.log('update')}And in wich case i need use? "Stage"? because in your examples. you just use new Phaser.Game(...)
  13. rodrigezer

    Keep looping without focus

    And in wich case i need use? "Stage"? because in your examples. you just use new Phaser.Game(...)