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

#1 2012-04-16 15:28:26

Jrocket97
Scratcher
Registered: 2009-10-03
Posts: 100+

Scratch OS script help request.

So, I've been working on this project called Scratch OS.  It's a scratch/panther hybrid, but it's easy to code, at the least.  Although I'm worried a project of this magnitude will eventually encounter some walls, so I'm trying to anticipate them before I hit them.  The first one I can see myself encountering is problems with all the broadcasts.  So, what happens if you have a ton of broadcasts?  Does it make another page of broadcasts or do they just go off the screen?  Here's the links for any who are interested:
V0.1
V0.2

EDIT: Another question.  Does anyone know how to constrain movement using the movement blocks to a particular region of the stage?  It's probably obvious and I'm probably just clueless, but I can't seem to figure it out.

Last edited by Jrocket97 (2012-04-16 15:46:56)

Offline

 

#2 2012-04-16 21:06:04

Dignified
Scratcher
Registered: 2012-02-24
Posts: 43

Re: Scratch OS script help request.

I do not understand your second question however the answer to the first question is:  sad

If you have probobly 25-50 broadcasts an option to see more will show up. Don't worry!
Hope this helps!  big_smile

Offline

 

#3 2012-04-17 04:50:59

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Scratch OS script help request.

Dignified answered your fist question correctly.

As for the second question:

when gf clicked
set [last x v] to (x position) //this is a local variable
set [last y v] to (y position) //this is a local variable
forever
  if <<(x position) > (max X)> or <(x position) < (min X)>>
    set x to (last x)
  end
  if <<(y position) > (max Y)> or <(y position) < (min Y)>>
    set y to (last y)
  end
  set [last x v] to (x position)
  set [last y v] to (y position)

Offline

 

#4 2012-04-18 18:03:33

Jrocket97
Scratcher
Registered: 2009-10-03
Posts: 100+

Re: Scratch OS script help request.

okay, thank you both.  I couldn't figure out how to do that, scimonster.  And I just wasn't sure if all the broadcasts would show up.

Offline

 

Board footer