← All guides

Greenfoot story language

Greenfoot story language illustration

WJEC Greenfoot questions often describe code using story language.

Collects, eats or drinks usually means: detect a collision, remove the object, play a sound if requested, and update a counter.

Catches the player usually means: detect a collision with the player object and remove the player from the world.

Gains or loses points means: call the counter method with a positive or negative value. If the mark scheme mentions parameter passing, avoid making a separate new method for every score change. Use one method that accepts an amount.

When answering or coding, underline the story verb first. Then write the exact Greenfoot action next to it.