Jump to content

tween loop or no ?!?


kPlusPlus
 Share

Recommended Posts

function moveBal(n) {
        if (n < baloni.children.length) {
            var balonX = gWidth * Math.round();
            var balonY = gHeight * Math.round();
            var timeFor = moveTime * Math.round();
            game.add.tween(baloni.children[n]).to({ x: balonX, y: balonY }, timeFor, Phaser.Easing.Quadratic.InOut, true,5,-1,true);
        }
    }

http://kplusplus-001-site1.atempurl.com/babalon.html

 

I cant that ballons move non stop. Please help me.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...