Creating a Mario-like 2D PC game with Godot Engine
This is a class where you can learn how to create a 2D adventure game that runs on the PC platform using the Godot Engine. You will learn about tile mapping, horizontal scrolling character control, gameplay scripting, animation, progress saving, scene switching, game building, and distribution.
166 learners
Level Basic
Course period Unlimited
"Section 2. Creating Basic Structure >> Sponge Point, Checkpoint" Lecture Update Guide
hello.
Godot Engine Make a Mario-like 2D PC Game
We are notifying you that there are issues with the lecture and that the videos and materials have been updated.
Building the basic structure section >> Sponge point, checkpoint lecture >> After 16:30
In the existing lecture content
It is written as if the callback function called using the animation_finished() signal receives the "previous animation name" as an argument , but in reality, no arguments are received. [ Official documentation link ]
As a result, the following error occurs and the "unfold" animation does not play properly.
Object::emit_signalp: Error calling from signal 'animation_finished' to callable: 'StaticBody2D( checkpoint.gd )::_on_animated_sprite_2d_animation_finished': Method expected 1 arguments, but called with 0.
To fix the above issue, you need to change your code as follows:
<Before change>
func _on_animated_sprite_2d_animation_finished( previousAnimationName ):
if previousAnimationName == "Acquiring":
sprite.play ("unfolded")
<After change>
func _on_animated_sprite_2d_animation_finished():
if sprite.animation == "acquiring":
sprite.play ("unfolded")
My sincere thanks to CHENG for reporting the error. 🙏
If you have already taken the Sponge Point and Checkpoint lectures, please refer to the changes above and change the script file of the checkpoint scene. Thank you.
For those who have not yet taken the Sponge Point and Checkpoint lectures, you can continue studying as the videos and answer sheets will be updated soon.
thank you




