Html5 Canvas game 2nd level has overlapping from 1st level
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2022
05:46 AM
Beginner noob here, I'm guessing I need some sort of setTimeout? When my player reaches the 2nd of the first level. Here's my win condition.
if (flagPole) { flagPole.update() flagPole.velocity.x = 0 if ( !game.disableUserInput && objectsTouch({ object1: player, object2: flagPole })
The 2nd level begins
async function initLevel1B() {
I can avoid this problem by not having enemies near the ending and basically a short straight path to the end. But not ideally how I want to do it though.