GameMaker can draw text to the screen using the Draw GUI event. We the player's points to the screen with a custom font and color.
- [Instructor] A game isn't much of a game without points,…so in this video, let's draw a score to the screen.…In order to draw text, we need to create a font.…Right-click on fonts in the resource tree,…and choose create font.…I'll maximize the window,…and I'll set a name of fnt_score.…To set the actual font, we use the dropdown…to select the font that we want.…In this case, I'm going to use OCR A Extended.…You can use whatever font you prefer.…You can see a preview of the font on the right.…It's a little small, so let's increase the size…from 12 to 60.…
I'm also going to check bold, and then I'll hit OK.…And let's create a new object for this.…Right-click on objects, and choose create object,…and change the name to OBJ_score.…We don't need to select a sprite for this.…We're going to draw the text to the screen…using a Draw GUI event.…First, add an event for the create event,…and then add a new script.…Maximize the window, and give it a name,…initialize variables.…Since we are dealing with a graphical user interface,…
- Creating a new GameMaker project
- Creating sprites
- Importing existing images
- Adding collisions
- Playing sounds
- Designing game levels
- Creating start and game over screens
- Exporting the game
Skill Level Beginner
iOS Game Development with Swift 3 and SpriteKitwith Todd Perkins2h 52m Intermediate
1. Getting Started
2. The Game Pieces
3. The Gameplay
4. The Game Cycle
5. Finishing a Project
- 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.