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

2019/4/30

Need Help with falling object and making it rise smoothly when I click on it.

1
2
rycode rycode

2019/5/3

#
ok, ONE last thing My ball when I hit 'run' is going from the mid top of the screen to the middle of the screen, vertically. How would I change this?
danpost danpost

2019/5/3

#
rycode wrote...
My ball when I hit 'run' is going from the mid top of the screen to the middle of the screen, vertically. How would I change this?
You will need to describe the behavior you want, step by step, for your ball.
rycode rycode

2019/5/6

#
i need to? or in my code? {Everything is fine but when I hit run, my ball teleports from the top of the screen to the mid, and then game goes on from there.) If you are unsure, I will be fine, it's just a minor issue. EDIT: I think I have found a workaround, and it most likely will work. again thanks a lot danpost
danpost danpost

2019/5/6

#
rycode wrote...
{Everything is fine but when I hit run, my ball teleports from the top of the screen to the mid, and then game goes on from there.) If you are unsure, I will be fine, it's just a minor issue.
Well, from what you have provided here, I could have just said, "Remove the act method from the class.". This would probably prevent your ball from teleporting to the middle of the screen; but, I am quite sure that would not be adequate for what you want.
rycode rycode

2019/5/6

#
I solved it, in my world subclass, at the end I had "setLocation" method called for. And I also changed the size of the world. Works great now, thanks for everything you did.
You need to login to post a reply.
1
2