Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
How do I make a method for stopping?
Old
Absol
Guest
 
Status:
Posts: n/a
Default How do I make a method for stopping? - 10-17-2012, 12:58 PM

http://www.cs.duke.edu/csed/alice09/...tsTutorial.pdf

I do not know how or where to download the world that goes along with this tutorial, so I am trying to create it from scratch. It's fine until I get to the mouse click events that tell me the red button should stop the bird. How do I make a method to make it stop moving?
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 10-17-2012, 03:58 PM

Depends on how the bird is moving.

If he's moving at speed, setting the speed value to zero will do the trick.

If his motion is dependent on a loop, making the red button set a value to true that stops the loop will also work.

You can post your world so we can take a look at it, if you want.


(')>
   
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.