...create an Lighningt/Bolt als Weapon?

Get help using Construct 2

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

Post » Fri Sep 13, 2013 7:57 am

[QUOTE=ramones] I had a go. This isn't actually the effect I was going for but I think it's kind of cool. This is very much a work in progress (messy event sheet) but it might give you ideas.

lightningTest.capx (r114)

If you just want a single bolt, disable event 8.[/QUOTE]

I have been working with your recursive algorithm, its very cool. It has only one big problem, it drops fps drastically =S I tweaked it a little to improve performance but it still drops the fps to 45 in a high end computer.

Its still a nice effect but I havent found a solution to the fps drop =/
Image
B
15
S
4
G
4
Posts: 134
Reputation: 3,177

Post » Fri Sep 13, 2013 5:02 pm

@hazneliel That would be the glow effects on the lightning sprite. I removed the effects from the capx and it runs well.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,670

Post » Fri Sep 13, 2013 11:56 pm

[QUOTE=ramones] @hazneliel That would be the glow effects on the lightning sprite. I removed the effects from the capx and it runs well.[/QUOTE]

You are right, now with the glow effect off it runs smoothly. The glow effect can be archeived with photoshop and an additive layer effect.
Image
B
15
S
4
G
4
Posts: 134
Reputation: 3,177

Post » Tue Oct 17, 2017 8:12 pm

@Cherico, @ramones hello.
Can someone share capx lightning effect?
B
17
S
2
G
2
Posts: 10
Reputation: 1,420

Post » Tue Oct 17, 2017 9:03 pm

Hey @mdvgames!

I just implemented this example https://krazydad.com/bestiary/bestiary_lightning.html in construct. Check the capx below, play with it and if you need any help, just let me know.

DEMO: http://constructgamelab.000webhostapp.com/lightning/
CAPX: https://www.dropbox.com/s/az5gk7m9s6wql ... .capx?dl=0

Hope this helps. Cheers!
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
20
S
6
G
2
Posts: 619
Reputation: 3,490

Post » Tue Oct 17, 2017 9:27 pm

nice demo! @brunopalermo
B
80
S
29
G
154
Posts: 229
Reputation: 83,109

Post » Wed Oct 18, 2017 12:09 am

Thanks! Anyway, it's Jim Bumgardner's work. I just ported it from actionscript to construct. :)
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
20
S
6
G
2
Posts: 619
Reputation: 3,490

Post » Wed Oct 18, 2017 12:55 am

Been playing with it for a while and added some forking... Not perfect, but it looks more like lightning now.

https://www.dropbox.com/s/uxl72vng4n6jw ... .capx?dl=0

Cheers
Bruno

I like to eat, but I'm no cook. Why liking to play games would make you a game designer?
B
20
S
6
G
2
Posts: 619
Reputation: 3,490

Post » Wed Oct 18, 2017 3:27 am

@brunopalermo
Wow, a real stress-test for my laptop!
<1 fps and 99% CPU on highest settings! :)
Check out my awesome game Doptrix
B
17
S
9
G
48
Posts: 810
Reputation: 26,927

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 15 guests