Parallax Layer effect to show motion?

Get help using Construct 2

Post » Sat Dec 06, 2014 4:26 pm

I have a space game and one of the parallax layers is stardust, that layer is set to 135,135 so it scrolls faster than the main screen.. so it helps show motion pretty well.

I would like to somehow give a motion blur effect to the stardust. I've tried a lot of WebGL effects but I don't think that is the right approach. I want the dust to blur as the parallax is moving or scrolling.. the dust image is a bunch of circular dots, so I'd like the dots to burn into the background and streak a little...

does anyone have any ideas? Thanks!
B
98
S
32
G
16
Posts: 1,204
Reputation: 16,715

Post » Sun Dec 07, 2014 12:07 am

Can you show image of what you want to make?
My advice not to use Blur webgl it will drop your fps.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Sun Dec 07, 2014 6:09 am

hi @A0Nasser, here's a really quick example..

I want the "dust" layer to streak when the spaceship moves...

my actual project uses an unbound layout, so I don't have the problem of the abrupt stopping dust at the edges.
You do not have the required permissions to view the files attached to this post.
B
98
S
32
G
16
Posts: 1,204
Reputation: 16,715

Post » Mon Dec 08, 2014 12:15 am

Maybe you can use sprite with 2 frames as dust, and when the ship move set frame to 1 and when the ship stop set frame to 0.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,155

Post » Mon Dec 08, 2014 7:13 am

@A0Nasser its a tiled background..so can't use frames.. but I could load a different image into it... not sure how that will look suddenly.. but a static image is not what I am after.. I'm looking for some sort of trail effect..
B
98
S
32
G
16
Posts: 1,204
Reputation: 16,715

Post » Mon Dec 08, 2014 7:16 am

its like I need "treadmill" effect or something, just around the ship.. it doesn't even need to take up the whole screen...
B
98
S
32
G
16
Posts: 1,204
Reputation: 16,715

Post » Mon Dec 08, 2014 7:25 am

use two behaviors, WarpAroundLayout and bullet.

Change bullet speed to pixelspeed here

(u need to dupe ur sprite if its a background and put in right next to the other one.
B
10
S
1
G
1
Posts: 63
Reputation: 840

Post » Mon Dec 08, 2014 5:10 pm

thanks @Paperbeemo but that doesn't work quite right..

probably an animation loop is best at this point...
B
98
S
32
G
16
Posts: 1,204
Reputation: 16,715

Post » Wed Dec 10, 2014 7:19 am

do different size offsets? or program it directly in.
B
10
S
1
G
1
Posts: 63
Reputation: 840

Post » Thu Jan 08, 2015 8:38 pm

after being away from this for a while the solution came to me pretty quickly and I was able to apply it pretty fast... although I am still tweaking it.

I used a particle effect, which for some reason I never thought to use! duh! anyways, you just pin it to the player, make the X/Y randomizers make a "box" around the player, then set the speed of the particles to 1, acceleration to 0. As the player moves the particles will create a "wake" effect which is nice and exactly what I was after. it's also nice that the particle doesn't rotate with the Pinned behavior, so it works perfect.
B
98
S
32
G
16
Posts: 1,204
Reputation: 16,715


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 39 guests