You can first create simple obstacles like saws and spikes for your character to avoid. These obstacles don't move or require joints.
- [Instructor] Now that we have our level set up,…let's create the simplest type of obstacle that we can,…which is a static obstacle.…First let's go to the Objects folder,…Parents, and create a new parent object.…We'll call it P_obstacle,…and we'll use this to check for collisions…in our player object with all the obstacles we create.…I'll click OK to close it out.…Let's close that folder.…Right click on Objects, say Create Group.…We'll call it obstacles.…And then that will create a new object called…O_metal_spikes.…
And the sprites.…We'll go to the Obstacles folder, and select Metal Spikes.…I'm gonna check the Uses Physics box…and since we have an irregularly shaped sprite,…I'm gonna change the collision shape to shape…and say modify collision shape.…Since we have shape selected,…we can build a polygon here that will roughly match…the shape of our sprite.…It I left click on the line,…I can add a new node,…but I can only have so many nodes,…and we have to make sure the shape stays convex…for it to work in the physics engine.…
- 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.