What do you know about "loops"?
Franto
Member Posts: 779
I just noticed while using the windows nightly, a new block type called "Loop", among the likes of Timer, Rule, and Group. I never noticed it was available when I use the mac version(I'm still only use to Windows layout, so it might have been staring at me in the face from the behaviors list when I used the mac and I never saw it).
How does loop do performance wise and what would you recommend it be used for?
It says executes a group of behaviors until a condition is reached? Would this be a good replacement for "every" timer and mod1 rule?
Comments
Loops are great for all kinds of things. You can spawn actors extremely quickly, check multiple cells in a table, or other cool things.
I made this video tutorial that uses the loop to check through a table. Check it out and see one way you can use a loop.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Loop behavior performance is quite good. But since everything is relative you can always search for "Hyper Loop" and "Fast For Loop" if you need something faster.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
@Braydon_SFX Thanks for the vid link, gonna watch now. : )
@tatiang Thanks, when I read about hyper loops a few weeks ago(and we talked about it, lol, I thought it was something else entire, like a nickname given to a rule with a special expression or something like the whole mod1 timer replacement thing, I had no idea it was an actual behavior/block within the game until I saw it today. : X No wonder I couldn't fully grasp what I was reading.