You can use your new triggers to create a section of the floor that falls away when the character touches it.
- [Instructor] As you can imagine,…there's a lot of really fun things we can do…in our games with these triggers.…Let's explore one more option…by having a floor fall from underneath our player.…I'm gonna go to Objects, Tiles,…and let's create a block that we can use…to build a floor that will fall away.…I'll create an object, we'll call it o_block,…for our Sprite dropdown, I'll go to Tiles…and select our Block Sprite,…our block will use Physics,…we'll set the Collision Shape to Box,…modify the Collision shape,…and make sure it matches our object,…Looks good.…
I'm gonna set the density to something a little bit lower,…so that our blocks aren't too heavy,…and fall away too slowly,…and we'll set the Parent, the Parents, dynamic.…We don't wanna set it to static,…because we want these to fall away,…and when they fall outside of the room,…we want to make sure they're destroyed.…We'll click okay.…Close up some of these folders here,…and let's go into our Room Editor.…I'll zoom out,…and here between our windows, let's create a little pit.…
- 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.