Alice Community  

Go Back   Alice Community > Alice 2 > Works-In-Progress

Reply
 
Thread Tools Display Modes
I need help...
Old
xXMASTERCHIEFXx
Guest
 
Status:
Posts: n/a
Question I need help... - 03-04-2010, 09:58 AM

I need help. I was wondering if I could make the kangroo move randomly such as in real racing games like I want it to move foward but not be able to go outside the track is this really possible???
Attached Files
File Type: a2w Racing.a2w (1.02 MB, 9 views)

Last edited by xXMASTERCHIEFXx; 03-04-2010 at 10:04 AM. Reason: Forgot to capatalize I.
   
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 03-04-2010, 10:08 AM

Sure. Give it a movement method, then put that method in an if/else if statement and put a chooseTrue 50% function in the if/else's condition box.


(')>
   
Reply With Quote
How to do it?
Old
xXMASTERCHIEFXx
Guest
 
Status:
Posts: n/a
Question How to do it? - 03-04-2010, 10:14 AM

Could you give me a example or where the options are step by step?
   
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 03-04-2010, 11:04 AM

If you know where the "chooseTrue" function is, everything else should be cake.

If/else tile is on the bottom of the screen

Move forward method is built into every object

chooseTrue is found by clicking the world (click the sky in your world window), then clicking the functions tab on the left side of the screen, then scrolling down until you get to "Random," which has 2 functions: [random number] and chooseTrue [percentTrue]. Drag the second one down to the if/else if statement where it says "true" and drop it, then select a percentage from the popup menu.


(')>
   
Reply With Quote
Wow it works!!!!
Old
xXMASTERCHIEFXx
Guest
 
Status:
Posts: n/a
Smile Wow it works!!!! - 03-04-2010, 11:12 AM

My teacher had doubts it could be done now I get some sweet extra credit thanks!
   
Reply With Quote
Reply

Thread Tools
Display Modes

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 ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.