This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-10-28 22:38:00

shiguy101
Scratcher
Registered: 2010-11-17
Posts: 1000+

Pong (MESH) help

this is my first mesh project but I can't git the ball to work please help.
link

Offline

 

#2 2012-10-29 09:11:04

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Pong (MESH) help

Could you tell us what is wrong?

Offline

 

#3 2012-10-29 09:52:22

shiguy101
Scratcher
Registered: 2010-11-17
Posts: 1000+

Re: Pong (MESH) help

I can't get the ball to cordanet betwen to two project

Offline

 

#4 2012-10-29 14:28:52

shiguy101
Scratcher
Registered: 2010-11-17
Posts: 1000+

Re: Pong (MESH) help

bump

Offline

 

#5 2012-10-29 16:52:28

Magnie
Scratcher
Registered: 2007-12-12
Posts: 1000+

Re: Pong (MESH) help

First you want to establish which client is going to control the ball's movement (this would normally be the host). You can use a similar method to the red/green controls with the ball. You can use a variable "ball_controller" and set it the the color of the player who is controlling it (ball_controller=red or ball_controller=green) then use the if else statement to check if they are the ball controller or not. If it's true, run the infinite loop that moves the ball. It not, just have it always go to the sensor location.  smile

Offline

 

#6 2012-10-29 19:05:14

shiguy101
Scratcher
Registered: 2010-11-17
Posts: 1000+

Re: Pong (MESH) help

Magnie wrote:

First you want to establish which client is going to control the ball's movement (this would normally be the host). You can use a similar method to the red/green controls with the ball. You can use a variable "ball_controller" and set it the the color of the player who is controlling it (ball_controller=red or ball_controller=green) then use the if else statement to check if they are the ball controller or not. If it's true, run the infinite loop that moves the ball. It not, just have it always go to the sensor location.  smile

yay Thank you so musc now it works.

Offline

 

Board footer