Latest snippets
maskedLine 1.0 December 11, 2017 04:33
JJ2+ has the maskedHLine and maskedVLine functions (and their derivatives) but those are only useful if you're checking a straight line. This function takes two arbitrary points (x0, y0) and (x1, y1) as arguments and checks if any pixel on a straight line between them is masked.
Realistic rain 4.0 April 26, 2017 00:23
Makes rain look more realistic in comparison with the standard "bubble rain" that comes packaged with JJ2+.
Relatively positioned textured background 1.0 May 06, 2016 20:36
Adjusts the fade position of a Tunnel or Warp Horizon textured background to reflect each player's distance from the center of the level. For example, a player in the top left corner will see the background fading away to the bottom right and a player in the dead center will see the background fading away right behind them. Options are provided to clamp the range/s of fade positions. Works with splitscreen.
Resolution adapting backgrounds and 3 additional layers 1.0 December 21, 2015 16:14
A very messed up snippet teaching you how to adapt official backgrounds to your current screen resolution and get a total of 7 background layers instead of the usual 4
Visual-only water 1.0 April 19, 2015 23:31
Draws water in the background of the level without causing any swimming, altered gravity, etc.
Replace Jazz's animations 1.0 April 14, 2015 00:32
Loads a new set of animations from your custom .j2a file and replaces Jazz's animations with them. Works in either 1.23 or 1.24, and people using the opposite version of yours in an online server will still see your animations displayed correctly.
Potion Effects 2.0 April 13, 2015 14:10
This is a really awesome script that gives you the ability to create your own potion effects! Hope you like it! :)
Recharging Blaster Weapon like in JJ3D 2.0 April 09, 2015 20:35
It's just a simple recharging blaster weapon like in Jazz Jackrabbit 3D.
Lori Multiple Air Jumps 1.0 April 09, 2015 08:51
Lori can use both Jazz's Air Jump and Spaz's Air Jump. By pressing "Z" Lori will be able to use helicopter ears, and by pressing "X" Lori will be able to use double jump.
Super ice 1.0 March 04, 2015 00:20
Ice bullets explode violently upon impact causing injury and knockback to players struck by the bullets. Additionally, pressing fire while frozen fails to melt you any faster.
Alternate ammo display 1.0 March 04, 2015 00:16
Instead of displaying your ammo count as a number, displays it as a horizontal line of (mostly translucent) pickup animations
Bubble Gun 2.0 February 24, 2015 22:39
Adding the code for the Bubble Gun as a snippet here for convenience in case anyone wants to use it in their own levels.
Powerups as Pickups 3.0 February 05, 2015 04:57
Replaces all Powerup monitors with special +3 Ammo pickups. Your powerup status for any given ammo type (except blaster) will reflect whichever ammo pickup you last collected, specifically whether it was itself powered-up or not. Updated (v3.0) to work for ammo that comes out of crates.
Steer fly carrot with mouse 1.0 February 03, 2015 22:27
As with any mouse-based code, doesn't work so well in splitscreen or 3D.
Armor 5.0 January 06, 2015 20:12
Armor. The armor protects you from enemies, if you get hurt sometimes you don't even lose a heart.
Fall Damage 3.0 December 30, 2014 16:30
Well... in Jazz Jackrabbit 2 when you fall you don't lose hearts this is a simple script that makes you lose hearts when you fall.
Gem Saving 6.0 December 29, 2014 17:43
If you add death pits in your treasure hunt levels, and gems do not re-generate, when you die in a death pit you lose all your gems, so... this will save your gems.
Drop Ammo on Death 2.0 December 01, 2014 18:36
When you die you will drop your ammo on the ground, and you can get your ammo back.
Operations on ASCII values 5.0 September 12, 2014 22:42
Although extremely simple, AS documentation never mentions how to perform these operations, so this snippet is to spare your time searching. Function explanations in comments.
Shoot as bird 1.0 September 11, 2014 22:59
Rework of this: