I am working on my programm and I need your help. How can you help? Just tell me the command that stops the class from working or that stops the program for a several amount of time. Also don't forget to tell me it's arguments.
Everyone, Have a nice day.
Comments
?
A notice to Kire: the command that you given isn't what I want. I need a command that only makes the programm to sleep, not to crash!
@HappyProgrammer11 You don't stop the program from working. Codea runs in a constant loop and the way you stop something from executing is to not execute its function. You use an if statement to control when a function is called. If you have instances of a class that draws several things on the screen, then use the if statement and some variable to call or not call those instances.
Here's an example to show or not show a sprite
So you want the program to be in some pause/standby?
Again a personal message to Kire: Yes, but I want it to be in the standby for a fixed amount of time.
to pause a program for X seconds, try this
@Ignatz Big Thanks! That works!
@Ignatz Please, tell me how to use this inside a loop or another function instead for the draw function.
You have to tell your draw function not to draw during a pause.
That's what my code does.