
| NEW CODE is BOLD. |
Include "functions4.bb" LoadMusic() MoveMouse screen_width/2, screen_height/2 |
. . . |
LoadRandomSprites( "tree.bmp", 500, -250, 250, -250, 250 ) ; Make a pyramid! Create, position, scale and texture a cone
|
| . . . ; Use the Player "RUN" sound volume to toggle Player Sprite animation If run_vol# > 0 Then AnimSprite( player, anim_tex, 200, 4) object_key_control( player ) . . . PositionEntity sky, EntityX( player ), EntityY( player ), EntityZ( player ) . . . |
| EXPERIMENT ! |
| Try changing AnimSprite( player, anim_tex, 200, 4) to AnimSprite( player, anim_tex, 50, 4) What happened? |
| Undo the changes |
. . . |
| EXPERIMENT ! |
| Change HandleSprite temp_sprite, 0, -1 to HandleSprite temp_sprite, 0, 0 Change EntityAutoFade temp_sprite, 100, 120 to EntityAutoFade temp_sprite, 50, 60 Change ScaleSprite copied_sprite, Rand( 2, 3 ), Rand( 4, 6 ) to ScaleSprite copied_sprite, Rand( 2, 3 ), Rand( 10, 20 ) |
| Undo the changes |
LoadRandomSprites( "tree.bmp", 500, -250, 250, -250, 250 ) ; Make a pyramid! Create, position, scale and texture a cone
|
| THE CHALLENGE!!! |
| Find a different sprite set or create your own original character sprite set and replace the tree sprite with something else |