Search the Community
Showing results for tags 'setinteractive'.
-
I would like to make a group interactive. The following did not work groupOfZombies.setInteractive(); Then just to add the resulting code to discover which sprite was clicked needs to me access the sprite-key, i have been looking for it but I can't seem to find it (mainly because most code functions using 'this') spriteCat2.setInteractive(); spriteCat2.on('pointerdown', function () { var thisSpriteName = this.key; console.log(thisSpriteName); }); any help would be appreciated!
- 3 replies
-
- group
- setinteractive
-
(and 1 more)
Tagged with:
-
Hello, setInteractive seems to not be working, at first I thought I wasn't using it correctly (I'm a Phaser and JS newbie ) but then I even tried this example and the same error is being displayed. I'm using the latest Phaser version, everything else I tried is working fine. Sreenshot of the folder project: