Benefit of loop behavior

Hey everyone, pretty exciting to see the new features in GS 11. I was looking at the loop behavior and was trying to think of any ways it might help the efficiency of my code. I was wondering if anyone would share the benefits they have found of this code as I haven't found it much different than the rules we already have set up.
For example I don't see it much different than using a rule with a constraint:

Rule version:
If right key is pressed-
Constrain velocity.x to 100

Loop version:
While right key is pressed-
Change velocity.x to 100

This seems to achieve the same thing with first possibly being more efficient

I would love to hear people's examples of how this behavior benefited them, or made things more efficient as it could greatly help me in seeing how I may want to change some things in the game or use the loop function in the future.

Comments

Sign In or Register to comment.