Random text to enemies

Hello everyone!

I’m making a top-down typing game where enemies move toward the player, and you must type their assigned word to destroy them.

I want to:
:white_check_mark: Give each enemy a random word from a list
:white_check_mark: Prevent the same word from appearing twice until all words have been used
:white_check_mark: Refill the word list when all words are used

I’m using global variables to store words and trying to remove words from the list after they are used, but I’m having trouble making it work properly.

Could anyone show me a step-by-step event sheet tutorial or share an example project

Try looking at this project for some starter help: GDevelop 5

First, install the array tools extension. Then make sure the words are stored in an array, and create another array called “UsedWords”.

  • Use the Array Tools to shuffle the array of words.
  • Use the Array Tools to Shift from the array into a text variable.
  • Assign the word in the text variable to the enemy.
  • Add the word in the text variable to the “UsedWords” array.

  • Use Array Tools to append all variables from “UsedWords” array to the word array.
  • Clear children from “UsedWords” array.

Post a screen shot of what you’ve done if you are still having problems once you’ve implemented this.