# This is our game script!
# It lives on the Star Prop.
# This function runs when the game starts.
OnBegin<override>()<sided>: void=
# We say hello to the console.
Print("Game started! Find the star!")
# This function runs when something touches the star.
OnBeginOverlap<override>(Other: Entity)<sided>: void=
# Check if the thing touching is a player.
if Is<override>(Other, Player):
# Great job! You found the star!
Print("You won! Good job!")
# Here is where you would add more code.
# Like showing a "You Win" screen.
Verse Library
verse
01 Fragment
Basic device handling game start and player overlap win conditions.
verse-library/how-to-design-a-game-in-fortnite-creative/01-fragment.verse