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...
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...
I setup an example jsfiddle to illustrate this with proper assets.  When your character is moving and the camera starts to pan, you will notice the background has a small "jitterness". This can be disabled by setting game.camera.roundPx to tr...
import React, { Component } from 'react'; import Phaser from 'phaser';  export default class App extends Component {   constructor(props) {     super(props);      this.game = null;     this.create = () => {       this.game.stage.ba...
I am trying to detect when two object collide with each other, but I am not sure how to do it.  I have the following scene, which adds two physics images to the scene. I just need a way to detect when the two collide.  export class MainGame extends S...
I'm trying to tween a sprite from one point to another and have it fade away while it's moving. I've tried this:  const tween = game.tweens.add({   targets: [log.sprite],   x: fire.x,   y: fire.y + (fire.height * 0.2),   opacity: 0,   dur...
I wonder whether it would be possible to load an asset dynamically at a given time in Phaser rather than loading everything in the preload function. The reason for this is simple: I have a game with three different levels, all of which have different...
As it says, in Phaser.js how can you apply an action for each object inside a group. I want to apply the following lines to each item:  game.physics.arcade.collide(something, platforms); game.physics.arcade.overlap(player, something, gameOver, null,...
I have used Phaser 2 for a while but recently converted to Phaser 3 and I want to know if there is a method or member that might be equivalent to 'outOfBoundsKill'. I have an Arc Object in Phaser 3 and applied gravity to it and I want to make...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.