How to create lightening rays for attacking client?

Get help using Construct 2

Post » Wed Oct 11, 2017 7:24 am

How to create lightening thunder ray for attacking enemy? Please dont suggest straight laser lines. Need thunder lightening rays coming out from gun to enemy. Can anyone help?
B
52
S
16
Posts: 77
Reputation: 3,918

Post » Wed Oct 11, 2017 11:25 am

You mean something like this?
Image

Create a sprite with the lightning ray (static or animated).
When you fire your weapon, spawn this sprite, adjust its angle and width so it connects your weapon with the target.

You might want to add several variations of the ray image/animation and select one of them at random.
Check out my awesome game Doptrix
B
17
S
9
G
30
Posts: 525
Reputation: 17,349

Post » Mon Oct 23, 2017 8:08 am

dop2000 wrote:You mean something like this?
Image

Create a sprite with the lightning ray (static or animated).
When you fire your weapon, spawn this sprite, adjust its angle and width so it connects your weapon with the target.

You might want to add several variations of the ray image/animation and select one of them at random.

Thanks dop2000, but this is last solution. I am sure there will be someway to draw thunder lightning lines in realtime with bolt effect.
B
52
S
16
Posts: 77
Reputation: 3,918

Post » Mon Oct 23, 2017 8:41 am

Using search, I found this: https://www.scirra.com/forum/create-an-lighningt-bolt-als-weapon_p1145340?#p1145340.

You should be able to customise for your needs.
If your vision so exceeds your ability, then look to something closer.
Moderator
B
134
S
30
G
86
Posts: 5,422
Reputation: 59,530


Return to How do I....?

Who is online

Users browsing this forum: Blendi1223, jatin1726, kiki4construct, Kyatric and 29 guests