How to Make a Bank with Interest- Difficulty 🟧 or 6.5/10

If the difficulty is 3.5/5 not a 4/5 I would replace the red square with an orange.

-FC

9 Likes

ok i’ll do that


7 Likes

nice guide!
also, how did u make the arrow thing that points to the “first dropper” (is it waypoint)

6 Likes

it would have to be @Pika_Pokemon (very nice guide btw)

6 Likes

It’s a waypoint


6 Likes

Interesting idea! You could also use compound interest formulas (a = p(1+r/n)^(n*t) when a is the updated value, p is the initial value, r is the interest rate (1% = 0.01), n is the number of times the interest is compounded in a given time period (usually a year, but can be changed to suit your scenario), and t is the number of time periods (years) in a given scenario) to allow for more complex calculations.

For example, $2500 being deposited in the bank for 300 seconds (compounded every minute) with an interest rate of 5% would be represented as a = 2500((1+0.05/1)^(1*5)) and would be returned as $3,190.70 once removed from the bank. Alternatively, if you don’t want to find a predetermined amount of time to reference (like 60 seconds) and round down to find that value (note that rounding down works because the 5 in my equation would become 0 and anything to the power of 0 is 1 - this ensures that you don’t accidentally multiply the starting value by 0 and lose all your money), you could use continually compounding interest to constantly update that value: a = p*(2.7183^(r*t))

Input the starting value as p, the interest rate as r, and the number of seconds as t. Our previous example would be represented as a = 2500*(2.7183^(0.05*5)), which would return a value of $3,210.06 - note that you still have to round down to find the nearest minute value (because the original equation uses t to represent years and we’re just changing it to minutes for convenience), but the outputted value is a larger number. Continuous compounding is considered to be the most favorable type of interest compounding because the interest is reinvested into the account more frequently than any other method, so if you want to maximize the amount of money that a user is getting out of the bank at any given time, you might want to consider using that method instead.

Feel free to ask if you have any questions… that was a pretty vague explanation :]

18 Likes

The only reason I didn’t use compound interest is because I was too lazy to make the compound interest system. Also, I like how you used e as the base

6 Likes

I can make an example system for you to reference if you want :p (I’m in class right now and don’t really have anything else to do)… and yes - I substituted it for 2.7183 for convenience, but that’s the way that I personally learned how to do it.

7 Likes

i decided not to compound interest because that’s not really the game. the game is actually just meant to be some funny lil tycoon game and I never considered adding exponential growth or decay in because my algebra skills are bad

5 Likes

Oh, okay… here I am, doing the math, when the point is to not do the math. Originally I was thinking of doing it for the sake of the guide, but that makes sense - good luck with your game, then!

7 Likes

thanks for the gl!!!

6 Likes

This is pretty legit stuff for a game I play with my 5th graders.

I originally, years ago, had them play Gimkit to review material.

Now, I plan on implementing coding lessons with it as well. And I guess I can now expose them to compound interest formulas.

6 Likes

Hey, I learned how to do basic trigonometry (so that I could make rudimentary enemy pathfinding) before I ever learned how to do it in a math class - programming and game design require a fair amount of math, and personally I think making games is a more interesting way of learning about math than typical lessons usually are. You have to explain the formula to someone either way, but if you also explain why it’s important to learn (and what the applications are), you give them a reason to make more of an effort when learning. It certainly seems more exciting than textbooks and worksheets, anyway :]

7 Likes

agreed. i take algebra 1 honors next year, but i already know plenty…

5 Likes

Speaking of that, what math courses are you taking as of now?

4 Likes

Next year will be precalculus, I think. I took accelerated math classes for a while so that I could take computer science classes for all four years of high school, but I’m probably going to take regular classes for a while (so next year’s class will be one year ahead of whatever it would normally be)

7 Likes

noice. (extra characters)


3 Likes

man you guys must be older than me…

5 Likes

im in middle school taking advanced classes… seems like you guys are in high school

6 Likes

Completely agree with you!

4 Likes