Skip to content

Parallel actions #2327

Answered by eonarheim
chrisk-7777 asked this question in Q&A
May 31, 2022 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

Hi @chrisk-7777

Thanks for the kind words, glad you are enjoying excalibur so far!

Parallel actions are something we've wanted for a while and recently just implemented and merged! #2322 These bits are pretty fresh so any feedback is very welcome.

This feature is only available in the npm alpha packages at the moment, 0.27.0-alpha.472 should have the latest build.

With the parallel actions alpha you might do something like this (One warning about async/await with `toPromise(), it will block until the action is complete so you might want to use the callback form depending on what you're doing):

class MyActor extends ex.Actor {
  constructor() {
    super({
      x: 50,
      y: 50,
      w…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@chrisk-7777
Comment options

@chrisk-7777
Comment options

@eonarheim
Comment options

Answer selected by chrisk-7777
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants