Verse Library verse

01 Fragment

Tracks player progress through checkpoints by incrementing a counter and logging passage events for racing modes.

verse-library/creating-rocket-racing-islands/01-fragment.verse

# This is a simple checkpoint device
# It counts how many checkpoints you pass

OnPlayerPasses(player: player) -> void:
    # When a player passes this point...
    count = count + 1  # Add one to the score
    print("Checkpoint passed!")  # Say it out loud

Comments

    Sign in to vote, comment, or suggest an edit. Sign in