Skip to content

Godot-4-Learn-Notes

Đây là các notes viết lại cho khóa học Godot 4 Udemy cho Game topdown.

1 Godot-4-Learn

Nếu có process nó sẽ gọi từng giây. Không nên dùng nó nếu không có animation physics

func _process(delta: float) -> void:
    pass

2 Area2D

Trong Area2D có chức năng collision: gồm LayerMask:

  • Layer: Khi chạm vào object khác thì object khác sẽ nhận biết được Layer đó là gì. Nhưng object này không thể va chạm hoặc đẩy Layer đó. Vì layer chỉ là thuộc tính, không có physics
  • Mask: Nhận signal, gồm thêm thuộc tính physics, có sự phản hồi đến nó và object khác

3 VScode

Cài extension Godot

To make it launch correctly on godot 4 beta 15 I had to modify the vscode godot-tools extension. I modified line 63 of "C:\Users\user\.vscode\extensions\geequlim.godot-tools-1.3.1\out\debugger\server_controller.js".

I switched this

let executable_line = "${godot_path}" --path "${project_path}" --remote-debug ${address}:${port};

with this

let executable_line = ${godot_path} --path "${project_path}" --remote-debug http://${address}:${port};

That is, I removed the double quotes around "${godot_path}" and put "http://" before "${address}:${port}"

No other pages link to this page.



Created : Mar 9, 2023