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

#1 2013-03-27 20:52:03

bcrow
New Scratcher
Registered: 2013-03-27
Posts: 3

script doesn't execute while clicking and dragging sprite

I made an extremely simple game where the user moves a balloon around and tries to avoid an arrow that is using <point towards> and <move(1) step> to chase it.  Unfortunately, the balloon script <if touching (arrow)><play sound(pop)> doesn't seem to execute while the user is clicking and dragging the balloon which is exactly what I expect them to do.  The balloon only pops if the user releases the mouse button while the arrow is touching the balloon.  The arrow script keeps executing with no problem.  Please tell me there's an easy workaround. 

Let me know if I should hazard scratchblocks to illustrate the code more precisely.  I shared the project as SaveTheBalloon and tagged it as a game but cant find it on the MIT Scratch website.

Offline

 

#2 2013-03-27 21:08:01

7734f
Scratcher
Registered: 2010-12-23
Posts: 500+

Re: script doesn't execute while clicking and dragging sprite

Your project is here, and the problem is this:

Offline in the Scratch editor, you can always click and drag things. Click the lock icon at the top center of the editor, and it is now draggable!!

Oh, and to find your projects, go to your "My stuff" page. Yours is here.


http://internetometer.com/image/38992.png   http://i37.tinypic.com/2qixx6c.png

Offline

 

#3 2013-03-27 21:15:39

Liamadams
Scratcher
Registered: 2012-12-08
Posts: 100+

Re: script doesn't execute while clicking and dragging sprite

7734f wrote:

Be sure to check out my new 1s1s game!  cool  Click the pic!

why don't i get a cookie anymore?

Last edited by Liamadams (2013-03-27 21:16:00)


http://i39.tinypic.com/3309476.jpg

Offline

 

#4 2013-03-27 22:14:57

bcrow
New Scratcher
Registered: 2013-03-27
Posts: 3

Re: script doesn't execute while clicking and dragging sprite

Thanks 7734f--I never would have figured that out myself.  Now I have the interesting situation where the program works on the website but not in my editor.
Your game is pretty cool.

Offline

 

#5 2013-03-27 22:33:19

7734f
Scratcher
Registered: 2010-12-23
Posts: 500+

Re: script doesn't execute while clicking and dragging sprite

bcrow wrote:

Thanks 7734f--I never would have figured that out myself.  Now I have the interesting situation where the program works on the website but not in my editor.
Your game is pretty cool.

Thanks! Yeah, it took me a while to figure it out when I was a new Scratcher.

  With regards

                    ~7734f


http://internetometer.com/image/38992.png   http://i37.tinypic.com/2qixx6c.png

Offline

 

#6 2013-03-27 22:34:27

7734f
Scratcher
Registered: 2010-12-23
Posts: 500+

Re: script doesn't execute while clicking and dragging sprite

Liamadams wrote:

7734f wrote:

Be sure to check out my new 1s1s game!  cool  Click the pic!

why don't i get a cookie anymore?

Just cuz.


http://internetometer.com/image/38992.png   http://i37.tinypic.com/2qixx6c.png

Offline

 

#7 2013-03-28 16:27:57

PresidentialNyan
Scratcher
Registered: 2013-02-23
Posts: 59

Re: script doesn't execute while clicking and dragging sprite

7734f wrote:

Liamadams wrote:

7734f wrote:

Be sure to check out my new 1s1s game!  cool  Click the pic!

why don't i get a cookie anymore?

Just cuz.

well im not gonna check it out again if you don't give me a cookie. By the way, what type of cookies were they?


http://i43.tinypic.com/4ruira.jpg

Offline

 

Board footer