How to do something n number of times?
helpingtogrow
Member, PRO Posts: 74
How do I do something eg. n times.
The "loop" instruction is confusing with frames per second.
Is there some other way?
Thanks
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
It used to be that we could only run instructions once per frame. But now with the Loop behavior, we can specify that we want the instructions to run multiple times per frame. As an example, the Loop above finishes in 0.068 seconds but if I change the Max loops/frame to 2, it finishes in 0.033 seconds... half the time.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Excuse my ignorance but what exactly is a frame?
I'm new to GS. Thanks.
I'm probably not the best person to explain it but my understanding of it is that GameSalad can execute a certain number of instructions per timer cycle.
Here's an explanation and demo by two people who undoubtedly understand it better than I do:
https://forums.gamesalad.com/discussion/comment/579911/#Comment_579911
https://forums.gamesalad.com/discussion/comment/591524/#Comment_591524
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User