Can we blit single pixels onto the canvas?

Get help using Construct 2

Post » Thu Jan 10, 2013 11:07 pm

Is it possible to draw single pixels with C2? (or with HTML5 canvas in general?)

I am doing some really small explosion special effect. I was wondering if there is a more efficient way of drawing just a single point on the screen than using a 1x1 textured sprite plane?

Explosions are a small 16x16 tile, I just want a few little sparks to fly out, and then alpha fade into nothingness.

If not I am cool with making a 1x1 texture. Years of 3d modeling and UV mapping has prepared me for such a monumental task.

B
28
S
8
G
4
Posts: 767
Reputation: 5,940


Post » Fri Jan 11, 2013 2:25 am

That looks Great! thank you procrastinator!
B
28
S
8
G
4
Posts: 767
Reputation: 5,940

Post » Fri Jan 11, 2013 2:33 am

Don't thank me, thank r0j0hound who made it ;p
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Fri Jan 11, 2013 2:33 am

For explosions like that you may want to have a look at the Particles plugin.
Set it to one shot and spawn one where you want on the screen, it should be pretty much what you're after.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Fri Jan 11, 2013 2:43 am

Kyatric is right, and I don't really know why I didn't think. Particles are just so nice for explosions. Well, at least you know about the awesome Canvas plugin now ;)
B
15
S
5
G
7
Posts: 877
Reputation: 5,650

Post » Fri Jan 11, 2013 6:28 am

[QUOTE=Kyatric] For explosions like that you may want to have a look at the Particles plugin.
Set it to one shot and spawn one where you want on the screen, it should be pretty much what you're after.[/QUOTE]

Excellent! Thank you. I saw the particles before but did not notice the in-depth controls. I think I only played with them for the first day.

Going to go look at the manual, as see what I have been missing. I have done some fun effects in ID tech 3 and 4, and Unreal 2004,UDK. Looking forward to playing with C2's tonight!

Thanks for the help 8)
B
28
S
8
G
4
Posts: 767
Reputation: 5,940


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests