Jump to content

Tween problems


riccardo
 Share

Recommended Posts

Hi,

i have a big problem with tween, i have a lot of object in differents x and y positions and

i need to tween all of them in a fixed x and y position (center of scene in top position)

 

this is my method

private _gameEnds(){
			for(var i=0;i<this._priceSymb.length;i++){
				for(var j=0;j<this._priceSymb[i].list.length;j++){
					Static.mainScene.tweens.add({
						targets:this._priceSymb[i].list[j],
						y:-200,
						x: 0,
						duration:1000,
						delay:500*i+100*j
					})
				}
			}	
		}

but the object are moving correctly on x position but not on Y.

 

Any ideas?

 

Thanks

 

R

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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