Just drag the blue player to bounce the volleyball over the net.
If the ball hits the ground, a point is scored by the opponent.
Play the game then look at the procedure below.
The red player tracks the position of the volleyball and attempts to:
Here is an App Inventor version of the popular Slime Volleyball game.
- hit it back over the net
- keep the ball from hitting the ground
- stay withing the bounds of it's side of the court
But when I look at the red player's movements during game play, they appear to be intelligent, or planned.I just thought it was interesting that you can get that kind of effect with so few blocks and such simple logicAs a side effect of the above procedure, if the ball hits the ground it is stopped, but the red player keeps trying to move under it to push it over the net.That results in an amusing jiggle back and forth that looks like a fit of frustration at missing the ball.I could have fixed this by damping the oscillations, but decided it is too cute to fix!---sf
--
(you have received this message from the App Inventor Developers Library)
---
You received this message because you are subscribed to the Google Groups "App Inventor Developers Library" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-develope...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-developers-library+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-developers-library+unsubscribe@googlegroups.com.