Jump to content

Search the Community

Showing results for tags 'onStart'.

  • 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 2 results

  1. I've created some buttons for the main menu of my game and I wanted to add a nice animation of the buttons moving off screen with a short delay after each other. So I made a bunch of buttons and gave each of them their own tween and then combined the tweening process like this: tempTweens[0].onStart.add(function () { console.log('onStart fired'); game.time.events.add(tweenDelay, function () { tempTweens[1].start(); }, this); game.time.events.add(tweenDelay * 2, function () { tempTweens[2].start(); }, this); game.time.events.add(tweenDelay * 3, function () { tempTweens[3].start(); }, this); }, this);But when I do tempTweens[0].start(); it does what I want it to.... 1 time. The second time I do tempTweens[0].start(); it only moves the first button and not the other ones. I even made a small loop after this code to check. for (var i = 0; i < 10; i++) { tempTweens[0].start(); }and it only writes 'onStart fired' to console 1 time. I'm thinking I haven't fully understood how .onStart works but my guess was that stuff like this should only happen if I had used .addOnce not .add.
  2. icp

    2.4.2 loadTexture

    I'm using a tween that changes the texture of a Sprite when onComplete method gets called. Sometimes it fails to change the texture via this.sprite.loadTexture('myTexture'); . Everything works fine with Phaser 2.3 .
×
×
  • Create New...