Looks like you're not logged in

Login or Register to continue

Lesson Q&A

Use this space for questions related to what you're learning. For any other type of support (website, learning platform, payments, etc...) please get in touch using the contact form.

  • Why are there brackets after the signal "finished" in the docs?_nilCatIn the documents, the brackets make the signal *finished* look like a function when it's written like "finished()", but when we actually use it, we write like: ```gdscript #... tween.finished.connect(func_name) ``` Is that correct? 2 3 Apr. 19, 2024
  • Is it common practice to CTRL + F for certain keywords?MartinBI was sifting through the Tween documentation and not having much luck, walls of text are my Achilles Heel. So I basically just CTRL + F'd the word "Finish" and found exactly what I needed for that wee challenge there. 1 2 Apr. 01, 2024
  • What are Tweens?big-hearted-emuI was around 33.3% confused about the last lesson's variable redefining: ```gdscript var tween := create_tween() #... tween = create_tween() #... ``` Intuitively, this should make only the second tween animate, since the first one would instantly be replaced by it. The lesson explains it as: *"The previous tween will run in the background and stay in memory until the two animations* [of the first tween] *are complete. Then, Godot will automatically free the object for us."* What I understood from the documentation is that `create_tween()` doesn't really store a value in the variable, but rather creates a unique instance which it instantly plays based on the properties you assign to it with the variable. I'd liken it to using `Node.instantiate()` and `add_child()` in one function...? I was curious what this Tween Object was and since it doesn't show up in the Remote dock, I found the `get_processed_tweens()` method from the SceneTree. Which after reading the docs, had no idea how to use. After some fumbling around I got to this: ```gdscript @onready var scene_tree := SceneTree.new() #... func _spawn_random_item() -> void: #... var processed_tweens: Array[Tween] = scene_tree.get_processed_tweens() print(processed_tweens) ``` Which returns empty brackets. As many pairs of empty brackets as there are items spawned. So something is happening, I just don't understand what. Any pointers would be appreciated. Thanks. 2 1 Aug. 06, 2024
  • Best tutorialrural-spiderThere is a saying in my country, Teaching fishing instead of giving fishes. This is the first time I've seen a tutorial tell you to be independent from it, while others make you depend on it. Sorry if my expression is weird, since English is not my first language. 3 0 Sep. 11, 2024
  • Signals not Showing up when I search Tweencloudy-wombatHey, I’m using a Mac and the tween signals won’t show up when I search “tween” or even put the full name, it does show up when I type finish, however thats not very helpful as I wouldn’t know to look that up, I don't know if this is a Mac only bug i.e the gem animation bug, but heres a video demostrating it [https://drive.google.com/file/d/1ALlVG7mzEeI7tHd6KyVn-qCoNdymeQKv/view?usp=sharing](https://drive.google.com/file/d/1ALlVG7mzEeI7tHd6KyVn-qCoNdymeQKv/view?usp=sharing) also let me know if you need any other files, and thanks 1 0 Sep. 09, 2024
  • Challenge - Search and read the mouse_entered responsivenessIronEvaHey, just out of curiosity, if you wanted to make a real snappy UI for a game, let's say a card game, what would be the best approach for this? From what I have read about Continuous Collision Detection it seems rather expensive for a simple card game, but you will want the responsive feeling card. Would ray tracing be the way forward or would you advise something else? 1 0 Aug. 02, 2024
  • So, what does this mean for the button_index property of the InputEventMouseButton class?leafWe were guided to read and learn this line.. "If true, the mouse button's state is pressed. If false, the mouse button's state is released." Does that mean if we were to set the property to true, that mouse button would be considered pressed? Or would it work the other way around, pressing the button would set the property's value to true? Or is it saying we have to listen and capture the button press in order to update the boolean to true in order for it to register and know that the button has been pressed? 1 0 May. 25, 2024
Site is in BETA!found a bug?