This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Advanced Topics
  •  » How to make it so it tells you how many times you hit the background

#1 2009-08-17 21:16:28

jstua23
Scratcher
Registered: 2009-08-16
Posts: 10

How to make it so it tells you how many times you hit the background

does any1 have any ideas of how to do that cause i am stumped. i am guessing that the script would be on the backgound one..... cause it is really annoying not knowing how to do it grrrrrrrrrrrrrrrrrrrrrrr and i think it would be in variables as well but i have no idea so any help would b appreciated  smile   tongue


Fox, Unit And Dc Own !!!!!!!!!!!!!!!!!!!!!!!!!

Offline

 

#2 2009-08-17 21:36:09

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: How to make it so it tells you how many times you hit the background

My projects

Scratch Rocks http://scratch.mit.edu/projects/BoltBait/458720

and

Bath Time http://scratch.mit.edu/projects/BoltBait/462250

both count the number of times the user clicks on the background.  These games both take points away from your score if you click on the background.

My project

Fish Tank http://scratch.mit.edu/projects/BoltBait/513937

has some code for when the user clicks on the background.

I hope these examples help you!


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

#3 2009-08-17 21:40:16

jstua23
Scratcher
Registered: 2009-08-16
Posts: 10

Re: How to make it so it tells you how many times you hit the background

thx mate  smile


Fox, Unit And Dc Own !!!!!!!!!!!!!!!!!!!!!!!!!

Offline

 

#4 2009-08-17 21:57:31

jstua23
Scratcher
Registered: 2009-08-16
Posts: 10

Re: How to make it so it tells you how many times you hit the background

it wouldn't download the script  sad  couldn't u just tell me the thing that made it do that?
tongue


Fox, Unit And Dc Own !!!!!!!!!!!!!!!!!!!!!!!!!

Offline

 

#5 2009-08-18 01:15:45

WeirdF
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: How to make it so it tells you how many times you hit the background

Make a variable called 'Background Clicks', then do this script:
[blocks]<when[ Stage ]clicked>
<change{ Background Clicks }by( 1
[/blocks]
Hope that helps!

Last edited by WeirdF (2009-08-18 01:17:25)


http://i.cr3ation.co.uk/dl/s1/gif/847032b8a331def77529b6a0384db1fe_handfingers.gif

Offline

 
  • Index
  •  » Advanced Topics
  •  » How to make it so it tells you how many times you hit the background

Board footer