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?
Subway Surfer Game Template: http://bit.ly/subwaysurfertemplate
B
71
S
25
G
1
Posts: 110
Reputation: 6,153

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

Did I help to fix a problem in your game? You can buy me a cup of coffee :) If you'd like to hire me, please see this post
B
17
S
9
G
101
Posts: 1,444
Reputation: 54,457

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.
Subway Surfer Game Template: http://bit.ly/subwaysurfertemplate
B
71
S
25
G
1
Posts: 110
Reputation: 6,153

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
138
S
31
G
88
Posts: 5,637
Reputation: 61,205

Post » Mon Oct 23, 2017 9:56 am

zenox98 wrote: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.

Thanks Zenox, u made my day. Was looking for this from long time.
Subway Surfer Game Template: http://bit.ly/subwaysurfertemplate
B
71
S
25
G
1
Posts: 110
Reputation: 6,153


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 35 guests