By accident...

Post your own tutorials, guides and demos.

Post » Fri May 02, 2008 2:26 pm

When I tried to figure out the instant-hit laser stuff (which Ashley already solved) I created something entirely different from what I intended. I'm not sure this might be of interest to any of the advanced users around here, at least it was a little surprising to me.

I may think along the path of this example to do some explosions for another project.

Okay, maybe just try it. Click in the window to create a thingie and use the arrow keys to alter duration/intensity.
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Fri May 02, 2008 2:42 pm

Heh, nice way to create 50,000 objects quickly :P Looks pretty cool... I guess it'd run faster with drawing lines instead of sprites, but there's no good line plugin yet (might make one soon).
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Fri May 02, 2008 4:33 pm

Yes with linedrawing this should run considerably faster.

I've improved the effect, I guess it's much cooler to look at now. Try a duration of about 360 with an intensity of about 310. Plasma style 8)
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Fri May 02, 2008 4:52 pm

Woah, that's cool. I agree.. needs to run faster. Perhaps fewer but more detailed sprites?
B
3
S
2
G
4
Posts: 310
Reputation: 2,120

Post » Fri May 02, 2008 5:00 pm

Well my events are kinda stupid as well, which doesn't really help with the speed issue.

You can remove the second loop event and replace the following action in the first:

Gun: set Angle to Gun.Angle + 1

replace with

Gun: set Angle to Random(360)

While it's still no speed wonder it does run faster and you don't see the circle building up degree by degree (which sometimes was the case).

EDIT: I'll stop now but here's a smoother version.
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Sun May 04, 2008 5:17 pm

Sweet
B
8
S
2
G
5
Posts: 744
Reputation: 3,288

Post » Mon May 12, 2008 8:58 am

That is really awesome, pitty how much it slows down when there are a few of them though :(
B
3
S
2
G
5
Posts: 301
Reputation: 2,302

Post » Mon May 19, 2008 5:15 pm

I tried to do the same thing with the particle object. Of course I can't achieve the very same effect yet, since it's limited to colored squares as particles for now.

Still you can see that it's way faster than using sprites. I love 0.95!!! :D
B
21
S
6
G
10
Posts: 1,024
Reputation: 7,445

Post » Mon May 19, 2008 5:20 pm

Wow! Nice effect :)
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544


Return to Your tutorials & example files

Who is online

Users browsing this forum: No registered users and 2 guests