ZIM KIDS - SLATE
Phone    Portrait

HELP

The ASSETS buttons at the top of the page go to images you can include in your app. The picked images will be listed at the top of the code. Here is an example of adding "cave01" as a background and "bug01" on top. Remember that you have to pick assets (top buttons) before you can use them. SEE VIDEO

    // PICKING ASSETS
    // Select the cave01 image from BACKINGS button at top 
    // Select the bug01 image from NATURE button at top 
    // You should see cave01 and bug01 in comments
    // at the top of your code (or whatever assets you select)
    
    // Backings can be scaled to FIT the stage
    // or they can be scaled to FILL the stage
    // center() or loc() and mov() can be used
    asset("cave01").scaleTo({type:FILL}).center();

    // Objects can be scaled with sca() if you want
    // sca(.5) is half as big, sca(2) is twice as big
    // You can use center() and mov(x, y) or
    // loc(x,y) or pos(x,y,RIGHT,BOTTOM), etc. 
    asset("bug01").sca(.5).center().drag();
    

SPELLS

Here is a list of all spells mentioned in the help example:

CODE Images scaleTo center loc pos mov sca drag


Do you want to clear your code?

YES NO