Hi there,
Just for future purposes, I have a question. Say you had a method that you wanted to run when something occurred. Lets call it action(). Action() is called in the update method. Now, lets set this up in the Action method as simply returning a print statement “Ready? Action!”;
How could you make it so that, perhaps by using parameters, it runs the amount of times specified in the (), for example: Action(3); would return the string 3 times, rather than just continuously like the update method would output normally.
Example:
//Stuff
//Perhaps a loop that calculates something… idk…
action(3);
} // Close Update method
Output:
Ready? Action
Ready? Action
Ready? Action
(Rather than)
{
action(3);
}
Ready? Action! (every millisecond repeatedly outputted.)
Hopefully this makes sense…