Jendrik Posted June 18, 2015 Share Posted June 18, 2015 Hi!I´m working on a sidescroller and I like to have a bossfight in the end.But I don´t know how to realize it. I tried a lot with tweens, but the only thing I´ve got was a boss who flies away like a balloon...In the end he has to fly around a bit, attacks the player with his body (collisionstuff) and throws any stuff to hurt the player. What is the best way to get it into? My bossFight function is actually something like this:tween1.to({x:2800,y: 2600},1000).onComplete.add(function(){ console.log("onComplete"); tween1.to({x:2800,y:this.y +100},1000); tween1.start(); }); tween1.start();I also triedtween1.to({x:2800,y: 2500},1000).to({x:2900,y:2500},1000);But nothing works.The Boss has no gravity. I´m using arcade physics. Quote Link to comment Share on other sites More sharing options...
Jendrik Posted June 18, 2015 Author Share Posted June 18, 2015 wrong forum I guess... may be an admin could delete it?I copied it in the phaser one... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.