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

#1 2010-05-16 09:43:12

akaGamer
Scratcher
Registered: 2010-05-03
Posts: 1

Help

im not realy a new user... but ive had it for a week... anyway... i made pong (check it out on my profile) and i had the paddles get smaller and smaller when the score reach 10 then 20, 40, 80... but when i tried to do that to the ball... i made it move 5 steps till score 10, 10 steps till score 20. 15 steps till score 40. then 20 till 80 and beyond...
but the ball wouldnt speed up... i put a forever block on it also.... Help... this would make my game better [blocks] <when green flag clicked><move(5)steps><(score<=>10)><move(10)steps><(score<=>20<move(15)steps>)><(score<=>40<move(20)steps>)> [/blocks]

idk how to do the blocks thing so that might be messed up... there is a forever block around all of that also... there is also wait until score = 10 but i couldnt get wait until to work...

Last edited by akaGamer (2010-05-16 09:49:15)

Offline

 

#2 2010-05-16 09:51:47

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Help

You're using = blocks. In your script, the ball won't move unless it's exactly 10, 20, or 40. You need to have "Greater Than" blocks, which look like this:
[blocks]<(  <>>  )>[/blocks]

Offline

 

#3 2010-05-16 17:24:11

MadScientist42
Scratcher
Registered: 2010-05-12
Posts: 5

Re: Help

coolstuff is right-

Try this:

when (greenflag) clicked
forever
if score = 10 or score < 10
move (desired amount) steps
if score = 20 or score < 20 and score > 10
move (desired amount greater than previous) steps
if score = 30 or score < 30 and score > 20
move (desired amount greater than previous) steps...

And so on...


-MadScientist42-

Offline

 

Board footer