Back to Browse

Loops - How they work [Game Maker | Basics]

3.4K views
Sep 18, 2022
8:54

This basics video tutorial shows you what loops are in GameMaker. Loops are essential in every programming language where you repeat an instruction until a condition is met. There are 4 loops in GameMaker, which are "repeat", "for", "while" and "do until". They all share one thing. A condition when the loop is over and the code/instruction part that is being looped/repeated/iterated on. You can exit out of a loop with the break; command. Also a word of caution. You can do infinite loops which will always crash your game, so please don't do that. That's it! Tldr: loops = condition and code part Sam spades more in depth video list on loops: https://www.youtube.com/watch?v=MvhSJ0A8wYk&list=PLwgH1hDD0q1Es6P8T1t9ew9cyUTvhlbY0 // graphic from thumbnail: https://opengameart.org/content/mini-fantasy-sprites 👑 Support me and get fresh game art and game maker projects every month: https://www.patreon.com/1upindie Follow me on: 📸 Instangram: https://www.instagram.com/1upindie 🐦 Twitter: https://twitter.com/1upIndie 💬 Discord: https://discord.gg/gvr98nb 📜 Udemy: https://www.udemy.com/course/become-a-video-game-developer-with-gms-23/ (See youtube about page for discount) CHAPTERS ------------------------------------------------------------------------------------------------------- 0:00 What we will go over 0:45 Subscribe 0:57 What are loops in programming? 1:17 How are loop structured? 1:22 Repeat loop 2:20 Do until loop 3:10 While loop 3:42 For loop 4:22 Stopping a loop with the break command prematurely 5:43 Example 1 - Use loops for user interface drawing 7:04 Example 2 - Use loops for randomization 7:26 Example 3 - Use loops for initialization, checking 8:25 Game shown - Narita Boy

Download

0 formats

No download links available.

Loops - How they work [Game Maker | Basics] | NatokHD