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

#1 2013-03-09 23:38:32

AbdullahM
New Scratcher
Registered: 2013-03-09
Posts: 3

If block with no hat

How can I have it so I can place events in an if statement and have that if statement always working at any given time without needing a hat.

So for example, "When left key is clicked, if X Variable = 1, do this ..."

Although what I'm looking for is just to have "If X variable = 1, do this ... " work with out needing anything to trigger it.

Thanks!

Offline

 

#2 2013-03-09 23:52:18

BoltBait
Scratcher
Registered: 2009-03-09
Posts: 1000+

Re: If block with no hat

Scratch is an event driven language.  No stack of blocks executes unless it was triggered by an event.  The way to respond to an event is to use a hat block.

So, I don't think it is now possible to do what you want.  And, I very much doubt the Scratch Team will add such an ability since it goes against the very basis of the language.


Animated sigs must be banned!
http://boltbait.com/j.pnghttp://boltbait.com/s.pnghttp://boltbait.com/d.pnghttp://boltbait.com/a.pnghttp://boltbait.com/p.png

Offline

 

#3 2013-03-10 00:09:05

AbdullahM
New Scratcher
Registered: 2013-03-09
Posts: 3

Re: If block with no hat

Thanks!

I figured out a way to solve my problem! I used something to broadcast a message to trigger the event I need to happen and it works perfectly! Thanks for your help though!

Offline

 

Board footer