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

#1 2011-08-24 14:49:08

ashfm
New Scratcher
Registered: 2011-08-17
Posts: 16

Simple Counter

Hi

Building a simple bat and ball game. Can someone point me in the right direction so that I can add a counter and a timer please.

Thanks.

Offline

 

#2 2011-08-24 14:51:29

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: Simple Counter

ashfm wrote:

Hi

Building a simple bat and ball game. Can someone point me in the right direction so that I can add a counter and a timer please.

Thanks.

What's a counter? Scratch has a built-in timer in the sensing section.

Offline

 

#3 2011-08-24 14:54:41

ashfm
New Scratcher
Registered: 2011-08-17
Posts: 16

Re: Simple Counter

laptop97 wrote:

ashfm wrote:

Hi

Building a simple bat and ball game. Can someone point me in the right direction so that I can add a counter and a timer please.

Thanks.

What's a counter? Scratch has a built-in timer in the sensing section.

Everytime the bat hits the ball the score increases by one.
Cheers

Offline

 

#4 2011-08-24 14:56:25

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: Simple Counter

Ball sprite

Start
Forever if <touching[bat]>
Change [Score] by (1)
Wait Until <Not<Touching[bat]>

Last edited by laptop97 (2011-08-24 14:56:41)

Offline

 

#5 2011-08-24 15:01:10

ashfm
New Scratcher
Registered: 2011-08-17
Posts: 16

Re: Simple Counter

Thanks laptop97

Offline

 

Board footer