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

#1 2008-03-30 19:55:35

pcallil
Scratcher
Registered: 2008-03-30
Posts: 1

Displaying answers to sums

Hi all,

Just starting on Scratch myself and this question has come from a school in India that I'm in contact with.  I put them on to Scratch and they've gone ahead of me quickly!

"One thing is a puzzle which the teachers keep asking me so I am asking you!
If you go to the number menu and add two numbers e.g. 6 + 4,  where is the
result displayed?"

Any help gratefully received.

Philip Callil

IT Faculty Head
Xavier College

Melbourne Australia

Offline

 

#2 2008-03-31 03:02:51

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: Displaying answers to sums

The result is not displayed, by default.  If you want to display the result, you need to either put the addition into a "say" or "think" box on a sprite, or put it into a "set variable to" block with the variable displayed on screen.

(You can also do it via sprite costume changes, but one step at a time, eh?)


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#3 2008-03-31 03:05:34

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: Displaying answers to sums

Hi pcallil,

it's wonderful that you're introducing Scratch to a school in India, and that they are quickly catching on!

In Scratch there are currently three ways (I'm aware of) to display something:

1) make a sprite switch to a custome or the stage switch to a background
2) mark the checkbox to the left of a reporter block to create a watcher onstage
3) let a sprite "say" or "think" something

The latter two methods are probably easiest if you just want to show a computational result.

For a start you might want to have a look at some projects which are displaying math-results. Here are some quick picks of mine:

method 1) - http://scratch.mit.edu/projects/kevin_karplus/80371
method 2) - http://scratch.mit.edu/projects/Animax/51623
method 3) - http://scratch.mit.edu/projects/David_Hellam/3805

Please continue to ask if this answer leaves anything open!


Jens Mönig

Offline

 

Board footer