What is, however, the code for Animation End?
There is no set code for this. You have to check yourself to see if the image_index is equal to or higher than the image_number-1. Why -1? Because if a sprite has 16 sub-images they are numbered from 0 - 15 meaning that sub-image 16 is image_index 15. So...
if image_index >= image_number-1
{
//do something as the animation has ended
}PS: These questions would be better asked in the Novice Q&A forum as they will get more attention and this topic isn't really the best place for them...



This topic is locked







