Alice Community  

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

Reply
 
Thread Tools Display Modes
Car Enter/Exit
Old
pacman24
Guest
 
Status:
Posts: n/a
Default Car Enter/Exit - 10-05-2006, 08:30 PM

I got my enter/exit method ok by just changing the guys showing to false. how can i make it so the car will not move until he "enters" the humvee
   
Reply With Quote
Old
thetrippster
Guest
 
Status:
Posts: n/a
Default 10-06-2006, 09:41 AM

im kinda new to this program so i doubt i could help. umm maybe try setting his opacity to 0 as he is "getting" into the vechicle with a do together command? i dont know if this will help you but u never know. thats y there is a undo button.
   
Reply With Quote
Old
pacman24
Guest
 
Status:
Posts: n/a
Default 10-06-2006, 07:47 PM

i know how to do that. but how do i not let the player control the car untill i they "enter"
   
Reply With Quote
Try this!
Old
Mr Nemo
Guest
 
Status:
Posts: n/a
Lightbulb Try this! - 10-06-2006, 10:53 PM

What I would do is create a world class boolean variable and set its default to false. Then I would write the code at the end of the method in which the character enters the car:
(world.carIsControllable) set to true

At the beginning of all call events for movement( you'll need four different methods: one for forward, one for backward, one for left, one for right) I would place the following statement:

IF (world.carIsControllable) is true
(CAR) move (FORWARD,LEFT,RIGHT,BACKWARD) 1 meter;
ELSE
do nothing;
   
Reply With Quote
Old
pacman24
Guest
 
Status:
Posts: n/a
Default 10-07-2006, 02:56 AM

thanks for that. i did something similar to that before you replyed and got it working. but thankyou
   
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 ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.