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

2019/1/3

Bounce off a round player

2
3
4
5
6
Randomness Randomness

2019/1/10

#
can I get "your" project to test whether it works better?
danpost danpost

2019/1/10

#
Randomness wrote...
can I get "your" project to test whether it works better?
It is totally revised -- but essentially does what I thought you were trying to do. I do not know if you would understand half of what I did. And I do not think, being yours is a school project, that I should.
Randomness Randomness

2019/1/10

#
I'm sure that I understand the code, just have sometimes problem with english language. Also there other thngs I'd like to add in the game so it would be nice if I can take a look at "yours"
danpost danpost

2019/1/10

#
Randomness wrote...
I'm sure that I understand the code, just have sometimes problem with english language. Also there other thngs I'd like to add in the game so it would be nice if I can take a look at "yours"
I could temporarily have it uploaded here so you can test it out. But, I will not include the source code. Would that work?
Randomness Randomness

2019/1/10

#
alright! yes
Randomness Randomness

2019/1/10

#
thank you! But when you're moving with the ball and you touch another player it's still really buggy.
danpost danpost

2019/1/10

#
Randomness wrote...
thank you! But when you're moving with the ball and you touch another player it's still really buggy.
Looks like there was a fight over control of the ball -- and someone won; or, confusion between two team-mates. The ball is not going to be smashed -- it has to go somewhere.
Randomness Randomness

2019/1/11

#
so like the angle between the two players?
danpost danpost

2019/1/11

#
Randomness wrote...
so like the angle between the two players?
I think the end result is in favor of the one pushing the ball; or 50/50 if both are pushing.
Randomness Randomness

2019/1/11

#
I deleted your 1 and 4 line so it doesn't stick to the player and the bounces are perfect. but when I move player 2 and it hits the ball the ball bounces off the wrong direction, How can I fix this?
danpost danpost

2019/1/11

#
Randomness wrote...
I deleted your 1 and 4 line so it doesn't stick to the player and the bounces are perfect. but when I move player 2 and it hits the ball the ball bounces off the wrong direction, How can I fix this?
Remove the minus sign in the replacement code only for player 2.
Randomness Randomness

2019/1/11

#
Can you upload your project with instant bouncing (without sticking) and that the bounce of player 2 also works in the right direction? Would love to see it!
danpost danpost

2019/1/11

#
Randomness wrote...
Can you upload your project with instant bouncing (without sticking) and that the bounce of player 2 also works in the right direction? Would love to see it!
Do you mean you want me to upload again that which I just had up and removed?
Randomness Randomness

2019/1/11

#
Almost, it would be great if you edit and upload the project so that the ball immediatly bounces off when you hit him with your player instead of sticking on the player. Makes it a lot easier for me to code it when I see how it‘ll look like.
danpost danpost

2019/1/11

#
Randomness wrote...
Almost, it would be great if you edit and upload the project so that the ball immediatly bounces off when you hit him with your player instead of sticking on the player. Makes it a lot easier for me to code it when I see how it‘ll look like.
The thing is -- the ball moves slower than a player. It cannot actually bounce when being pushed.
There are more replies on the next page.
2
3
4
5
6