API - pauses script until an image is finished animating
returnfunction()local app =getApp();local ob = app.createGameObject(); --create object to attach images to--add the image titled 'welcomeImage' to the objectapplyImage(ob, 'welcomeImage'); ob.image.anchor('bottom left', true); --anchors the image to the bottom left... accounting for image dimensions = true
waitForAnimation(ob.image); --pauses script until finished...applyImage(ob, 'byeImage');waitForAnimation(ob.image); --pauses script again until byeImage finished animatinglog('finished playing two animations!');end