Jump to content

Search the Community

Showing results for tags 'repeat tween'.

  • 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. So I have this code I want to repeat stars = game.add.group(); stars.enableBody = true; // And now we convert all of the Tiled objects with an ID of 34 into sprites within the coins group map.createFromObjects('Object Layer 1', 6, 'star', 0, true, false, stars); game.add.tween(stars.position).to( {y: 100}, 2200, Phaser.Easing.Back.InOut, true, 2000, 20, true); I want to repeat the tween an infinite amount of times. Currently is set to repeat 20 times. From reading the book I got from phaser.io about tween management, I should be able to set this value to -1 and it should repeat constantly till i tell it to stop in another line. However the first tween is called and executed and then it stops. The tween seems to stop once it hits -1. It does not go to the Yoyo attribute of the tween and return to the original position. The tween is stopped completely. Any advice would be great. Thanks in advance I do not really know how to code and i am doing all this from examples and attempting to use reason. AR
×
×
  • Create New...