Create Your First Godot 4 Game

Lesson 5: Spawning the platforms

Video Notes

Now it’s time to spawn the platforms for your raptor to jump on.

Remember, if you get stuck, compare your code to the code here: https://github.com/quiver-dev/raptor-run. If that still doesn’t help, feel free to leave a comment.


  • fusion2k
    Nov. 4, 2022 at 2:20 p.m.

    Minor quibble, I am running Godot 4 beta 3 and I can’t quite figure out how to get the editor to add the _ready() and _process(delta) functions and comments via one click as shown in the video. It could be helpful to know the shortcut to add boilerplate functions like that for folks new to the engine (like myself).

    Great series though, I love the pacing and find myself not needing to run at 1,5x like I do with other similar tutorials!

    • amit
      Nov. 4, 2022 at 2:43 p.m.

      I believe in this particular case, Tom is just copying and pasting the _ready() and _process() functions from somewhere else, but you can also use “Default” template in the Attach Script dialog to achieve the same thing. Hope that helps and glad you’re enjoying the pacing - we spent a lot of time trying to get that right!

      • fusion2k
        Nov. 4, 2022 at 4:39 p.m.

        That makes sense, also using the default template is specificied in the next session so I just needed to keep going :)

        I just had thought I missed a cool keyboard shortcut, thanks!


  • Pgame
    May 6, 2023 at 7:49 p.m.

    There are two lines that do not work

    (“res://scense/platform.tscn”)

    new_world.position = Vector2(400, 0)

    *preload file (“res://scense/platform.tscn”) does no’t exist. *Missing connected method_on_ready’ for signal ‘ready’ from node ‘World’ to node ‘World’. [ignore] Line 18 (UNUSED PARAMETER): The parameter ‘delta’ is never used in the function ‘_process’. If this is intended, prefix it with an underscore: “_delta’ *Invalid set index ‘position’ (on base. “int”) with value of type 'Vector2”

    *0:00:01:0007 0:00:01:0116 The parameter ‘delta’ is never used in the function ‘_process’. If this is intended, prefix it with an underscore: ‘_delta’ emit signalp: Error calling from signal ‘ready’ to callable: "Node2D(game.gd): on ready: Method not found.

    Not: Note: I am working on the latest version 4.0.2

    • amit
      May 6, 2023 at 8:16 p.m.

      You’ve misspelled “scenes”. You can ignore the warning about unused parameters.

Want to get into the mix? Sign in or register to comment.

Next lesson