How to go to last costume?

How do you go to the last costume?
I tried doing the shortcut from Scratch where you go to costume 0.
I need it to figure out how many costumes. Project link: Snap! Build Your Own Blocks

this should work:

untitled script pic (3)

funny how ego-lay_atman-bay and i were writing the same thing at the same time

if you need to find out how many costumes a sprite has, then there's an easier way than in scratch.

untitled script pic

but if you want to switch to the last costume, then you can just do

untitled script pic (47)

Oh, thank you! There are so many blocks (I should probably play around...)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.