-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Closed
Description
Version
- Phaser Version: 3.55.2+
- Operating system: any
- Browser: any
Description
When trying to recreate the game using the website's guide, I encountered a couple of TypeScript errors.
In a section while iterating the stars it shows setBounceY not found.
const stars = this.physics.add.group({
key: "star",
repeat: 11,
setXY: { x: 12, y: 0, stepX: 70 },
});
stars.children.iterate((child) => {
child.setBounceY(Phaser.Math.FloatBetween(0.4, 0.8)); // Here it says `setBounceY` doesn't exist.
return null;
});And just after that, in the tutorial, where it shows how to detect overlap, the doc shows to use null and this as the 3rd & 4th arguments.
But it shows a type error when I pass null.
Looking at the type it look like it expects something else:
I encountered the above errors in [email protected]+ including the latest beta 16.
Metadata
Metadata
Assignees
Labels
No labels



