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

#1 2011-04-06 14:11:40

clrobertson
New Scratcher
Registered: 2011-04-06
Posts: 3

Roll-Over for Numbers

I'm working on a SCRATCH game, where students are playing a boy/girl who has to walk around town and find equivalent numbers.  They're given a fraction, then have to find the equivalent decimal, percent, and simplified fraction.

I want to make it so that there are incorrect numbers out there, and only when they walk over the correct answer, it adds to their score.  Any suggestions on how to do this?  I thought about the "touching color," but the kids would figure out to match the color, not the number.  Thoughts?

Offline

 

#2 2011-04-06 15:12:30

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Roll-Over for Numbers

Try using the "touching sprite" block so that each fraction is a sprite. Otherwise you can use the x and y position reporters to create a square on your screen that contains the correct answer

<(x position) > [-10] and (x position) < [10] and (y position) > [-10] and (y position) < [10]>

This is should probably be moved to "all about scratch" if you're still unsure :)

Last edited by sparks (2011-04-06 15:12:43)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#3 2011-04-06 15:56:12

clrobertson
New Scratcher
Registered: 2011-04-06
Posts: 3

Re: Roll-Over for Numbers

Oh, that makes perfect sense!  Not sure why I didn't think of the touching sprite.  Thanks!

Offline

 

#4 2011-04-06 16:42:12

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: Roll-Over for Numbers

No problem  smile


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

Board footer