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

#1 2012-12-20 05:41:09

kupchanka
New Scratcher
Registered: 2012-12-19
Posts: 4

help with script similar to tetris, please

It's my second day using Scratch and any program like that ever. in my game 8 Russian words are falling on 5 other sprites which represent the Instrumental Case endings. The player has to move right and left arrows to direct the words towards the right ending. So I got the first sprite to fall repeatedly from random places up above. However, the script for pressing the left and right arrows to get the words move do not work. Any hints? Thanks!

Offline

 

#2 2012-12-20 07:43:40

starwest1
Scratcher
Registered: 2009-08-23
Posts: 40

Re: help with script similar to tetris, please

Could you perhaps using scratchblocks show us your current script?

Offline

 

#3 2012-12-20 13:45:08

kupchanka
New Scratcher
Registered: 2012-12-19
Posts: 4

Re: help with script similar to tetris, please

it would take me forever to write it out in code, so i just took a screenshot of it. hope it works and thank you!


https://c5b40ab8-a-62cb3a1a-s-sites.googlegroups.com/site/kupchanka/materialy/Screen%20shot%202012-12-20%20at%201.39.35%20PM.png?attachauth=ANoY7cr7d9R3aMEKROkvbkuB0_cesIt49lRB-LhWtC_xhoYEzVIg6vgzdrVVCreLcsGB5-IUNMfORjdI6bHxRzULJy6znmQvKN4aSON-hOd91l4gb9jj1HxEahVoa6mQsz3U__evB24JLqkPNVCH1xbEKIEF20te7IrJBcGd7y0SeuFwlOp446WGC96cwjx_HCyJRxdkbqMNLc27J4Sw9aECJoixzp8GXYtuZyTJRnspADU5HjOlHPa6Mx6myqMvwb0-kULnpInT&attredirects=0

Offline

 

#4 2012-12-20 14:59:24

letmethink
Scratcher
Registered: 2010-05-09
Posts: 100+

Re: help with script similar to tetris, please

the lef tand right movement should be forever if not just if


Clicky Clicky!!!               I am writing a book...             Look here

Offline

 

#5 2012-12-20 16:56:33

kupchanka
New Scratcher
Registered: 2012-12-19
Posts: 4

Re: help with script similar to tetris, please

Thanks, I tried, but i can only do 'forever if' with one arrow, it doesnt have a tab below to attach another step. I'll post what i wrote in a sec.

Offline

 

#6 2012-12-20 17:04:18

kupchanka
New Scratcher
Registered: 2012-12-19
Posts: 4

Re: help with script similar to tetris, please

repeat until <touching [Sprite 6]?>
  go to x: (pick random (-180) to (180)) y: (184)
  glide (5) secs to x: (0) y:(-184)
forever if <key[left arrow] pressed?>
  change x by (-20)

Offline

 

Board footer