Hey Guys, in a pickle here.
I'm trying to make this smart, instead of having to deal with many condition lines, to use a For loop.
See the image of before the For loop:
I have 2 parameters here:
- Position of the Sprite (2/3/4)
- How many Drops does the sprite has (0/1/2/3)
So I'm running a For loop to see if he is at position 2,3 or 4 (I have an array with the correct X position per 2nd column cell).
Then I'm checking to see if the sprite IS in position 2, 3 or 4.
Then I'm running a For loop to see if he has 0, 1, 2, or 3 drops.
Then I'm telling the sprite to play a specific animation according to the position.
For example, For position 2, with 3 drops, the animation is called "02.3"
So what I tried to do was "0" + "position" + "." + "number of drops"
I think the reason it's not working is that I don't know the syntax to refer to parameters and stuff (i.e. & ?)