Jump to content

Create a ray that follows enemy on shmup.


grumpygamer
 Share

Recommended Posts

Hey guys,

I'm trying to figure out a way to create a beam weapon that originates from the ship.

The beam should lock on to an enemy at a time and be curvy.

This is not possible by sprite, so here I am asking how would I go about it?

 

Here are some examples: 

 

MBlack4.png 5117306571_b4a3e234e7_m.jpg raiden2.0.jpg

 

Problems:

- While I can probably draw a line between to objects I'd have to make it curvy.

- The line causes the enemy to have an impact hovering sprite over the front.

- The line would not be pixelated.

 

 

Link to comment
Share on other sites

I have no idea how to do what you're looking for. ( =

 

That said, have you checked out Phaser.Rope? "A Rope is a Sprite that has a repeating texture. The texture can be scrolled and scaled and will automatically wrap on the edges as it does so." Then you can position the rope pieces however you want and the texture will do the right thing? Maybe?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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