Join Steven Moser for an in-depth discussion in this video Floating blocks obstacle, part of Building a Physics-Based Platformer in GameMaker Studio Using GML.
- [Instructor] Let's use our new water spawner…to create an obstacle.…How about we fill up a pool with some water…that has blocks on top of it that float…for the player to jump on.…To make our pool fill up slowly,…we'll need the water to spawn more slowly,…so let's open up our water spawner object,…open up the create event,…and I'll comment out a repeat loop here…we'll set this up slightly differently.…I'll do a slash star to comment out everything beneath it.…And instead of creating our particles here…in the create event, we'll do it in an alarm…so that every time the alarm goes off,…a new particle is created.…
Let's set up a count variable that we'll use…to make sure we don't keep creating particles…over and over again forever.…We'll set that to zero.…And we'll set our alarm, number zero to two.…This way, our alarm will go off…every two frames in the game.…Let's close out our create event,…add an event, choose alarm, and alarm zero.…In the control tab, we'll drag in some code,…and in here, we'll create particles.…
- 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.