GDScript Arrays Explained - Godot Game Engine Beginner Tutorial

Опубликовано: 29 Сентябрь 2024
на канале: Coding Commanders
2,391
61

Commander Candy explains GDScriot Arrays in this Godot Game Engine Beginner Tutorial.

Download Godot Game Engine: https://godotengine.org/download

Coding Commanders Godot Tutorials: https://www.codingcommanders.com/godot/

If Statements:
https://www.codingcommanders.com/godo...

Arrays:
https://www.codingcommanders.com/godo...

Arrays are a data type that holds a set of values. A key points to a particular value in an array. We use it to access the value it points to. If you do not specify the names of your keys, they will automatically be indexed using numbers. The first value in the set with have an index of 0.

Godot Game Engine makes multiplatform game development so easy!

Practice your new skills with Coding Commanders Homework Assignments

Write GDScript code to perform the following:

Create a skill array (like the ones from the examples) for a mage.

Calculate a mage's healing points

Compare a mage's healing points to a paladin's healing points and output a message telling the user who has more healing points.