htmlgames / htmlgames.github.io

HTML Games
5 stars 7 forks source link

FIXED: Projects with lots of broadcasts and multiple start events suffer due to timing issues... #19

Closed htmlgames closed 6 years ago

htmlgames commented 6 years ago

These type of projects can be fixed within Scratch by tweaking starting vars to help the emulator, However it would be ideal to get the order / timing same as scratch.

I think this is what is causing issues with

Scratchnapped 2 : Bolder falling vertically down when game starts and scrolling issue (tweak in remixed project)

Flappy Bird (hyperPixel) : gaps in grass (can be fixed by changing starting value from 480 to 473)

Will be a 'hard to fix' but needs to be noted.

htmlgames commented 6 years ago

Welcome to any input on this from other emulator designers.

htmlgames commented 6 years ago

Please think about coding projects more efficiently and not use multiple green flag events. It is best to have just one green flag event and use broadcasts.

htmlgames commented 6 years ago

I've added a hack for Chrome desktop browser only (in player.js).

Looks like if you call a stage.start() wait 100ms then call stage.stopAll() then stage.greenFlagClick() sorts out some projects.... (only if they contain more than one greenFlag event) Not sure why?

htmlgames commented 6 years ago

FIXED: as in multiple 'Green Flag Start Blocks' are working. NOFIX: for EXCESSIVE broadcasting due to timing order (and only fail on troll projects).