Create delays inside a function


I was wondering if I could somehow insert delays in the middle of my function, unrelated to tweens and onComplete, to pause the action of my code. As far as my knowledge goes, I would need to break my function into multiple ones and use multiple onComplete.

Anyone could give me insight? Thanks in advance.

You can do this with async/await

Works beautifully! Many thanks :slight_smile: