Alice Assignment 4 -
02-15-2014, 06:47 PM
This was a fairly easy assignment. The hardest part was getting the characters to jump using random numbers but I figured it out a method that worked for me. This is what I did:
1. I created a method called jump for my character.
2. In the method, I had my character move up 1 meter. Then move down 1 meter.
3. I created a variable named distance. I set the value to one.
4. I dragged the distance variable above my character move up.
5. I dragged the random number function to the set value of distance.
6. I changed the move values to distance.
This is what it looked like:
distance set value to random number (min 0, max 1)
character move up distance
character move down distance
|