Alice Community  

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

Reply
 
Thread Tools Display Modes
How Do I Make Random Movement?
Old
patopop007
Guest
 
Status:
Posts: n/a
Cool How Do I Make Random Movement? - 09-10-2009, 06:03 AM

I need to make an object move randomly by itself or when clicked on it. I just started with Alice 3D and am having problems with random movement. All i really want is an object such as a balloon will actively move randomly.

PLEASE HELP!!!!

   
Reply With Quote
Old
dubastot
Senior Member
 
dubastot's Avatar
 
Status: Offline
Posts: 661
Join Date: Apr 2009
Location: Two Steps From Hell
Default 09-10-2009, 02:02 PM

You could have a # number variable constantly setting to a random number between 1 and 10. An when it equals 1-5 the chicken will move.

it should look something like this:

Loop infinity times
If/else
Number variable==1-5
chicken walk
   
Reply With Quote
Reply

Tags
random movement randomly


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.