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

2018/3/14

Slow down one object at a time?

MilesChamomile MilesChamomile

2018/3/14

#
Hello, I was wondering if there was a way to code on Greenfoot to slow down an object without affecting other objects. like, if I try to use speed or delay on one object it affects all the other ones. If there is a way to slow down one object at a time please let me know!
Super_Hippo Super_Hippo

2018/3/14

#
You could make it move slower (decrease a speed variable which is used in the move method in the class) or you could skip every second act cycle or something like that.
danpost danpost

2018/3/14

#
The SmoothMover class or my QActor class (see my Demo Collection) could be used to help in controlling the speed of the actor.
You need to login to post a reply.