Yeah
When Clock Timer
do : Set GolfBall Speed to : Get speed - #
If get speed < # then
Set Speed to 0
I'm going to make it a fling movement to represent the actual swing.
I have trouble doing fling motions myself.
Consider a timed press behind the ball to determine both direction and power.
Keep a global variable for touchdown ms and subtract from Clock1.SystemTime to get length of time held down.
You could add a power bar to the side to help calibrate power.
Also,
how do you make it where it's like:
Make a list MathBlock MathBlock
instead of:
Make a list MathBlock
MathBlock
Probably just different devices
That's a right click option in the blocks editor, available on the block level.
Look for External vs Inline.
I'm stuck using a chromebook, so is it the same thing across all devices?
on doing what ?
Actually coding
blocks coding is more or less the same on all devices. I can develop on a chromebook without issue.
You need to show your blocks, explain what your problem is.
IDK how to find External vs Inline
Remind us how you right click on a ChromeBook?
Ok. Thanks! I did a stupid
Can you help me with the other 2 maps?
All you need is a list of file names of the image files in the Media folder.
Use a list index 1-3 to select the next course.
I assume you used the same colors for each image, right?
NOPE lol
I used VARIETY
If you want to use the same green level lookup facilities as I provided for the first course, you have options:
-
Go back to your art program and use flood fill to copy colors from the original gold course image to the new images.
-
prepare new color to speed mapping tables using my original app code, taking note of the green levels in your new image areas and adjusting the hard wired tables. If you are going to use a bunch of image files, each will have to be adjusted with its color to speed mapping table.
-
Alternatively, plot the speeds versus green color levels on some graph paper, and draw a line through the points, to get a linear relation mapping green level to speed. Take its slope a and its y-axis intercept b to code an AI2 value procedure y=ax+b to map green level to speed over the entire domain of green levels (0-255).
Got that?