Jump to content

Search the Community

Showing results for tags 'TweenData'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

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. I am trying to add a tweendata dynamically to an tween object, while the tween object property isRunning set to true. I figure a solution for my problem out. But I feel I should be able to get this to work too. Have a look and please get back to me on what is missing. ()=>{ var child = new Phaser.TweenData(tween); child.from({x: child.target.position.x, y:child.target.position.y}).to({x:-75,y:75}, 1000, Phaser.Easing.Circular.InOut,0,0,true); tween.timeline.push(child); child.parent.onComplete.addOnce(()=> (target, tween){ console.log('tween:',tween, 'target:',target); //try calling child.start() to run it manually here, //...remove child from tween to stop repeat. if you know a better way via library 'Phaser' to do this, please share. }); }
×
×
  • Create New...