Project 536: Skyjumper

6. Create a function for upgrading the player

Write a function called "upgrade" with a single parameter, "other" We'll fill out the rest of the function in the next few steps.
Starting point file for this challenge

Steps

1. Create a function called "upgrade"

Tell the computer you're starting a new function by just typing "function." Then, write the name of your new function, which we'll call "upgrade" because that's what the function will do! 
function upgrade

2. Create a parameter called "other" for your function

A parameter helps functions be a little more specific. In this case, we'll have a function called "other" and "other" is going to keep track of something that runs into your powerup. 
function upgrade (other)

3. Hit return to create an "end" to your function

Anything written in between the word "function" and "end" will be the instructions to open your door! 

function upgrade (other) end