MadLib story challenge

Just in case people might have missed it, make sure to check the course content tab to get a link to the GDScript format strings.

I assume just the script is enough to know what it makes:

extends Node2D

var prompt = ["person", "ate", "blue", "dragon", "toe", "tired"]
var story = "Once upon a time, there was a %s who %s a %s %s.  Afterwards she hurt her %s and became very %s."

func _ready():
	print(story % prompt)

Cute little story :slight_smile:

Love how you’ve got blanks together - adds to the craziness - plus great idea thinking ahead and making the variables global instead of local to the ready function. Great job!

2 Likes

2nd run through:


2 Likes

Capture2

Privacy & Terms