Page 273 - Scratch Programming Playground
P. 273

3.  Jump up straight
            4.  Jump to the left
            5.  Jump to the right
            6.  Stay still

                the Crab sprite’s movements will be randomly decided
            and will frequently change. add the following code to the Crab
            sprite.










































                                                    The Crab sprite will wait a random amount
                                                   of time between 0.2 and 0.8 seconds before
                                                    deciding on a new random move to make.









                                                           Making an advanced PlatforMer 247
   268   269   270   271   272   273   274   275   276   277   278