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

#1 2012-02-28 21:35:39

WadeSarahEthan
New Scratcher
Registered: 2012-02-28
Posts: 1

help with dragon_fight_dadversion

We made a goofy little video game, and it keeps score.  I can't figure out how to use an attach an if statement to the variables (scores) so that the game ends when someone reaches a preset number of points. 

I don't know all that much, but so far this is pretty cool at teaching computer stuff to my 9 yo daughter. (and me)

game is here:

http://scratch.mit.edu/projects/WadeSarahEthan/2363056

Offline

 

#2 2012-02-28 22:02:01

MrMonk999
Scratcher
Registered: 2011-12-17
Posts: 500+

Re: help with dragon_fight_dadversion

Use

Forever
  If <(score) = ( insert # here)>
     Stop all

Last edited by MrMonk999 (2012-02-28 22:03:48)


http://i.imgur.com/CAMJe.png

Offline

 

#3 2012-02-29 03:02:43

ProgramCAT
Scratcher
Registered: 2011-12-13
Posts: 500+

Re: help with dragon_fight_dadversion

Try:


forever
scripts run here
if < (score) > [a number] >
broadcast [endgamescriptsstart v]
wait (3) secs //or the number of seconds it would take to run endgame scripts/animations
stop all
end


Programming is an art...
Goodbye, Scratch. I am leaving because of the exams coming up at our school, though I'll check the forums once or twice a week.

Offline

 

Board footer