willis reacted to rich in Wrong picked object by id (custom poperties). Phaser 3 bugs or my code mistake?
The two bits of code do completely different things. Hinted pieces array clearly doesn’t hold the array indexes, but rather the id values. Game Objects in Phaser don’t have an id property, so this is something you added.
willis reacted to Milton in Wrong picked object by id (custom poperties). Phaser 3 bugs or my code mistake?
You should probably ask in the new forum, but anyway:
Your hinted_pieces[ i ] probably doesn't work as an index for the child array (only 0 and 1 would work).