Jump to content

vispik88

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by vispik88

  1. Hi all. I have a large problem with using phaser.js We have developed a game. It is game with animation on the game-table (animation of casino cards etc.). We use Phaser 2.0.3, Requirejs, Underscore, Jquery and our own models. Sometimes (once in 5-10 minutes) when page loads animation do not start. Also click events on objects are not available too. Page reload solves problem and game back to normal. This problem is not permanent: sometimes it is ok, but sometimes we have a problem. All buttons, sprites and texts load normally, but animation - no. I tried to debug some buttons behaviour. For example I tried to make console.log messages when hovering the object, but there is no message when game loaded with the problem. I think it is global bug with the loading Phaser system, but I don't know how to understand the reason. One way to reproduce the problem (as I know) is: opening FIREBUG when the page is loading. In most cases it leads to a problem. Please, help me, I need an advice how to test and fix this problem.
  2. As i know from my partners, the reason is not audio. The reason is disable click by button:Below is a code:1) object - simple js object2) object.layer - link to created buton3) If game starts i have two console.log messages: "set cursor" and "add event"4) Then i try to click the button and i have no any messages. There are no pointer cursor when i hover the button and it is not clickable. After refresh the page - it became ok Anybody can help me? Thanks define(['phaser_layer', 'models/seat'], function(phaser_layer, seat_model) { var public = function(context) { this.phaser_layer = phaser_layer; var that = this; this.create = function(seat_number, position, click) { var object = new seat_model(seat_number, position, click); object.layer = this.phaser_layer.layer.add.button(position.x, position.y, this.phaser_layer.asset_definitions.player_open_seat); object.layer.inputEnabled = true; object.layer.input.useHandCursor = true; console.log('set cursor'); object.layer.events.onInputDown.add(function() { console.log('click'); object.onClick(object, click); }, this); console.log('add event'); return object; } } return new public(this);})
  3. Hi. I have one problem with loading audio files at phaser. Sometimes when i open my game at first time (clear all cache), i look at firebug that my sounds are loading now. And then after loading game became start. The problem is that all buttons doesn't clickable and i have no opportunities to make any action. When i refresh the page - it's all became good. But this problem is not permanent and i don't understand what the reason. Help me please, it is very important
  4. I need some help. Does phaser allow keep alive animation when browser tab is not active? I need to show all animations, even in cases user select other tab or browser. Animations must continue anyway Thanks
×
×
  • Create New...