

I thought about using raycasting, but that seems like a really messy solution, as I’d need to either sweep the ray around in a full 360-degree arc to detect neighboring trees, or create a ton of them each pointing in a direction that will equal a separate, neighboring tile. My problem is, I’m trying to get the fire to spread.
#Godot language code#
I’ve been able to modify your code to create a burning animation when the tree enters ‘burning’, and then delete it / replace with a burned-out stump sprite. I learned after the fact that you can animate tilemaps, which may still be something I can leverage to accomplish what I’m trying to do, but so far I’ve been hitting a fairly huge confuse point. I diverged from the tutorial shortly after creating the fireball, and decided to build ‘burning’ and ‘burned’ states for a Tree entity. I’ve burned through everything except saving the game, and the house – plan on doing all that tonight. All the others had missing pieces / incomplete steps, and yours does not, for which I am very grateful. I’ve been bouncing between multiple Godot tutorials, and so far, yours is the best.

$Background/ProgressFrame/ProgressBar.rect_size.x = 1020.0 * Progress ProgressBar -> ColorRect (1020 x 40 Pos: 2,2) ProgressFrame -> ColorRect (1024 x 44 Pos: 0, 278) # use "LoadTime" to control for how long we block this threadīackground -> ColorRect (1024 x 600 Pos: 0,0) Get_node("./Progress").SetProgress(progress) Var progress = float(Loader.get_stage()) / Loader.get_stage_count() Get_node("/root/World").add_child(CurrentLevel) Loader = ResourceLoader.load_interactive(Path)ĬurrentLevel.queue_free() # get rid of the old scene Var NewLevel = "res://Levels/Level"+str(Level)+".tscn" This is part of my code to load a new level: You can download the game project on GitHub. Start Menu – Changing Scene – Saving and Loading the gameīonus tutorial: Dragging the player with the mouse.Adding sounds and music using AudioStream nodes.

Experience Points and Level Advancement.Installation and introduction to the editor.After the first introductory tutorials, we will get to the heart of game development, learning to use sprites, physics, animations, GUIs, sounds and to program the logic of the game with the Godot script language, GDScript. In this tutorial series, we will cover the basics of developing a simple 2D top-down RPG with Godot 3.2.
