Racing Mini-Game

Totaly posible, as you will see. (Maybe)

The most names for triggers are in the PDF. But, I thought of "Race Start". It works! You can make a mini-race game! Yay! I'm yet to investigate on this, like setting a time limit; though I'd like someone like Edwards to investigate on this.

This post has been edited by FireFalcon : 07 February 2007 - 04:03 PM

@firefalcon, on Feb 7 2007, 01:54 PM, said in Racing Mini-Game:

The most names for triggers are in the PDF. But, I thought of "Race Start". It works! You can make a mini-race game!

Beware of bugs. They are plentiful. There is a large colony of them sitting under your map right now.

Anyway, as it seems that the cat's out of the bag, here's what I've found about the Racine mini-games, as they exist in custom maps:

The Racetrack Race

Notes: All of these sprites must be of type Pickup. They will vanish when you enter them, so the mini-game can only be attempted once (per save/reload?).

Sprites:

Race Start: When you pick up this sprite, 40-second race timer will be started.
Race Info: Optional. When you pick up this sprite, the "welcome to the race" message will appear.
Race Finish: Reach it again before time is up (or if you never entered Race Start), and the sprite named "Race Door" that was placed in the level last will be removed. Reach it after 40 seconds, and it will display the "too slow, exit and re-enter to retry" message.

The Forest Race

Notes: ForestRace must be a trigger of type pickup, but ForestRaceStart and ForestRaceEnd can be any sprite, with a solid type of either Not Solid or Player, not Pickup. If the type of one of these latter sprites is pickup, it will vanish when the player flies into it (see warnings).

Sprites:

ForestRace: Enter this trigger, and you will be shown the "race start" message and teleported to ForestRaceStart. Reach it again before time is up, and the game will show the "race won" message, and the sprite named "Race Door" that was placed in the level last will be removed, as will ForestRace (ForestRace is not removed by entering it unless that entry wins the race). Reach this sprite after 25 seconds, and the game will display the "race failed" message, and teleport the player to ForestRaceEnd.
Note that it is theoretically possible to take advantage of the "one Race Door at a time" effect, and the removal of pickup-type ForestRaceStarts, to make a set of multiple races that must all be completed, but I recommend against trying this, as set-up is very difficult.
ForestRaceStart: This is where you are teleported to when the race starts.
ForestRaceEnd: This is where you are teleported to if you reach ForestRace after time is up.

The Warnings
WARNING: When a race starts, it activates the race counter, which counts up. This is the same timer that is used for custom level timing, so by starting a race, the custom level timer will start counting up, regardless of whether the level has a timer. When the race ends, the custom level timer will revert to its normal behaviour, and start counting down, starting at whatever time it had when you finished the racing minigame. When it reaches zero, the level will end (once again, this is regardless of whether the custom level has a time limit). Note that this could be used if you want a post-race time limit for something- say, a boss that takes a while to kill. The level then becomes a balance between speed through the race, and having enough time to actually win.
WARNING: If there is no ForestRaceStart sprite, entering the ForestRace trigger will start an infinite loop, where the "start race" message will appear, then re-appear every time you dismiss it, until you finally get leave the other side of the trigger during the microseconds of motion you get between displays of the message. This is NOT FUN.
WARNING: If you complete the Forest race in less than 3 seconds, you will get the Race Start message again and be sent back to ForestRaceStart.
WARNING: The Racetrack race can only be flown once per playing of a custom level. This may change to once per save/reload in 1.0.1.
WARNING: This information is only accurate for SketchFighter version 1.0.0. Because this feature is entirely undocumented for custom levels, there is no guarantee that it will not change in some future version, especially if a true custom level racing mini-game is ever implemented.

Edwards

I'm gana wait for 1.0.1 to complete my levels. And yeah, there's a big huge colony of bugs on the Temple of Death, which I maybe will quit.