Rain efect

Get help using Construct 2

Post » Wed Aug 01, 2012 8:28 am

Someone tried to do the physical effect of rain ... some advice.
thanks for the help.
B
35
S
6
G
5
Posts: 121
Reputation: 6,927

Post » Wed Aug 01, 2012 8:53 am

What do you mean by phisical?

You can either use particles or spawn number of srpites with bullet movement every few milliseconds.megatronx2012-08-01 09:05:29
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
71
S
19
G
19
Posts: 1,919
Reputation: 16,910

Post » Wed Aug 01, 2012 11:06 am

will try to do with the particles, not which of the two ways use less resources, thanks for your answer.
B
35
S
6
G
5
Posts: 121
Reputation: 6,927

Post » Wed Aug 01, 2012 12:58 pm

Not sure but I think the particles way is not a very good idea cuz particle effects are (or I think Ive read it) too resource intensive, so Id try to create a rain effects usin multiple sprites spawns (and destroying them once they hit something or get outside layout).
B
14
S
4
G
3
Posts: 106
Reputation: 4,792

Post » Wed Aug 01, 2012 1:05 pm

I would check out Miu3's particle example in the FAQ if I were you. Covers rain, snow, leaves and fire.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Wed Aug 01, 2012 1:07 pm

i think sprite will do the job , also the physics will lower fps on the game
B
45
S
15
G
6
Posts: 795
Reputation: 11,935

Post » Wed Aug 01, 2012 8:21 pm

You can get away with a few sprites that are animated by a few frames and get a decent looking effect.

Start with a rain falling sprite, just a blue pixel animating from the start position to the end position over the time of a few frames. Have a second animation that is placed on the ground plane for an impact.

'               frame 1
'               frame 2
'               frame 3
'               frame 4
v               Impact
-------------    Ground

I've seen many games effectivly use lighting, sound, and the ground impact sprite effect only to create nice looking rain scenesGreg2012-08-01 20:23:20
B
9
Posts: 59
Reputation: 997

Post » Thu Aug 02, 2012 12:06 am

When I used Construct Classic, I did rain by using 2 particle objects.

One is the rain itself, and the other was the rain splashing.

I think this would be too much for C2 though, would probably slow the game down.

Example: https://sites.google.com/site/projectsarah0/home/sarah.rar?attredirects=0&d=1
B
106
S
35
G
36
Posts: 792
Reputation: 24,703

Post » Thu Aug 02, 2012 2:37 am

Cheap workaround would be to use a animated black & white grainy rain texture.
Something like THIS
You'd need more than 3 of these to keep looping, animating over the screen. You might need to make it have transparent backgrounds or use a effect to make it look like rain.

Next, randomly generate animated splashes on the ground.

Using particles and sprites are both going to be intensive and slow down your game greatly.. do realize we're not going to need so many things an object has for each rain drop like a unique ID for each rain drop spawned. For something as trivial as a rain effect, search for methods older games use and you'll find they mostly cheat for this effect.

You may also want to check this out,
http://www.scirra.com/forum/platformer-snow-fire-rain_topic47629_post298316.htmlRory2012-08-02 02:43:59
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Thu Aug 02, 2012 2:52 pm

I tried with the particles but the game is too slow and try to sprites.
use three sources of particles to achieve the desired effect.
Although the effect was quite good.
Some examples are pretty good up heavy but very complex, as simple as it seems that the particles but with the defect of being slow.
I will try with sprites thanks to all greetings


B
35
S
6
G
5
Posts: 121
Reputation: 6,927

Next

Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, jeffige, LeFuji, plinkie, Radulepy and 0 guests