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

#1 2010-05-17 20:18:47

Greentabby55
Scratcher
Registered: 2010-05-04
Posts: 50

I need help on sensing/variables.

How do I make it so that when a sprite touches another sprite, the score gets increased by to?

Offline

 

#2 2010-05-17 20:25:24

floatingmagictree
Scratcher
Registered: 2008-10-21
Posts: 1000+

Re: I need help on sensing/variables.

Make a variable called score, and then put this on Sprite 1:

Code:

<when green flag clicked>
<set [score] to 0>
<forever>
[]<if <touching [Sprite2]>>
[][]<change [score] by (2)>
[][]</if>
[]</forever>

Last edited by floatingmagictree (2010-05-17 20:26:10)

Offline

 

#3 2010-05-17 21:16:08

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: I need help on sensing/variables.

Why is this in Advanced topics?


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#4 2010-05-18 07:23:27

TheGameMaster1231
Scratcher
Registered: 2009-07-24
Posts: 1000+

Re: I need help on sensing/variables.

This Needs To Be Moved. I'm Telling The Scratch Team Now...

Offline

 

#5 2010-05-18 07:28:29

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: I need help on sensing/variables.

Good because this isn't very advanced at all.


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#6 2010-05-18 08:17:09

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: I need help on sensing/variables.

This isn't a really advanced topic... I think it would feel more cozy in All About Scratch. :3


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#7 2010-05-18 10:25:36

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: I need help on sensing/variables.

FMT"s method is good, but it'll keep increasing speedily. If you want it once to change(like I do), then here:
http://i44.tinypic.com/xoi7tz.gif


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#8 2010-05-18 18:47:15

infinitum3d
Scratcher
Registered: 2009-05-10
Posts: 100+

Re: I need help on sensing/variables.

Thread Hijack/

Sorry to hi-jack the thread, but I LOVE greatdane's Yoda quote.

/Thread Hijack

Last edited by infinitum3d (2010-05-18 18:47:35)

Offline

 

Board footer