Bonus Features 3 - Share your Work

Exercise

·

Beginner

·

+60XP

·

60 mins

·

Unity Technologies

Bonus Features 3 - Share your Work

In this tutorial, you can go way above and beyond what you learned in this Unit and share what you’ve made with your fellow creators.

There are four bonus features presented in this tutorial marked as Easy, Medium, Hard, and Expert. You can attempt any number of these, put your own spin on them, and then share your work!

This tutorial is entirely optional, but highly recommended for anyone wishing to take their skills to a new level.

Languages available:

1. Overview

This tutorial outlines four potential bonus features for the Run and Jump Prototype at varying levels of difficulty:

  • Easy: Randomize obstacles
  • Medium: Double jump
  • Hard: Dash ability and score
  • Expert: Game start animation

Here’s what the prototype could look like if you complete all four features:


The Easy and Medium features can probably be completed entirely with skills from this course, but the Hard and Expert features will require some additional research.

Since this is optional, you can attempt none of them, all of them, or any combination in between.
You can come up with your own original bonus features as well!

Then, at the end of this tutorial, there is an opportunity to share your work.

We highly recommend that you attempt these using relentless Googling and troubleshooting, but if you do get completely stuck, there are hints and step-by-step solutions available below.

Good luck!

2. Easy: Randomize obstacles

Randomly select from a variety of obstacles to spawn.

You could even have piles of obstacles instead of single ones, forcing the player to pay closer attention.

3. Medium: Double jump

Program a double-jump, so the player can jump one additional time once already in the air. Along with this, you could create a new extra tall obstacle that requires a double-jump (maybe two obstacles stacked on top of each other).

This adds a completely new gameplay mechanic. And who doesn’t love a double-jump?

4. Hard: Dash ability and score

Add a “dash” / “super speed” ability where, if the player is holding a certain key, the player runs faster through the world, matched by a faster running animation. Use Debug.Log to track the player’s increasing score from 0, which should increase twice as fast during “dash” mode, and then stop counting when the game is over, reflecting the player’s score.

This adds a completely new strategic element to the game, where players might implement different tactics to maximize their score.

5. Expert: Game start animation

Rather than your player starting off running in place with the background moving, have the player walk into frame from the left, then begin running in place alongside the moving background.

This gives the player a moment to collect themselves rather than being thrown straight into gameplay.

6. Hints and solution walkthrough

Hints:

  • Easy: Randomize obstacles
    • Convert the prefab holder inside the SpawnManager to an array.
  • Medium: Double jump
    • Try using a boolean to limit the player to double-jumping once
  • Hard: Dash ability and score
    • Try using a boolean to determine whether the player is running fast
  • Expert: Game start animation
    • Try lerping the players position.

Solution walkthrough

If you are really stuck, download the step-by-step solution walkthrough.

Note that there are likely many ways to implement these features - this is only one suggestion.

Optional Step

7. Share your work

Have you implemented any of these bonus features? Have you added any new, unique features? Have you applied these new features to another project?

We would love to see what you've created!

Please take a screenshot of your project or do a screen-recording walking us through it, then post it here to share what you’ve made.

We highly recommend that you comment on at least one other creator's submission. What do you like about the project? What would be a cool new feature they might consider adding?

Please login to submit

Submission Gallery

Junior Programmer - Prototype 3

Junior Programmer - Prototype 3

Here is the prototype 3 from the Junior Programmer Pathway, with balloon challenge, bonus features and some extra details. You can play it here -> https://play.unity.com/en/games/0079cbfe-df8f-44f9-89e0-36a59d231ea4/junior-programmer-prototype-3 Enjoy!

A
A_J_V
12
0
A Farmer Walks in a Forest (Extra Features + Crouch Mechanic + Melancholic Music)

A Farmer Walks in a Forest (Extra Features + Crouch Mechanic + Melancholic Music)

"I just wanted to relax but then a superior entity started placing dangerous obstacles in my path" - The Farmer (fell you bro, that's just life) The platform wouldn't let me upload for some reason so yeah youtube (also found about this when I was about to do the one for unit 4)

W
white_shadows
72
0
nivel medio

nivel medio

hasta nivelmedio lo hice

A
Aniokku
64
0
Endles Farmer Run

Endles Farmer Run

URL Unity Play: Unity Play | Endles Farmer Run game https://play.unity.com/en/games/1ab818e9-a199-4015-8bec-4f3781413f77/runfarmercomplete Bonus Features 3 all levels complete.

B
BlueMonkey02
64
0
Town Rush

Town Rush

Luckily, this bonus challenge felt easier than the previous one. I only used the cheatsheet for the starting animation, because I couldn't figure it out at the end...

S
Sid_P
107
0
Jungle Jumper

Jungle Jumper

A game where players control a man running and jumping obstacles. Use Space bar for jumping and left Shift key for enabling dash ability.

S
sayantande612
91
0
Jumper Game

Jumper Game

Dude runs to get food before lunch ends

J
juban42
70
0
Jump Man

Jump Man

Jump Man is late to work! Dash and jump over obstacles to get to where you need to be before the boss notices you're not there. Boy work sure seems far away. Jump = Spacebar Dash = Left Shift

S
Scaramooshe
97
2