Polygon cotains problem

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

my code:


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!


1 Like

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

1 Like