Search the Community
Showing results for tags '2.4.8'.
-
When using v2.4.7 I was able to use onInputOver to change the button's tint. Now, in v2.4.8 the onInputOver is no longer triggered. Also, the mouse pointer no longer turns into a finger pointer on mouse over. Is anyone else experiencing these issues with the Button in v2.4.8? Example of code: ClassX = function() { ... this.button = game.add.button(100, 1000, null, actionOnClick, null, 2, 1, 0); this.button.onInputOver.add(this.mouseOver, this); }; ClassX.prototype.mouseOver = function() { this.someSprite.tint = 0x88d5ea; };
- 3 replies
-
- oninputover
- button
-
(and 1 more)
Tagged with:
-
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