zeaus666
08-07-2006, 01:52 AM
I'm brand new to Alice and need help on a few things.
1)How do i play a sound(song )through all of the programme.The next method wont start until the song is finished.
2)How do i make a knight,horse or anything sit down,there is a stand up command, but no sit or kneel.
3)When i manage to get the sword into the knights hand,as soon as i move the knight the sword stays still.
ANY detailed ANSWERS very much APPRECIATED AS THIS FOR MY FIRST ASSIGMENT.
Thanks for any help.
lanceA
08-07-2006, 07:42 AM
I'm not able to give you DETAILED answers for your assignment however there are a few things you may wish to explore yourself.
a) Normally all Alice programs begin and end by executing the world.my first method. If I wanted sound to play thru the entire program I would look at a means of importing it into this method. Also remember that Alice has two commands, Do In Order and Do Together, which determine if actions are done sequentially or simultaneously.
b) to make an object sit, kneel, walk, etc. you probably need to look at it's methods. Select/highlight the object and view it's methods in the Details Pane. You can also see the methods associated with an objects sub-parts, if they exist, by clicking on the '+' icon to the left of the object, i.e., a knight, horse, etc will have possibly left/right legs, lower legs, etc. Once you have reviewed all of an object's primitive methods then you need to determine which method causes the object to sit or do some other action. Play with the methods to become familiar with their capabilities.
c) when viewing an object's methods you probably also want to become familiar with the object's properties - these are viewable by clicking on the properties tab in the Details Pane. Of particular interest in making a sword follow a knight's movements would be the vehicle property.
Good luck,