DESENHANDO BLOCOS DE SCRIPTS (DRAWING BLOCK OF SCRIPTS) – GODOT 3.1

DESENHANDO BLOCOS DE SCRIPTS (DRAWING BLOCK OF SCRIPTS) – GODOT 3.1


Good morning guys, all right? just an addendum that I think is important the written part of the code when you are starting to code it’s kind of boring to think about the order of things how to make things happen just writing texts so if you already programmed with blocks or think about continuing programming with blocks I like this exercise to migrate between methods ie when the logic scheme is too complex and I can’t think straight into the code the easiest way to try to visualize logic is to think of a flowchart and it doesn’t even have to be a beautiful flowchart indeed I’ll open here and do a free Affinity advertising the software i use to draw and overall visual details and show this freshly made flowchart, exemplifying the code from the past video what am I saying in these blocks? when I press left, move left when I press right move right and you can go next to the blocks to train and write next to the block what would be the function in the code written for example in this piece i know it’s “when i press” input goes into this part of the command we write here to delimit the input on the right (just changing the text color to be visible) and the right input does what? he gives the movement to the right we type the right movement below this movement should occur only when i press the input so the process is not at the beginning of the game or at some specific time it’s just “when i press” so it is a process exemplified within frames by physics so this is a physics_process when you look at the blocks it’s the same logic a very good transition exercise for those who have difficulty thinking about text I advise training like this and sometimes when I make more elaborate codes I use this method until today think of blocks and then describe them in text That’s it, guys, just this brief explanation to go to the next videos

Leave a Reply

Your email address will not be published. Required fields are marked *