Hello friends,
I have a sprite object, and each time I click on it I want it to call a function, or more specifically to cycle through a series of functions that all have the same name, with an increasing number on the end. I'm using C3 full version with built-in functions.
SCENARIO
1. I have a series of functions - funct_01, funct_02, etc., up to funct_10
2. There is a sprite which is the trigger object. The first time I click on it, it calls funct_01.
3. I would like each successive click to call the next function - funct_02, then funct__03, etc.
4. After funct_10 it would loop back to funct_01 and continue the cycle.
I know this is a specific case, but I am also interested to learn about this behavior in general. Say I wanted to click a text object over and over, and have it do totally different things each time (say, first click spawned an object, next click changed the font color, next click destroyed the text). I don't understand the basic concept.
Many thanks for any assistance.