[Extension] arcade-multi-events

Hey folks!

I whipped up a tiny new extension today for a game I’m working on and I thought I’d make a post about it since it’s pretty useful. I present: riknoll/arcade-multi-events

This extension gives you new versions of all of the normal sprite events:

  • on created
  • on destroyed
  • on overlap
  • on overlap tile
  • on hit wall

Except now you can pass multiple sprite kinds at once instead of just one!

multi-events-kinds

And, in the case of on overlap tile, more than one tile as well!

multi-events-tiles

But that’s not all! This extension also gives you an extra version of each block which can be used locally. Now you can define your events using a loop!

multi-events-local

Enjoy!

11 Likes

OMG i’ve been dublicating each bit of code for so long!

2 Likes

This is awesome, just what we needed! So much code can now be optimised!

2 Likes

Yay! Go @richard!

1 Like