14-10-2009, 05:30 PM
hmm 0.0
Id say What you got there is close just get rid of the timer and make it Get tick.
also
Type DropRainRec
x as long
y as long
speed as byte
Randomized as byte
End Type
use byte instead of Boolean ^^. 1 or 0 Would work =].
and in the MapRec
add Weather() As byte
1 rain 2 thundering rain 3 snow ^^
you can Make them public Consent ^^ as well for the max amount of drops
Public Const MAX_BLTDROPS As Byte = 100
Reason for Adding to map is to allow Each map to be able to have a different Weather. like Mountains with snow then walk off rain forest woot.
You could also add a Gettickcount to Count down, to turn the Drops on and off for each map and Have a set variable In the map editor for it =].
If you ask why i use byte instead of Boolean because i think its faster ^^.
Id say What you got there is close just get rid of the timer and make it Get tick.
also
Type DropRainRec
x as long
y as long
speed as byte
Randomized as byte
End Type
use byte instead of Boolean ^^. 1 or 0 Would work =].
and in the MapRec
add Weather() As byte
1 rain 2 thundering rain 3 snow ^^
you can Make them public Consent ^^ as well for the max amount of drops
Public Const MAX_BLTDROPS As Byte = 100
Reason for Adding to map is to allow Each map to be able to have a different Weather. like Mountains with snow then walk off rain forest woot.
You could also add a Gettickcount to Count down, to turn the Drops on and off for each map and Have a set variable In the map editor for it =].
If you ask why i use byte instead of Boolean because i think its faster ^^.