This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Requests
  •  » 1p ping-pong game where I can change the lag time.

#1 2012-08-26 19:05:07

freezy08
New Scratcher
Registered: 2012-08-26
Posts: 1

1p ping-pong game where I can change the lag time.

Hello,

I have absolutely no knowledge on how to create a game.  However, I am conducting an experiment and need to control specific aspects of a program for my manipulation.  I would like to have an easy one player ping-pong game created.  One in which the paddle "listens" 66% of the time, and another in which the paddle works perfectly, with no glitches, 100% of the time. 

By "listens" I mean that when the participant presses the arrow to move the paddle right, for example, it will actually only move 66% of the time.  If lag is easier to control, then it could be that the paddle responds promptly for 66% of the time but lags dramatically the other 33%.

Anyone think they could help me out or even just give me some direction on where to get started or who else I could talk to???

Thanks!

~Jessica

Offline

 

#2 2012-08-27 10:53:50

Scratcher456
Scratcher
Registered: 2010-12-04
Posts: 58

Re: 1p ping-pong game where I can change the lag time.

It's actually a lot easier to make it only work sometimes. What you do is:

when gf clicked
go to x: (whatever) y: (whatever)
forever
 if <<key [right arrow v] pressed?> and <not <(pick random (1) to (3))=[1]>>>
 change x by (whatever)
end
 if <<key [left arrow v] pressed?> and <not <(pick random (1) to (3))=[1]>>>
 change x by (whatever)
end
end
Wherever it says 'whatever', you can just put whatever values you like in there.

Last edited by Scratcher456 (2012-08-27 10:58:39)


Mining diamonds, mining diamonds, mining diamonds...

Offline

 
  • Index
  •  » Requests
  •  » 1p ping-pong game where I can change the lag time.

Board footer