jaraiza Posted May 26, 2016 Share Posted May 26, 2016 Hi, I've noticed a bug in phaser 2.4.8 that was not present in 2.4.8 (I skipped 2.4.7). This code: function show() sprBR1 = game.add.sprite(br1X, br1Y, 'Brillo1'); sprBR1.inputEnabled = true; sprBR1.input.useHandCursor = true; sprBR1.alpha = 1; sprBR1.events.onInputOver.add(over, this); sprBR1.events.onInputOut.add(out, this); sprBR1.events.onInputUp.add(up, this); game.world.bringToTop(sprBR1); } function up() { console.log('button up', arguments); } function over() { console.log('button over'); } function out() { console.log('button out'); } worked in Phaser 2.4.6, when the mouse pass over the image, console.log is shown. But in Phaser 2.4.8 the left mouse button is required to be pressed for this to work. The same for useHandCursor property. Greets Link to comment Share on other sites More sharing options...
rich Posted May 30, 2016 Share Posted May 30, 2016 https://github.com/photonstorm/phaser/issues/2486 Link to comment Share on other sites More sharing options...
Recommended Posts