Alice Community  

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

Thread Tools Display Modes
How do I....
Posts: n/a
Default How do I.... - 12-17-2008, 12:38 PM

I have a scene with a DJ playing a stereo the other characters in the scene don't do their actions until the music stops. Is there a way to have the music play through the whole scene?

Reply With Quote
Senior Member
Chris101b's Avatar
Status: Offline
Posts: 361
Join Date: Jun 2007
Default 12-17-2008, 02:45 PM

Put all of the coding except for the 1 song into a "Do in order box" and then put the music and the "Do in order" box into a "Do together" box. It should look something like this:

([Do Together]

Play music

([Do in order]

Rest of the code

The do together and do in order buttons are located at the bottom of the screen. Note: Save your world (obviously) before you try this.
Reply With Quote
Another Question
Posts: n/a
Default Another Question - 12-17-2008, 04:25 PM

Thanks for your help. I have another problem with this project. I need to make people in the scene do something specific when you click on them. I have tried to figure it out. I created a new event, but when I click on a character everyone does their action one after another.
Reply With Quote
Super Moderator
x2495iiii's Avatar
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 12-17-2008, 04:45 PM

there are a few ways you could solve this. One would be to set a separate event for each character (a "when mouse is clicked on object" event for each one, triggering the action). You could also make the event call a method called checkCharacter in which you'd put a series of if/else if statements that check to see which character was clicked. both ways should work, it really depends on what's easier for you. I personally don't like too many events and would use the if/else ifs

here's what it would look like

if (object under mouse cursor) == person1
action 1
if (object under mouse cursor) == person2
action 2

Last edited by x2495iiii; 12-17-2008 at 04:48 PM.
Reply With Quote

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