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

#1 2010-06-16 13:17:30

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Point counter

I am stuck trying to create a point system that works, my current one keeps messing up and making the points change by 200 instead of 100.

please help it is driving me MAD!!!!!

the one I am using at the moment is:

when green flag clicked
set points to 0
forever if <touching sprite 2>
hide
change points by 100

But it doesn't work...


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#2 2010-06-16 13:20:16

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: Point counter

Try adding:

"wait until <not <touching sprite2> >"

under the "change points by" block  smile


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#3 2010-06-16 13:25:58

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: Point counter

I've tried your suggestion but STILL nothing seems to be happening...

Last edited by melikecheese (2010-06-16 13:26:33)


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#4 2010-06-16 13:28:51

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: Point counter

Oh no!  sad  Try using the seperate "forever" and "if" blocks, instead of "forever if", maybe? I'm not sure...  hmm


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#5 2010-06-16 13:31:03

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: Point counter

thanks but I've tried that before

Last edited by melikecheese (2010-06-16 13:44:05)


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#6 2010-06-16 13:55:48

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: Point counter

Ive had that prblem before, cant remeber how ot fix it but how about changing it by 50?


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#7 2010-06-16 13:57:56

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: Point counter

Thanks for the help but now it is moving up by 150 instead.


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#8 2010-06-16 14:01:15

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: Point counter

Is there a change points by block in sprite2?


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#9 2010-06-16 14:09:34

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: Point counter

Sperry wrote:

Is there a change points by block in sprite2?

No.


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#10 2010-06-16 14:10:34

Sperry
Scratcher
Registered: 2010-03-09
Posts: 500+

Re: Point counter

melikecheese wrote:

Sperry wrote:

Is there a change points by block in sprite2?

No.

Hmmm.... I dont know then. Sorry.


http://img709.imageshack.us/img709/3252/gobanim2.gifhttp://ls.gd/bo

Offline

 

#11 2010-06-16 14:11:38

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: Point counter

Oh well, thanks anyway.


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#12 2010-06-16 15:25:30

fg123
Scratcher
Registered: 2008-11-13
Posts: 1000+

Re: Point counter

Can you upload the project?


Hai.

Offline

 

#13 2010-06-16 15:47:01

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: Point counter

It is http://scratch.mit.edu/projects/melikecheese/1129824


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#14 2010-06-17 00:38:42

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: Point counter

Seems to be due to the player sprite's movement amount of 10 steps.
Tested this by changing it to 1 step, dragging the Point sprites directly in front of them, and then walking into them. No matter how many I gathered, they all scored 100 points each.

Fix: In each point sprite, change the <when green flag clicked> script to this...

<when green flag clicked>
<set{ Points }to(0
<wait until> <touching[ Sprite2
<hide>
<change{ Points  }by( 100

ps. cool project, gave me some new ideas  smile

Last edited by Locomule (2010-06-17 00:47:08)


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#15 2010-06-17 10:42:31

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: Point counter

Locomule wrote:

Seems to be due to the player sprite's movement amount of 10 steps.
Tested this by changing it to 1 step, dragging the Point sprites directly in front of them, and then walking into them. No matter how many I gathered, they all scored 100 points each.

Fix: In each point sprite, change the <when green flag clicked> script to this...

<when green flag clicked>
<set{ Points }to(0
<wait until> <touching[ Sprite2
<hide>
<change{ Points  }by( 100

ps. cool project, gave me some new ideas  smile

I've tried it just now and it only works if you drag the point counter to Mr Thing. Plus after only a few tests it's decided to not work at all. Maybe It's my computer.

Last edited by melikecheese (2010-06-17 13:45:15)


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#16 2010-06-17 19:39:08

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: Point counter

Really because when I changed your script to the one I posted, it worked and I was playing it normally, not dragging anything. I did the dragging only to test your script and find the problem, not after I fixed it  smile  Make sure you change enough of the point sprite's scripts that in the game you are running into one with a new script, it will work perfectly.

Last edited by Locomule (2010-06-17 19:41:37)


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#17 2010-06-18 03:00:58

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: Point counter

Tuns out I was reading it wrong but for some reason the stupid things will not work properly some of them still change by 200, but if I click on the bad ones and then play it works fine.

Last edited by melikecheese (2010-06-18 03:18:54)


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

#18 2010-06-18 04:08:25

melikecheese
Scratcher
Registered: 2010-06-09
Posts: 500+

Re: Point counter

Solved the above problem and now it works fine. Thanks for all your help everyone. Am now working on a new project!


http://i51.tinypic.com/987rb5.jpg
I am Dave! Yognaught.

Offline

 

Board footer