Jump to content

Ray, Beam and Lightning Effects


MikauSchekzen
 Share

Recommended Posts

Ahoy!

For those of us who played games quite a bit (most of us, no doubt), we've seen plenty of (chain) lightning effects (example screenshot in the spoilers). Now, even though I've seen such effects plenty of times, I wouldn't know where to start to make such a thing.

My question is: how would something like this be accomplished in PixiJS? I'd prefer a way without having to rely on WebGL, if at all possible, though, but WebGL-specific answers are welcome too, of course.

 

Example screenshot

L9rMzjh.jpg

(P.s. sorry if this image is hogging someone's bandwidth... I could not find a spoiler tag or something similar)

 

-MikauSchekzen

Link to comment
Share on other sites

Thanks for the answer!

I looked at the example, and while reading through the code, an idea struck me (like lightning, lol). I used a Sprite containing multiple TilingSprites as segments, and made the segments go from the previous end to a bit of a random point. Except for the last one, that went to the expected destination.

Here is a screenshot of it:

ysFKvfz.jpg

 

And yes, it's RPG Maker MV, but since it uses PixiJS and the answer wasn't specific to RPG Maker, I posted it here.

But regardless, thanks for the answer, matey!

 

-MikauSchekzen

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