hackenstein Posted October 1, 2013 Share Posted October 1, 2013 I think I found a bug in v1.0.6a : If I scale the stage with StageScaleMode.SHOW_ALL, look at input.x/y and click I can see the the values suddenly drop and stay there until I move the mouse again.This can easily be replicated by extending the "bring to top.php" example like this:<?php $title = "Test Title"; require('../head.php');?><script type="text/javascript">(function () { var game = new Phaser.Game(800, 600, Phaser.CANVAS, '', { preload: preload, create: create, render: render }); function preload() { // Enable scaling game.stage.scaleMode = Phaser.StageScaleMode.SHOW_ALL; game.stage.scale.maxWidth = 1024; game.stage.scale.maxHeight = 672; game.stage.scale.refresh(); game.load.image('atari1', 'assets/sprites/atari130xe.png'); game.load.image('atari2', 'assets/sprites/atari800xl.png'); game.load.image('atari4', 'assets/sprites/atari800.png'); game.load.image('sonic', 'assets/sprites/sonic_havok_sanity.png'); game.load.image('duck', 'assets/sprites/darkwing_crazy.png'); game.load.image('firstaid', 'assets/sprites/firstaid.png'); game.load.image('diamond', 'assets/sprites/diamond.png'); game.load.image('mushroom', 'assets/sprites/mushroom2.png'); } function create() { // This returns an array of all the image keys in the cache var images = game.cache.getImageKeys(); // Now let's create some random sprites and enable them all for drag and 'bring to top' for (var i = 0; i < 20; i++) { var img = game.rnd.pick(images); var tempSprite = game.add.sprite(game.world.randomX, game.world.randomY, img); tempSprite.inputEnabled = true; tempSprite.input.enableDrag(false, true); } } function render() { game.debug.renderInputInfo(32, 32); }})();</script><?php require('../foot.php');?> Link to comment Share on other sites More sharing options...
Mike Posted October 1, 2013 Share Posted October 1, 2013 I've just uploaded your example online:http://mihail.ilinov.eu/games/phaser/examples/input/bring%20to%20top%20BUG.php And I suggest submitting this to the phaser github issue list:https://github.com/photonstorm/phaser/issues?state=open Link to comment Share on other sites More sharing options...
hackenstein Posted October 2, 2013 Author Share Posted October 2, 2013 (edited) Issue submitted:https://github.com/photonstorm/phaser/issues/88 Edit: If anyone knows a workaround until this is fixed, that would be great. I want the player to "draw" a path with the input held down. The value jump on inputDown totally messes with this path... :/ Edited October 2, 2013 by hackenstein Link to comment Share on other sites More sharing options...
Robert O'Rourke Posted March 14, 2014 Share Posted March 14, 2014 I'm still seeing this problem with v1.1.6. It could be because I'm not running the game full screen on its own page though, it's embedded in a webpage. I try the above test case with 1.1.6 and report back. Link to comment Share on other sites More sharing options...
Recommended Posts