Alice Community Ice Danger Random movement

 Ice Danger Random movement
 steveb Guest   Status: Posts: n/a Ice Danger Random movement - 11-17-2009, 04:09 PM Can I get some help on how to get my skater to move around the hole in the ice randomly moves. When skater gets too close she falls in. Any suggestions please. I believe we are supposed to use the if/else statements. Thanks for help.
 kylefwlr Guest   Status: Posts: n/a 11-17-2009, 07:05 PM i'm not sure about the random movement myself i actually need that too but for the whole, make an if/else saying if 'skater is within' then click on the hole's function tab and put hole's width there for the distance, then just use the move to or just move method on the skater to make them go down the whole, place the if/else statement in an infinity loop and set it in a method that starts when the world does
 steveb Guest   Status: Posts: n/a 11-17-2009, 11:02 PM I figured out the random method. You just put a move forward, move left etc, put a number temporarly. Then highlight the world and go to function, and go to random number and place it instead of the number you put. Then go to the more drop down box and put a min number of something and do it again for a max number of something. This way your skater will move around randomly each time you start the world. I think I did the if/else wrong though because as she is moving randomly when she gets close to the hole she doesn't fall in. Only when I start the world if I have the hole close to her will she go to hole and fall in. Any help on this would be appreciated.
 dubastot Senior Member     Status: Offline Posts: 661 Join Date: Apr 2009 Location: Two Steps From Hell 11-18-2009, 08:05 PM You forgot to put the if statement inside the loop infinity times statement.
reuben2011
Senior Member

Status: Offline
Posts: 489
Join Date: Sep 2009
Location: Hawaii
11-18-2009, 08:22 PM

Quote:
 Originally Posted by dubastot You forgot to put the if statement inside the loop infinity times statement.
very important

 Thread Tools Display Modes Linear Mode

 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 Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements     Community News and Announcements Alice 3     How Do I?     Works In Progress     Share Your World     Share Custom Classes     Bugs and Trouble Shooting     Suggestion Box Alice 2     How do I...?     Works-In-Progress     Share Worlds     Share Objects     Bugs and Troubleshooting     Suggestion Box Educators     Teaching with Alice     Teaching Using Alice 3     Teaching Using Alice 2     CS Principles and Alice     AP CSA and Intro to Java and Alice     Workshops     Alice Player and VR General Discussion     Questions and Comments     The Lounge