The Daily Click ::. Forums ::. Klik Coding Help ::. help with weather effects
 

Post Reply  Post Oekaki 
 

Posted By Message

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
4th December, 2008 at 00:34:31 -

how would i do weather effects without slowing the game? such as rain, hail, wind.
the game is a sidescroller shooter and i use the pmo for main character movement


 
[Game design makes my brain feel like its gonna explode.]

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
4th December, 2008 at 13:59:56 -

Various ways:

Option 1
You can make it so the rain droplets 'Do not follow the screen', so they stay static regardless of where you go. This means your rain is falling as if the area was only 640x480, even if the actual play area is vast.

PROS:
Quick
CONS:
Harder to make it deal with collisions destroying the rain droplets

Option 2
Only make it rain within a certain nearness to the screen.

So for instance, it may rain the screen area, and about 100px above, below, left and right of the screen. Any droplets outside of that get destroyed instantly.

PROS:
Quick
Can handle collisions easily
CONS:
A bit complicated for some

For lightning strikes and stuff, well they're the easy parts. Just make a big object the size of the window and make it flash randomly on and off. Also remember that a thunder strike which is distant has a delay.

So you could make it so that randomly, thunder strikes have different delays. Remember, the more distant, the greater the delay between flash and clap. Also, the greater the delay or distance, the lower the frequency of the thunder clap sound sample must be (and possibly volume).

If there's no delay at all, the thunderclap is right overhead. Now when this really happens, it's deafening and you can actually feel the shockwaves.

Now we can't deafen the player, and it'll sound rubbish to overload their speakers with a super-loud sample. So make the sample as loud as you can get away with, and throw in a heavy screen-shake. Etc.


 
191 / 9999 * 7 + 191 * 7

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
4th December, 2008 at 17:27:03 -

That thunderclap method is great Dines

You could do something simple if you don't need to destroy the water droplets by making all the ones that fall off the frame at the bottom be set back up at the top just outside it. You might want to make the droplet's X position random so that the rain doesn't look like late night TV after all the shows go off.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
4th December, 2008 at 17:28:43 -

Oh and you might want to slap all your rain into its own layer, underneath any player overlays (like health or lives) and over the actual gameplay screen.

 
--

"Del Duio has received 0 trophies. Click here to see them all."

"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"

DXF Games, coming next: Hasslevania 2- This Space for Rent!

siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
4th December, 2008 at 23:51:57 -

thanks guys, lots of great ideas there, but one question, how do you make the screen shake? this is something ive been wondering for a while...

 
[Game design makes my brain feel like its gonna explode.]

NeoMonkey

Finnish Army Fire Commander

Registered
  01/12/2006
Points
  243

VIP Member360 OwnerI am an April FoolPS3 Owner
5th December, 2008 at 11:26:36 -

http://www.clickteam.com/eng/learning_resources.php

Here is few examples of weather effect (1,2).

http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=110065#Post110065

And here is screen shaker widget.

 
I have proven new mathematic formula to be true...

2D > 3D

Image


siven

I EAT ROCKS

Registered
  03/11/2008
Points
  604

Wii OwnerVIP Member
6th December, 2008 at 05:26:12 -

thanks a lot everyone


 
[Game design makes my brain feel like its gonna explode.]

Gamemaker2010



Registered
  22/10/2008
Points
  31
8th December, 2008 at 22:12:48 -


Originally Posted by NeoMonkey
http://www.clickteam.com/eng/learning_resources.php

Here is few examples of weather effect (1,2).

http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=110065#Post110065

And here is screen shaker widget.




I used the first tutorial and it works great. The problem is when i try to use it in my game it gets messed up. In the tut its just a 500x380 but my game is a scrolling shooter that is 1920x480.
When i stand still it works fine but when i strat walking and the screen starts scrolling a whole lot of raindrops come out the side of the screen instead of fallin from the sky

 
Whats a goon to a GOBLIN?

NeoMonkey

Finnish Army Fire Commander

Registered
  01/12/2006
Points
  243

VIP Member360 OwnerI am an April FoolPS3 Owner
9th December, 2008 at 18:44:13 -


Originally Posted by Gamemaker2010

Originally Posted by NeoMonkey
http://www.clickteam.com/eng/learning_resources.php

Here is few examples of weather effect (1,2).

http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=110065#Post110065

And here is screen shaker widget.




I used the first tutorial and it works great. The problem is when i try to use it in my game it gets messed up. In the tut its just a 500x380 but my game is a scrolling shooter that is 1920x480.
When i stand still it works fine but when i strat walking and the screen starts scrolling a whole lot of raindrops come out the side of the screen instead of fallin from the sky



You have to set it to move as the frame moves.

 
I have proven new mathematic formula to be true...

2D > 3D

Image

   

Post Reply



 



Advertisement

Worth A Click