Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   how do i make a object walk forward (http://www.alice.org/community/showthread.php?t=1506)

iamawesome 06-27-2008 08:33 PM

how do i make a object walk forward
 
i know how to make it walk, but it just stays at one spot and walks. I want it to move forward while walking.

DickBaldwin 06-28-2008 11:32 AM

[quote=iamawesome;5980]i know how to make it walk, but it just stays at one spot and walks. I want it to move forward while walking.[/quote]
I don't know how you are making it walk, but making it move forward is probably easier than making it walk.

Use the move method to make it move forward and then try to combine the two in a doTogether block.

Dick Baldwin
Free Alice tutorials: [url]http://www.dickbaldwin.com/tocalice.htm[/url]
Free Scratch tutorials: [url]http://www.dickbaldwin.com/tocHomeSchool.htm[/url]
Free Java/C#, etc. tutorials: [url]http://www.dickbaldwin.com/toc.htm[/url]

iamawesome 06-29-2008 05:20 PM

Putting them in a do together block kinda worked. Im using a premade method called walk to make a person walk down a staircase. When i put move and walk in a do together block, the person kinda steps in the air once before stepping on the next stair

DrJim 06-29-2008 05:43 PM

You might try changing the style option in the predefined methods. A detailed discussion is beyond the scope of a single posting - but if a method is being repeated several times, "abruptly" is usually the best choice.

See one of the texts or Dick Baldin's tutorials for a more detailed discussion.


All times are GMT -5. The time now is 10:50 AM.

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