We have learned how to move objects but how can we have them move on their own? We could have birds flying across the screen, raindrops coming down from the clouds, or any other exciting events happening on the screen. Let us see how to do it. Basic Movement Just like we moved our player, we can move other objects. Moving Across the Screen - Right to Left Create a button "bird" (which we can later skin with a nice image of a bird). We will add code on the card script to make it move across our screen On the card script, add a handler on moveBird move button "bird" relative |
Home >