Jump to content

How to make a bossfight? (Phaser-question)


Jendrik
 Share

Recommended Posts

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 tried

tween1.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.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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