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

2020/1/15

How to smoothly move images out and into world?

alkwmd21ij alkwmd21ij

2020/1/15

#
I want to move an actor into the screen. Since the World class has its borders already set, this is possible, but the actor would just pop up halfway into the screen and not smoothly walk inside. Is there any fix to this?
Super_Hippo Super_Hippo

2020/1/15

#
You can use the four parameter constructor when creating the world. If you add a ’false’ at the end (after width, height and cell size), your actors can be outside the x=(0,width) and y=(0,height) limits.
alkwmd21ij alkwmd21ij

2020/1/15

#
Thanks!
You need to login to post a reply.