Array for quantity of images - is this possible?

In my game, I have go the end of chassis only when he ran out levels. Currently, it checks with an if statement to check to what level I am on and if it's above a certain number, I put (in this case 4), he goes to the image of the end of the game. Instead, is it possible you could get the number of images in the game and store them in a table, then check if the current level is higher than the table and I have to then go to the end section.

I don't know why you want a table for what you describe, but if it is you need to know the number of images, it is the property of totaslFrames which can be used for this... The currentFrame property might be useful for what you are after as well.

Tags: Adobe Animate

Similar Questions

Maybe you are looking for