Search the Community

Showing results for tags 'timelinebuilder'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. mattasaurus

    help with timeline config/onComplete

    I'm setting up a Timeline and I'm doing something wrong. I want to do this: var oc = function () { playerMoving = false; }; var timeline = scene.tweens.createTimeline({ onComplete: oc }); but this doesn't work (onComplete is null when inspecting in the debugger and doesn't trigger). I see that createTimeline() accepts a config, uses TimelineBuilder.js, and https://github.com/photonstorm/phaser/blob/06998276ec670ceac942f44d344cea8b8af98578/src/tweens/builders/TimelineBuilder.js#L132 seems to apply that config. Seems something like the above should work. I was able to force my callback into the timeline like this: var oc = function () { playerMoving = false; }; var timeline = scene.tweens.createTimeline(); timeline.setCallback('onComplete', oc, [timeline], timeline); but this is a hack, it can't be the right way. I'm probably missing something really simple, can anybody point it out?