On function “create ball”: .........
Using your example and slightly changing it
you have a ball sprite with 3 animation frames of different colors of the ball (say 0, 1, 2 = red, blue, green)
and your function event is
On function" create ball"
- Create Sprite Ball
- set size to function parameter 0
- set animation frame to function parameter 1
then the calls in your game events could be
call "create ball" (10, 2)
will give you a small green ball
call "create ball " (100, 0)
will give you a medium size red ball
for "" 0 to 1
- call "create ball" (1000, 1)
will give you two giant blue balls