This site requires JavaScript, please enable it in your browser!
Greenfoot back
LarsisYoloo
LarsisYoloo wrote ...

2018/3/8

Falling Objects

LarsisYoloo LarsisYoloo

2018/3/8

#
Hello again, I want to make a level in which you catch fruits that come falling from the sky. I want to know how u can make the different fruit fall randomly from the sky from random positions. Any idea how I can do this?
Super_Hippo Super_Hippo

2018/3/8

#
Create the objects from the act method of the world. Create a random number and check if it is zero, if yes, create a random fruit with a random x value and a y value of 0 (or a bit negative).
You need to login to post a reply.