Phaser 3 Mouse Pointer Example not working in browser

Hello there,

I’m looking at an Phaser 3 example in my Chrome browser, and for some reason the activepointer function will not do what its supposed to. I also loaded the example into CodePen, and the same problem happened. Everything works if I create a directory, copy the code into the dir and run it in my localhost as usual.

Example here get tiles in shape

I’m wanting to use CodePen, so I can quickly make sketches and test code ideas quickly without having to start a new repo and directory. It gets tedious and bothersome to setup a new directory and server on my localhost.

I’m running a laptop with windows 7 (Im using a temporary pc), and I believe I have the latest version of Chrome.

Can someone point to me the problem, or suggest an alternative solution for fast prototyping?

Thanks a bunch,

Win

:wave:

That example is obsolete. There’s no activePointer.justDown property.