returnfunction()local app =getApp();local ob = app.createGameObject(); --create object to attach images toapplyImage(ob, 'welcomeImage'); --add the image titled 'welcome' to the object ob.image.anchor('center', true); --anchors the image to the center of the screen...wait (0.2); ob.image.stopAnimation();wait(3); ob.image.playAnimation();--if the image is an animated one, it will begin animating.--animated images play automatically when using applyImage()end
You must first create an image for it to be applied! Check applyImage below for examples.