• Content Count

  • Joined

  • Last visited

About bluecake

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hey, I break my head since many hours on this error: I don't understand what is a problem, seriously... I'm getting discouraged ... Look my screen, all is good, I don't understand I remake my map many times but error... Big thank to you !
  2. Hello, Here I would like to know how to do, to make the effect of a torch on fire on Phaser, in the genre we see only 10 cm around and the rest of the room is black? Sincerely and thank you
  3. Thanks Daniel, but not working, here is my code: if(game.input.keyboard.isDown(Phaser.Keyboard.LEFT)) { character.x -= 2;'marcheagauche'); characterlaser.fireAngle = Phaser.ANGLE_LEFT; } else if(game.input.keyboard.isDown(Phaser.Keyboard.RIGHT)) { character.x += 2;'marcheadroite'); characterlaser.fireAngle = Phaser.ANGLE_RIGHT; } else if(game.input.keyboard.isDown(Phaser.Keyboard.UP)) { character.y -= 2;'marcheenhaut'); characterlaser.fireAngle = Phaser.ANGLE_UP; } else if(game.input.keyboard.isDown(Phaser.Keyboard.DOWN)) { character.y += 2;'marcheenbas'); characterlaser.fireAngle = Phaser.ANGLE_DOWN; }
  4. Hello, Today, i have problem... I would like when i ";" my bullet follow the good direction according to the position of my character. Problem in movie: My weapon source code: (in create) characterlaser = game.add.weapon(3, 'laser'); characterlaser.bulletKillType = Phaser.Weapon.KILL_WORLD_BOUNDS; characterlaser.bulletSpeed = 400; characterlaser.fireRate = 60; characterlaser.trackSprite(character, 0, 0, true); When i fire: (in update) if(game.input.keyboard.isDown(Phaser.Keyboard.LEFT)) { character.x -= 2;'marcheagauche'); } else if(game.input.keyboard.isDown(Phaser.Keyboard.RIGHT)) { character.x += 2;'marcheadroite'); } else if(game.input.keyboard.isDown(Phaser.Keyboard.UP)) { character.y -= 2;'marcheenhaut'); } else if(game.input.keyboard.isDown(Phaser.Keyboard.DOWN)) { character.y += 2;'marcheenbas'); } else if(game.input.keyboard.isDown(32)) {; } Thank you very much in all those who will come to help me !
  5. I fix problem with: function removeObject(item) { enemygroup.forEach(function(item){ if(game.physics.arcade.collide(character, item)) { item.kill(); } }); }
  6. Hello, Today I started with Phaser, I worked a lot at school with when I had free time. But I have a problem I can't delete an item in my group when my character makes a collision an item belonging to the group. make my group: (in create function) game.physics.startSystem(Phaser.Physics.ARCADE); game.physics.enable(character, Phaser.Physics.ARCADE); game.physics.enable(enemygroup, Phaser.Physics.ARCADE); enemygroup =; for(var i=0; i<10 ;i++) { var s = enemygroup.create(,, 'monster'); s.frame = 3; s.animations.add('enemymove', [2,3,4], 10, true);'enemymove'); game.physics.enable(s, Phaser.Physics.ARCADE); } for detect collider:(in update function) game.physics.arcade.collide(character, enemygroup, function(){ enemygroup.remove(this); }); /*OTHER WAY I HAVE TRY*/ for(var i = 0; i < enemygroup.length; i++) { if(game.physics.arcade.collide(character, enemygroup)) { enemygroup.remove(enemygroup[i]); } } Thanks you for help ! good development at all and sorry for my bad english (i'm french).