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

#1 2012-04-04 21:43:19

Hunted98
New Scratcher
Registered: 2012-04-04
Posts: 1

Variables

I ma trying to make a game but can't make the variable only go up by one every time  sprite 1 hits sprite 2, how can you do this?  Thanks!

Offline

 

#2 2012-04-04 21:45:47

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: Variables

when gf clicked
set [variable v] to [0]
wait until <you're ready> //or 0.5 secs
forever
if <touching [sprite 2 v]?>
change [variable v] by [1]
wait until <not<touching [sprite 2 v]?>>
end

Last edited by TorbyFork234 (2012-04-04 21:46:03)

Offline

 

Board footer