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

#1 2012-03-04 14:06:10

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

A VERY helpful script for you scratchers!

when gf clicked
forever
   if <not> touching ()
      hide
end
So if it not touching anything, it hides! Sorry for the poor image, I'm quite new to the scratch blocks!


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#2 2012-03-04 14:12:21

wjack2010
Scratcher
Registered: 2010-06-28
Posts: 100+

Re: A VERY helpful script for you scratchers!

Cool.  smile

Offline

 

#3 2012-03-04 14:14:07

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

Re: A VERY helpful script for you scratchers!

Borrego6165 wrote:

when gf clicked
forever
   if <not> touching ()
      hide
end
So if it not touching anything, it hides! Sorry for the poor image, I'm quite new to the scratch blocks!

Here's an improved Scratchblocks code:  smile

when gf clicked
forever
   if <not <touching [. v]?>> //ignore the dot
      hide
end
But I don't think it really works.  hmm

Last edited by scimonster (2012-03-04 14:15:33)

Offline

 

#4 2012-03-04 15:07:54

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Re: A VERY helpful script for you scratchers!

well it worked for me in my project!


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#5 2012-03-05 12:23:07

laptop97
Scratcher
Registered: 2011-06-27
Posts: 1000+

Re: A VERY helpful script for you scratchers!

scimonster wrote:

Borrego6165 wrote:

when gf clicked
forever
   if <not> touching ()
      hide
end
So if it not touching anything, it hides! Sorry for the poor image, I'm quite new to the scratch blocks!

Here's an improved Scratchblocks code:  smile

when gf clicked
forever
   if <not <touching [. v]?>> //ignore the dot
      hide
end
But I don't think it really works.  hmm

when gf clicked
forever
  if <not <touching [. v]?>> //ignore the dot
  hide
  else
  show
end

Last edited by laptop97 (2012-03-05 12:23:52)

Offline

 

#6 2012-03-05 18:55:44

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: A VERY helpful script for you scratchers!

It works, at least when I tried it.


http://trinary.tk/images/signature_.php

Offline

 

#7 2012-03-06 16:02:50

turkey3
Scratcher
Registered: 2011-12-04
Posts: 500+

Re: A VERY helpful script for you scratchers!

laptop97 wrote:

scimonster wrote:

Borrego6165 wrote:

when gf clicked
forever
   if <not> touching ()
      hide
end
So if it not touching anything, it hides! Sorry for the poor image, I'm quite new to the scratch blocks!

Here's an improved Scratchblocks code:  smile

when gf clicked
forever
   if <not <touching [. v]?>> //ignore the dot
      hide
end
But I don't think it really works.  hmm

when gf clicked
forever
  if <not <touching [. v]?>> //ignore the dot
  hide
  else
  show
end

I always knew how to do this

Offline

 

#8 2012-03-06 16:05:12

Borrego6165
Scratcher
Registered: 2011-03-10
Posts: 1000+

Re: A VERY helpful script for you scratchers!

turkey3 wrote:

laptop97 wrote:

scimonster wrote:


Here's an improved Scratchblocks code:  smile

when gf clicked
forever
   if <not <touching [. v]?>> //ignore the dot
      hide
end
But I don't think it really works.  hmm

when gf clicked
forever
  if <not <touching [. v]?>> //ignore the dot
  hide
  else
  show
end

I always knew how to do this

well good for you!


Generation:4001 Build a beautiful city, with over 50 objects and over 10000 tiles per city! This simulates traffic, pollution, tourism, crime and more!

Offline

 

#9 2012-03-06 17:07:38

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: A VERY helpful script for you scratchers!

laptop97 wrote:

scimonster wrote:

Borrego6165 wrote:

when gf clicked
forever
   if <not> touching ()
      hide
end
So if it not touching anything, it hides! Sorry for the poor image, I'm quite new to the scratch blocks!

Here's an improved Scratchblocks code:  smile

when gf clicked
forever
   if <not <touching [. v]?>> //ignore the dot
      hide
end
But I don't think it really works.  hmm

when gf clicked
forever
  if <not <touching [. v]?>> //ignore the dot
  hide
  else
  show
end

when gf clicked
forever
  if <not <touching [. v]?>> //ignore the dot
    hide
    wait until <touching [. v]?> //ignore the dot
    show
   end
makes it faster

Last edited by joefarebrother (2012-03-06 17:08:03)


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

Board footer