Polygon cotains problem

Hi,
i have some trouble with the Phaser.polygon and the contains function…

my code:

https://jsfiddle.net/thr2k4/vswq3mf1/15/

i know i need to change the y position of the polygon itself, but if i try something like this:

poly = new Phaser.Polygon([0, i48, 83, i0, 166, i48, 83, i96]);

i’ve got strange results…

thx 4 help!

https://jsfiddle.net/be65crhg/7/

1 Like

That’s it! Thank you! :+1:

1 Like