top of page

Animation/Platform Game

LT: I can create an animated character jump game.

This lesson will teach students how to create a game using animation and have their character jump on platforms.

Students will use their characters and sprites created in the previous lesson to create a game with animation and jumping.  The character will have an idle, walk and jump animation.  The pick up will have an animation and then the object that kills the character will also have an animation.

1. Start the Project

LT: I CAN SET UP MY UNITY PROJECT

Students will access the Unity PlayGround and download the assets in order to create this game.

2. Import Sprites and Build the Scene

LT: I CAN ADD MY SPRITES TO THE PROJECT WINDOW AND HIERARCHY

IN THIS VIDEO, LEARN HOW TO IMPORT YOUR SPRITES TO THE PROJECT AND HOW TO BEGIN BUILDING YOUR SCENE.

ANIMATE PICK UP AND KILL OBJECT

USE THE FOLLOWING VIDEOS TO CREATE YOUR ANIMATIONS FOR YOUR KILL OBJECT AND FOR YOUR PICK-UP OBJECTS.  EACH VIDEO IS BASED ON A PARTICULAR TYPE OF SPRITE.

ANIMATE STATIONARY OBJECT

LT: I CAN ANIMATE A SPRITE IN UNITY

IF YOUR SPRITE IS SIMILAR TO MY JEWEL USE THIS VIDEO TO LEARN HOW TO ANIMATE AND ADD A COLLIDER

ANIMATE OBJECT THAT HAS MOVING PARTS

LT: I CAN ANIMATE A SPRITE IN UNITY

IF YOUR SPRITE IS SIMILAR TO MY FLOWER USE THIS VIDEO TO LEARN HOW TO ANIMATE AND ADD A COLLIDER

ANIMATE OBJECT THAT CHANGES SIZE

LT: I CAN ANIMATE A SPRITE

USE THIS VIDEO TO ANIMATE A SPRITE THAT CHANGES SIZES.

CONTINUE MAKING YOUR GAME

Add Character

LT: I CAN ADD MY CHARACTER TO THE SCENE

USE THE CHARACTER YOU CREATED AND ADD INTO THE SCENE

Create Bones on Character

LT: I CAN USE CODES TO CREATE GAME PLAY

CREATE THE PREFAB OF THE ENEMY SHIP AND THEN CREATE THE SPAWNER

Create Limb Solutions

LT: I CAN USE CHARACTER BONES TO MAKE THE CHARACTER MOVE MORE NATURAL

USING THE IK SOLVERS WE DOWNLOADED EARLY ON IN THE PROJECT, WE WILL CREATE TARGETS FOR THE BONES TO BE ABLE TO MOVE SMOOTHLY DURING THE ANIMATION FAZE.

Create Animations

LT: I CAN ANIMATE MY CHARACTER

USE THE ANIMATION WINDOW TO CREATE 3 DIFFERENT ANIMATIONS FOR YOUR CHARACTER.

Animator

LT: I CAN USE THE ANIMATOR 

LEARN HOW TO USE THE ANIMATOR TO TELL YOUR CHARACTER WHEN IT SHOULD USE THE DIFFERENT ANIMATIONS

Begin Coding

LT: I CAN CODE TO MAKE THE PLAYER MOVE

This step is similar to every step you have done so far in class. Our movement will only use the horizontal. Then the coding is going to change to add velocity??

Code Flip

LT: I CAN CODE TO MAKE THE PLAYER FLIP DIRECTION

As the character moves across the board, he will walk forward and backward. This step is to add i in code for the character to flip directions. If the character is walking right the character is facing right. If he is walking left, the character is facing left.

Code Jump

LT: I CAN CODE A JUMP

This step is where the character will be able to jump. More code will be added for the jump since your character will continue to jump in air.

Coding Animation

LT: I CAN CODE THE ANIMATIONS FOR MY CHARACTER

When the scene was built, the game designer added in three animations for the character: Idle, Walk, and Jump. This step will allow the character to access each animation based on a rule we assign to the animation.

CODING FOR GROUND

LT: I CAN CODE TO MAKE A SINGLE JUMP

In the previous step, the character was able to jump, but kept jumping. This coding assignment will set rules for when the character can jump and when the character can't jump.

GROUND CHECK

LT: I CAN CODE TO HAVE CHARACTER CHECK FOR GROUND WHEN JUMPING

THIS VIDEO WILL HELP SET UP FOR THE CODE TO CHECK FOR THE GROUND TO ALLOW THE PLAYER TO JUMP

Coding PickUp and Text

LT: I CAN CODE TO HAVE A SCORE AND YOU WIN TEXT

Just as every other project students have made, they will code in for the PickUp, Text and Timer. Your coding challenge is to use your previous assignments to figure out how to add in the code for each of the three steps.

LEVEL 2

LT: I CAN CREATE A 2ND LEVEL AND CODE TO MAKE IT CHANGE LEVELS

CREATE YOUR SECOND LEVEL - EASIEST WAY IS TO SAVE THE PLAYER AS A PREFAB AND ANY OTHER ITEMS SO YOU DO NOT NEED TO REBUILD EVERYTHING.  ADD IN NEW PLATFORMS, GROUND AND BACKGROUND.  THEN USE THE VIDEO TO CODE TO GO TO THE NEXT LEVEL

CHOOSE A DIFFERENT SONG FOR EACH LEVEL OF THE GAME.  ADD IN THE SOUND AND MAKE SURE TO LOOP IT

Add Music to all levels

LT: I CAN ADD MUSIC TO MAKE GAME MORE INTERESTING

10. BUILD THE GAME

LT: I CAN CREATE A WEBGL BUILD

AS IN OTHER GAMES, CREATE THE BUILD OF THE GAME AS A WEBGL TO BE READY TO PUBLISH ONLINE

11. PUBLISH THE GAME

LT: I CAN PUBLISH MY GAME TO THE WEB

PUBLISH THE GAME TO UNITY PLAY AND TURN IN

12. SCREEN RECORD 

LT: I CAN SCREEN RECORD MY GAME

PLAY YOUR GAME WHILE RECORDING THE SCREEN.  WHILE THE RECORDING IS GOING, TALK ABOUT HOW YOU MADE YOUR GAME.  TURN IN THE RECORDING WHEN FINISHED.

bottom of page