Key Down - Right: The code and explanation for this event will be the same as the previous event. Key Down - Left: This code which side of the tree the player is standing on and then it spawns an instance of None of them are complicated, however.Ĭollision with object_Branch: The code checks if the branch that has been collided with is visible and if it is it plays a death sound and goes back to the start screen. This object has the most events with code in them. Key Up - Right: The code and explanation for this event is exactly the same as the Note that once the log is spawned, the code in the log instance takes over what will happen to it. 15 of a second on to the time the player has left. Next, it will add ten points to the player’s score and add. Key Up - Left: When the player releases the left arrow key, this code will spawn a log and play the chopping sound effect. When it is the instance is destroyed.Ĭreate: The only thing that happens during this event is the built-in Step: The Step event detects when the log leaves the screen by constantly checking whether x > 1920. Object_Log instances to zoom off at a speed of Here are the images of the code: object_Log For a full discussion please watch the video. What follows is just a brief explanation and a screenshot of the GameMaker Studio 2 code.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |