We create a new sprite for our ball and set its collision mask. Collision masks define the area of a sprite that GameMaker's collision detection uses to check for object collisions.
- [Instructor] The final major component…to our paddle, brick, and ball game is our ball.…We'll load an existing image for our ball…just like we did in the previous video for our bricks.…Right click on the Sprites folder in the Resource tree,…choose Create Sprite, give it a name of spr_ball,…and click Load Sprite.…In our Assets folder, choose ball.png.…Again we'll modify the collision mask…choosing Full Image for the bounding box,…and ellipse for the shape, click OK.…
We'll hit the center button in the origin area…to put the origin in the center of the image at 12 12.…I like to center all the sprites…unless there's a specific reason not to.…For example, with the brick sprites…we left the origin at zero zero to help us line them up.…Go ahead and click OK to save our new sprite.…As with our other game components,…we'll need to create an object resource.…So right click the Objects folder,…choose Create Object, and we'll give it a name…with obj_ for the prefix and ball for the name.…And as you might have guessed,…
- 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.