May 9, 2020, 02:27 AM | |
MCE rain?
I saw in a level, a medivo level if it helps someone, i played, and when i got onto a point, it suddenly started to rain; i was running in there, got onto another point and it stopped raining. How is that possible? I want to make that in the level i'm preparing and i don't remember how, or where did i get the 3 levels. Can someone help?
|
May 9, 2020, 04:18 AM | |
I assume you're probably referring to the level Sommerdamm by Loon (ab22ctf08.j2l).
If this is the case, then the rain effect is actually achieved by using AngelScript as opposed to MCEs. Code:
void onFunction0(jjPLAYER@ play) { jjIsSnowing = true; } void onFunction1(jjPLAYER@ play) { jjIsSnowing = false; } Additionally worth noting that the level uses a custom rain effect as opposed to the default "bubble" rain that comes built into JJ2+. The script snippet for the more realistic-looking rain can be found here. |
May 9, 2020, 10:51 AM | |
It's also possible to achieve this without the use of angelscript, provided you're making a linear level and don't want the rain to turn on and off again freely as you go back and forth between the two spots.
The "JCS Events" section of the JJ2+ documentation describes (under "Feb 14 2015 Additions") some parameters you can add to the Snow event, which lets you cause rain instead of snow using the "Type" parameter, and which lets you use the Snow event to turn rain off using the "Off" parameter. (Or if you're using MLLE, those parameters are already available for you.) The snow event activates when you get near it, not when you cross over the exact tile it's on. |
«
Previous Thread
|
Next Thread
»
Thread Tools | |
|
|
All times are GMT -8. The time now is 03:34 PM.
Jazz2Online © 1999-INFINITY (Site Credits). Jazz Jackrabbit, Jazz Jackrabbit 2, Jazz Jackrabbit Advance and all related trademarks and media are ™ and © Epic Games. Lori Jackrabbit is © Dean Dodrill. J2O development powered by Loops of Fury and Chemical Beats. Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Original site design by Ovi Demetrian. DrJones is the puppet master. Eat your lima beans, Johnny.