I'm using phaser.js to make a game and I cannot find any tutorials on how to make the background scroll infinitely. I'd like the background to tile/repeat sideways, and infinitely as the character moves right.   I am currently using a camera...
Im having the same problem again, i dont know how to fix this. Ive notced though the error pops up when the blue enemy reaches the bottom. Please help!  JSBin Format click edit on top right corner to edit code  Code:  var game = new Phaser.Game(500,...
I'm having trouble destroying Sprites in Phaser.  I have a JavaScript object, let's call it Block. Block has a sprite property, that gets set like so:  this.sprite = this.game.add.sprite(this.x, this.y, 'blocks', this.color);   At a c...
I'm new working with Phaser 3 and Apache Córdova for create mobile Android games.  I have created a game of 1200 x 800 px. It looks fine in tablets but in smartphones doesn't. How can I scale it to work in multiple screen sizes?  Additionall...
So basically, i want to create a platformer or labyrinth game(Yes, very basic since im still learning, there wont be much stuff anyway).  I want to have multiple .js files, each handling different tasks, for example:   main.js - Game menu level1.js -...
I made a cordova project and device ready worked, I didn't get any errors. Then I tried to add two javascript files and a folder full of images.  I have linked them in the index.html and didn't delete anything.. Now Device Ready does fire? No...
I am new to phaser 2.3.x. These are the five positions:  1   2   3   4   5.  My problem is - I want to generate a circle_no_1 sprite at position 1. After two second I want to shift the circle_no_1 to position 2 and at the same time generate another c...
There are two tanks. One of them is controlled by arrows. I did everything that was necessary so that the tanks could collide, but this does not happen. Why? If this large code is not easy to read, please tell me where I could run the example. Below...
Good evening, sorry for asking again, but I need to be done with this by tomorrow for school. Basically, when I try to access the this.game variable in the update function, it says that it is undefined, to be specific, I get this; "Uncaught TypeE...
When I run my game in Google Chrome and Firefox, the game screen is black, once I refresh it, it runs as it should.  The error I see in the console when the screen is black is:     TypeError: paddle is undefined (Firefox)      Uncaught TypeError: Can...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.