...create an Lighningt/Bolt als Weapon?

Get help using Construct 2

Post » Sat Jan 05, 2013 11:29 pm

I found this random midpoint displacement algorithm here:
http://krazydad.com/bestiary/bestiary_lightning.html

and made an example:
lightningTest2.capx
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Sat Jan 05, 2013 11:46 pm

@ramones That's some awesome electricity right there.
Moderator
B
72
S
13
G
11
Posts: 900
Reputation: 11,783

Post » Sun Jan 06, 2013 12:11 pm

OMG! Thats really impressive and great and exactly what i'm looking for!
B
20
S
5
G
2
Posts: 175
Reputation: 3,462

Post » Sun Jan 06, 2013 1:34 pm

Okay, i played a little bit with your example and created THIS.
I tried to make an obstacle, where player can't shot trough - but... take a look...

I think it's not enough to "destroy" lightning, when it collides with obstacle ;)
B
20
S
5
G
2
Posts: 175
Reputation: 3,462

Post » Sun Jan 06, 2013 5:46 pm

Yeah you'd want to move the endpoint to the point on the wall where the lightning should hit.
lightningBlockedByWall.capx (r114)
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Mon Jan 07, 2013 1:20 pm

Thanks!
B
20
S
5
G
2
Posts: 175
Reputation: 3,462

Post » Mon Jan 07, 2013 3:13 pm

@ramones, that's very impressive work. Good job!
Don't see the fnords and they won't eat you!
B
75
S
16
G
12
Posts: 322
Reputation: 11,608

Post » Fri Mar 22, 2013 7:07 am

I'm sorry for bumping this thread, I am currently learning how to use Construct 2.

I have a problem, the lightning didn't started from "Shoot" imagepoint.

But, if the player stands at left-most jump-through platform (blue colored) at the upper layout, the lightning starting position is right.

Here is my file. I do copy from ramones's code.

https://dl.dropbox.com/s/bhki2akpbaty3go/Platform%20RPG.capx?token_hash=AAGoUrer0r9I3KzZJU_ITnX-fxfI7Y1Rdvl5h0KShx35Vg&dl=1

Thanks in advance for your help.ariaenggar2013-03-22 09:30:06
B
4
Posts: 6
Reputation: 667

Post » Fri Mar 22, 2013 4:27 pm

@ariaenggar You're spawning the lightning on the background layer so it's affected by that layer's parallax. Set the lightning to spawn on layer 1 (event 26).
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Sat Mar 23, 2013 6:00 am

[QUOTE=ramones] @ariaenggar You're spawning the lightning on the background layer so it's affected by that layer's parallax. Set the lightning to spawn on layer 1 (event 26).[/QUOTE]

oh my god. I didn't notice that. Thank you so much ramones. :)
B
4
Posts: 6
Reputation: 667

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: Vallar and 17 guests