Jump to content


  • Content Count

  • Joined

  • Last visited

  1. Nice, that's exactly what I'm looking for. Cheers
  2. Sorry about the formatting, can't seem to format the code properly.
  3. Thanks for your anser samme. That's not really the same. The delayedPlay looks interesting but is not the same also. If I made a change in one animation, I would have to go back to all my other sequence that use that one animation and make the same change. On sammy's note, I have build a helper function to combine animation frames in typescript. public static createChain( id:string, scene: Phaser.Scene, KeyList: Array<string>, frameRate?:number, repeat?:number ): Promise<any> { return new Promise((resolve) => { if(KeyList) { let frames = []; for(let
  4. I'm new to using Phaser so if what I'm asking is impossible or if I should look into doing it external to Phaser then please let me know. Thank you,
  5. Thanks for the quick reply blackhawx, Unfortunately, multiple tween sequence won't work for what I'm trying to achieve. What I'm trying to do is find a way to reuse animation sequences with out having to define an entire new sequence. I find that doing so will greatly reduce complexity and centralizes the animation (Such that you only need to update a single animation sequence instead of doing the same update everywhere the same sequence is used). Very useful when working with sprite sheets. Thanks,
  6. Are there any creative ways to accomplish this? Thanks,
  7. Thanks for your help. That works fine in most cases but will not work if the key needs to be repeated. For example, if I wanted the user spin around when the bomb hits him. So I want the user to complete the following animation "left"=>"right"=>"turn"=>"left"=>"right"=>"turn". And If I use the "animationcomplete" listener, can someone show me an example of a clean way to remove that listener when I'm done with it? I can not figure out how to use the .removeListener method properly. Thanks again,
  8. Hi All, This is my first time getting into phaser and I have a question that should be easy but I could not find it anywhere on this form or on google. I'm following the tutorial https://phaser.io/tutorials/making-your-first-phaser-3-game and I want the player to do a series of animations when he dies but I can not find a way to do this. Can some one help point me in the right directions? The following example is not exactly what I'm looking for https://labs.phaser.io/edit.html?src=src\animation\animation from png sequence.js since it chaining frames instead of animation. This
  • Create New...