You can create a simple UI to display the number of coins collected and the time for this level. This will utilize Game Maker GUI functions.
- [Instructor] Let's wrap up our game…by creating a finish line that will allow our player…to complete the level.…I'll open up the tiles folder…and duplicate our trigger object.…Our finish line will act in a similar manner,…so we can use this as a template.…I'll name it o_finish_line,…we can leave all the rest of the settings the same.…Let's go ahead and open up the initialization code.…We can leave the debug visible, that's fine.…Let's create a variable called finished…and we'll set it equal to false.…
This is the kind of variable we would probably create…in some kind of global game object like a game controller,…but we'll just create it here and call it global.…We won't really be using this functionality now,…but it's what we would do…if we were making a more inclusive game.…I'll close this out.…Open up the code for our collision.…We're not triggering anything more,…so we can get rid of our with statement.…When we collide, we'll just take our global.finished…and set it equal to true.…
After that happens, let's show a message on screen for now.…
- Setting up basic game components
- Creating the player object
- Using Finite State Machines
- Making the player duck
- Creating physics fixtures in code
- Creating physics obstacles
- Box2D liquid physics
- Creating particles that behave like water
- Creating a floating blocks obstacle
- Creating a swinging chain obstacle and a rope bridge
- Adding the finishing touches
Skill Level Beginner
1. Set Up Basic Game Components
2. The Player Object
3. Create Physics Obstacles
4. Liquid Physics
5. Decorate the Level
6. Finishing Touches
Next steps1m 2s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.