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

#1 2011-09-21 05:18:33

jebis
New Scratcher
Registered: 2011-08-09
Posts: 9

plz im still pretty new to scratch can anyone help me? ..^^.. (URGENT)

Background information if you are wondering what this is about...
I have to make a game for my assignment at school and im not sure on how to go about this because im new to this.

I would like to make a game for my little cousin to help him with his school work, called build the castle. He wants it to be about building a castle to the very top e.g. 6 square blocks stacked to make a pyramid trangle shaped castle.

however there are number equations inside the blocks e.g. (10 divided by 2).

Questions
******How do I make scratch  bring up a text box to type the answer in and if the answer is right add a point to varible +1 to :*(Score) I made?******

******Also if it isn't too much trouble how do you make it if the answer is wrong (i.e. number other than the set answer) restart the entire game?

I would be very happy and it would make my day if anyone can offer some solutions to this problem i have.
Thanks Jebis

ill post more questions later about the game development, but for now I just need to solve this

Ive posted this already on the new scratcher page but wondering if anyone here can help me

Offline

 

#2 2011-09-21 07:53:31

Greenatic
Scratcher
Registered: 2009-05-03
Posts: 1000+

Re: plz im still pretty new to scratch can anyone help me? ..^^.. (URGENT)

jebis wrote:

Background information if you are wondering what this is about...
I have to make a game for my assignment at school and im not sure on how to go about this because im new to this.

I would like to make a game for my little cousin to help him with his school work, called build the castle. He wants it to be about building a castle to the very top e.g. 6 square blocks stacked to make a pyramid trangle shaped castle.

however there are number equations inside the blocks e.g. (10 divided by 2).

Questions
******How do I make scratch  bring up a text box to type the answer in and if the answer is right add a point to varible +1 to :*(Score) I made?******

******Also if it isn't too much trouble how do you make it if the answer is wrong (i.e. number other than the set answer) restart the entire game?

I would be very happy and it would make my day if anyone can offer some solutions to this problem i have.
Thanks Jebis

ill post more questions later about the game development, but for now I just need to solve this

Ive posted this already on the new scratcher page but wondering if anyone here can help me

ask [question here] and wait
if <(answer) = [correct answer here]
     change [score] by 1
else
   broadcast [start]

Now take all your When Green Flag Clicked scripts and change When Green Flag Clicked to When I Receive [start] and add this script:

When Green Flag Clicked
broadcast [start]

Did that make any sense?   tongue

Offline

 

Board footer