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

2020/4/23

How to change Actor to SmoothMover

macaroon72 macaroon72

2020/4/23

#
How can I change my Actor to SmoothMover? I am doing a falling leaf project. My code for this part of the project is below... public class Leaf extends SmoothMover { private static int NumLeaves; private int timer = ((int)(Math.random()*5)); private double dx; private boolean fallingRight; int x = ((int)(Math.random()*2)+1);
danpost danpost

2020/4/23

#
You need to import the SmoothMover class provided by greenfoot into your project.
macaroon72 macaroon72

2020/4/23

#
How do I do this?
macaroon72 macaroon72

2020/4/23

#
Actually, I think I got it! Thanks!
You need to login to post a reply.