We are telling the borders array to push, or add to the end of the list, the object that's labeled b1, b2, b3, and b4.We're telling the 'dir' variable to equal the string 'down-idle' (which is exactly what we labeled the frame in the player's movie clip that loops his idle position that's facing down).We're also setting those heroPosX and heroPosY variables to equal his coordinates. We're adding the hero to the stage, and setting his x and y coordinates to 20,20.
0 Comments
Leave a Reply. |