I completed Don’t Rush, Be Quiet, but when my hero moves diagonally, he is super super slow. How do I increase his speed?
Howdy and welcome to the forum!
Please post your code and include a screenshot of your equipment, so we can see what’s going on.
Here is my code.
Dodge the cannons and collect 8 gems.
Watch out, cannons are ready to fire!
Move slow along a special pattern to confuse them.
This function returns a value from 0 to 30 (0 <= n < 30)
if n >= 30:
return n - 30
This function should return a value from 0 to 40 (0 <= n < 40)
# Use an if-statement to return the correct value.
if (n >= 40):
n = n - 40
You don’t need to change the following code:
time = hero.time
x = mod30(time) + 25
y = mod40(time) + 10
Sorry, I should have been clearer. Your code needs to be properly formatted, as indentations are critical in determining proper syntax. You can learn how to format your code here: [Essentials] How To Post/Format Your Code Correctly
Also, the hero is supposed to be very slow, hence the level’s title “Don’t Rush, Be Quiet”. But, you are missing both a return statement and an else clause in the second function. You can use the first function as a template…take a close look at your second function and fix it so it is similar to the first.
Oh! Never mind then! I see that now.