Having difficulties with the Fortune Cookie practice

AJ Studios

This is the most challenging practice I’ve encounter so far. I read the instructions several times but I still don’t get it.

  • I’m having trouble creating a resource for this practice
  • I understand I have to give this resource to the fortune cookie node but I don’t see the Lines property in the Inspector. I assume it will show up after I create the resource
  •  I also don’t understand hint 3: For the get_random_line( ) function, you can use var line = lines[randi( ) % lines.size( )]. I also don’t know where to add this function. I failed after multiple attempts. 

I really need help on this one! 

  • a
    andrewjhaugen replied


    1 love
  • AJ Studios replied

    Wow dude, what a great video. No worries, I do understand that messing up is part of learning, I mess up all the time. I really do appreciate your explanation since I learned a lot from this one, although I have to admit this lesson beat the living daylights out of me…lol. Since I’m new to game dev all this concepts make my head spin. 

    I’m really looking forward to the release of the updated “Learn to code from Zero - Godot 4”. I think the second time around I will absorb more and things will make more sense. Also, I don’t want to start working on Projects that I might not be able to open on Godot 4.

    Again, thanks a lot!!!

  • a
    andrewjhaugen replied

    Yeah at this point in the course you are definitely fully in the proverbial "deep end" so don't worry if stuff is feeling like its right at the edge of your grasp. Just keep battling and you will make it!

    1 love