Questions tagged as 'phaser.io'

3
answers

methods within the objects of the function class in javascript

I'm trying to learn an HTML5 framework for videogame development, called phaser, so I'm in the tutorial of here , where it says 'Loading Assets' there is a preload function that loads the images or assets commonly called 'assets' of the...
asked by 24.02.2018 / 01:47
0
answers

How to create collisions between sprites of an array

I have created several sprites with phaser and I have stored them in an array. function createShip(x,y,angle,ship){ var s = game.add.sprite(x,y,ship); s.rotation = angle; s.anchor.setTo(0.5,0.5);...
asked by 19.03.2018 / 00:22
0
answers

phaser 3 active pointer problem on mobile

I am trying to move my player by clicking on the right or on the left of the game, everything is fine on the computer, but when I try it on the mobile, it always moves to the right and, after many attempts, it starts to move to the left, it does...
asked by 06.11.2018 / 04:56
0
answers

motion control

I have a sprite with 3 different states 'run', 'stop', 'wait'. Pressing the left or right arrow of the keyboard activates the running animation, if they are not active, 'wait' is executed, what I need is to run 'stop' without a loop, just when t...
asked by 25.03.2018 / 19:24