Hm this is gonna be a tough one..

Have you guys ever played a game named Grim Fandango?
Properbly not. Anyway, we are doing a game smiliar to Grim
Fandango, which means its a 3d adventure game. We've come up with
some really clever solutions for the game mechanics, but now the
source is getting so complex that we feel that we want to "split
up" the code into different behaviors with different names.
For example, when the character enters a specified area,
"Trigger_talk_bartender", we want a behavior to get activated. This
behavior will control the characters motions, overlay-text and if
the current line is to be played over and over again or if a new
line is to be played the next time the player enters this area.
Every conversation will have its own "Talk behavior". But how
should we get them to work together? Maybe something like this?;
If char.position = Trigger_talk_bartender then
Go Talk_Behavior_1 me
end
and then the behavior will be "On Talk_Behavior_1 me".
Its so complex to explain but I hope you understand
everything and go help me with problems.

Hi Pelleyoo,
I do not understand why you did not animate the characters in
your 3D application. What I would of done is created animamations
in my 3D application, and then depending on if I was animating the
charcter by its bones, then I would use the bones player modifier,
or if I was animating the character through keyframes, then I would
use the keyframe player modifier. However, no matter which modifier
I did use, both of them allow you to put your animations into a
play list que as well as blending one anitmation into the next
animation that is in the play list que.
In addition, to make things easier for me when coding the
script, I would also create an invisible object such as a door for
a doorway that when the collision detection hits the invisible
object, then the script would know the user has entered a certain
room. Once the script knows that the user has entered that
piticular room, then I would have the script call a "sendSprite"
command. The arguments for a sendsprite command is as follows...
sendSprite(to which sprite you want the message to be sent
to, #messageHandler, your additional arguments)
for example, the beliow script will send the message playMe
to sprite 0, which is the frame script behaviour area, and also
send the argument of the motion's name "Speek", and which character
is suppose to speek
on collisionDetected collisionData
if collisionData.name = "BarRoom" then
sendSprite(0, #playMe, "speek", "barTender")
end if
end collisionDetected
... this line of code is part of the behaviour script that
lies on the frame behaviour script....
on playMe me, motName, CharName
notLooped = 0
startTime = 0
endTime = 60000 -- this is in milliseconds which 60000
milliseconds is equaled to one minute
member("my3dScene").model(CharName).bonesPlayer.play(motName,
notLooped, startTime, endTime)
end playMe

Similar Messages

  • This focus issue is a tough one

    Gidday guys
    This one has been bugging me all day.
    If I select a row in my datagrid, then click out of my AIR desktop app to another program, desktop etc, then click back into the AIR app, I get the error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at fl.controls::TextInput/setFocus()
        at fl.managers::FocusManager/activateHandler()
    I set up the following to deselect the row, but the error still occurs:
    data_grid.addEventListener(Event.DEACTIVATE, deselectRow, false, 0, true);
    private function deselectRow(event:Event):void
          data_grid.selectedIndex = null;
    Anyone had this happen before and know of a fix?
    Cheers

    This bug still isn't revealing itself.
    I've found a way to consistently replicate it:
    1. click in an editable column - the text in it highlights
    2. don't change anything - just click anywhere outside of the row
    3. click outside of the AIR app so that it minimises
    4. re-open the AIR app
    5. the error occurs (no line number):
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at fl.controls::TextInput/setFocus()
        at fl.managers::FocusManager/activateHandler()
    I've set trace points at the end of all the functions that are called by any involved event listeners.  All the points trace, and then the error occurs, so there seems to be nothing in my code that is directly triggering it.
    I've noticed that if I do steps 1 and 2, an then click another editable row and this time edit the text in it, the error doesn't occur when I minimise/maximise.
    Anything in there sticking out to anyone?

  • This is a tough one!  Problem with sequence settings....

    OK...where to begin!
    Here is some background (I have posted many questions about these issues and have resolved most of them, except this project)
    1.Recently upgraded to 6.0.1
    2. 'lost' my scratch disc (ok, I accidently deleted it)
    3. All projects are OK to do without, except this one!
    4. The footage for this project was from 2 cameras: one is DV and one is HD. The HD footage was downgraded to DV during capture from camera for the original project. Now, with 6.0.1, I bring it in HD and mix the footage on the same timeline with the DV (which is so cool and so much easier for me!) But I wanted to make sure and do the same thing I did for the original clips on this project, so when I just batch captured all the clips, I brought the HD in as DV. Both were shot wide screen.
    This one sequence is 6 minutes long and I COULD recreate it, but it is very detailed and has a lot of filters, edits, etc. Here is the problem:
    I did a batch capture on all the clips and successfully got all the clips back and the timeline plays, but the two different "cameras" footage looks different in the canvas: (the sequence settings are frame size: ntsc dv 3:2, pixel aspect ratio ntsc-ccir601/dv and anormorphic is checked)
    The HD footage, downgraded to DV, looks fine
    The DV footage is stretched, and has a bar on the top and bottom.
    I have played around with the sequence settings and these are the best results i can get.
    Now I made a new sequence with same settings as above and i dragged a couple different clips from the browser into the timeline and they are fine... (these clips are the same ones in the problem sequence that look stretched)
    Any ideas??
    Thanks in advance!!

    I understood that the sequence looked at the first stuff dropped into it for behavior. If you dropped the problem material from the first sequence into the second sequence you created prior to dropping any thing else in then it will behave as you would expect. if you dropped footage that wasn't formatted the same as your sequence settings you get the "...would you like to ..." and the sequence settings get changed. I avoid this because some of the changes applied don't allow my Kona to playout.

  • When opening links in a new tab there used to be dots surrounding the link (made it easy to see your place on a list), this is gone in Firefox 4. Can it be restored or simulated?

    I open new tabs from a lot of links that are in lists. In Firefox the link would be surrounded by dots when I opened the new tab which made it easy to know where I was in the list if I had to get up or even look away from the screen. This is gone in Firefox 4 and it's really annoying to have to try to keep my place in the lists all of the time. Can this be fixed?

    I don't see it on lists like this one: http://www.creationsrewards.net/m/default.asp
    if I right click and open in a new tab. It will work if I open link in a foreground tab but then it will switch to the opened tab then and I want to stay on the list page not switch to the tab page.
    I am not technical enough with Firefox to understand the page that you sent. Can you explain what do if this can be fixed? If not are you able to pass it on to a programmer so it can be fixed on a coming revision?

  • HT2513 how do you get the sidebar with three months of just calendar to turn on-is this feature gone?

    how do you get the sidebar with 3 months of calendars on the left?  Is this feature gone?

    Im sorry but I figured it out now. I hate when you figure something out right after you do something extreme like signup for a profile here and post a question. Well to those who want the answer all in one shot there are 2 solutions for me.
    1. Make sure Safari is updated completely. You can check by clicking SAFARI> ABOUT SAFARI
    Safari 5.0.5 gave me this problem but the new update is 5.1.2
    2.Glims - Free ad on for Safari which enables you to view you window in COMPLETE full screen at all times, as well as maximise your window to fill all empty space (makes so you dont have to worry about accidentally clicking on your desktop which I do all the time lol). You can use this option once Glims is installed simply by clicking on
    SAFARI> Full Screen
    or
    SAFARI> Maximise Window Size
    By doing Full Screen mode you can then click on the full screen capability on the website you are on

  • Help removing background...tough one.

    Hello adobe gurus...
    My 1st post...and it's a tough one (for me anyways).
    I know how to delete a backround...but I can't figure how to loose all the green in this, make it transparent and just keep the chimp. It's the gradations of the backround and his hair that are the problem.
    Any help with this is VERY much appriciated. The gauntlet is thrown down.
    Thanks, all!

    You might want to download the the freeware PSE add-on GML. This tool extracts an item from a picture and places it on a transparent background.  It works especially well in extracting fine areas such as hair, as you can see in this example. I added a white layer at the bottom so you can better see the result.
    I tried GML Matting on your picture and added the white backgrond layer.
    Refer to forum topic http://forums.adobe.com/message/2104909 for more details. Also there user Terri_F offered another method that might work for you.
    You can download GML Matting at http://graphics.cs.msu.ru/en/science/research/imageprocessing/matting

  • Reordering pages-Is this really gone?

    As far as I can tell, you're no longer able to change the order of pages in your document by dragging the thumbnails accordingly.  Has anyone figured out how to do this in the new version? Is this really gone?

    What version of iPhoto are you currently running?  What size does the Finder say your iPhoto Library is? By default it will be located in your Pictures folder. 
    It's probable that the library is damaged and your photos are still there.  Assuming you are running iPhoto 9 (11) do the following: apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start with
    Option #4 and then #1 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    1 - download iPhoto Library Manager and launch.
    2 - click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    3 - Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option.
    4 - In the next  window name the new library and select the location you want it to be placed.
    5 - Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments.  However, books, calendars, cards and slideshows will be lost. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • HT4539 I followed the instructions given to turn my automatic download icon in my iphone 3 and still goes back to off position. Any idea how to fix this issue without getting a new one?

    I followed the instructions given to turn my automatic download icon in my iphone 3 and still goes back to off position. Any idea how to fix this issue without getting a new one?

    Something may have gone amiss on your iPhone.
    To attempt to correct this follow these steps:
    Backup your iPhone using iTunes or iCloud.
    Use iTunes to completely restore your iPhone as Factory new.
    Monitor battery usage to see if it is normal. If not, you may have a hardware problem - if so, contact Apple support.
    Restore your iPhone from your backup above.
    Check battery usage to confirm that it is still normal.

  • I have ios 5.1.1. When I sync to iTunes, my purchased apps no longer work. They blink but do not open. The only way I have been able to solve this, is as follows: I delete one of the apps and then re-download and install it. Then, all my apps work.

    My new iPod touch 64 Gig has a problem after syncing with iTunes. My purchased apps no longer work. I touch them and they seem to try to open but they do not.
    The only way I have found to fix this is as follows:
    I delete one of the purchased apps. Then I go to the App Store and re-download and install the same app. After that, all my apps work again.
    Please help.

    Download/install an app is a know possible solution.
    3. Install another app from the App Store
    If all user-installed apps are not launching, it could be an Apple ID authorization issue. Download and install an app that isn't already installed on your device to reset this information.
    Note: If you have installed apps using multiple Apple ID accounts, you may need to perform this step for each account.
    Above from Apple's :
    iOS: Troubleshooting applications purchased from the App Store

  • Can this be used on more than one computer?

    Can this be used on more than one computer?  (Multiple-users?)

    Hi Jessica,
    ExportPDF is for one user per account. Please refer to our terms... this should help with your questions!
    Let me know if this helps.
    Regards, Stacy

  • HT5625 I'm trying to create a new Apple ID but when I was putting on my information, there's a box asking for an ITunes gift code. What's this and how can I get one?

    I'm trying to create a new Apple ID but when I was putting on my information, there's a box asking for an ITunes gift code. What's this and how can I get one?

    You're not obligated to insert a gift code. But you can purchase gift codes on the Apple online store (gift cards or certificates) or Apple Retail store
    Gift codes are pre paid cards so you can use credit on the iTunes Store to purchase content
    To create apple ID without payment method:
    http://support.apple.com/kb/HT2534?viewlocale=pt_PT

  • Hello! I lost my iphone like a month ago, well I reported that phone as lost with my icloud account, now I got a new iphone and I would like to know if I can use that same icloud account with this new phone? The old one will stay reported?

    Hello! I lost my iphone like a month ago, well I reported that phone as lost with my icloud account, now I got a new iphone and I would like to know if I can use that same icloud account with this new phone? The old one will stay reported?

    Thank you.  The old one will stay reported?

  • HT201269 Bit of a tough one...I have a hard drive, iPod and iphone synced to an itunes on a computer that's been irreparably broken. Just bought a macbook pro and want to try and salvage everything onto the itunes on there. Any ideas?

    Bit of a tough one...I have a hard drive, iPod and iphone synced to an itunes on a computer that's been irreparably broken. Just bought a macbook pro and want to try and salvage everything onto the itunes on there. Any ideas?

    Yeah it seems to be fine although I'm a bit reluctant to fire it up with the Mac just incase. Thanks for the response btw

  • Can't burn audio CD - songs in this playlist will not fit on one Audio CD.

    I have iTunes 6.0.3.5. runing on Windows XP SP2, fully patched.
    I'm trying to write an Audio CD from iTunes, I used to be able to do this (before Christmas), but now can't. Even if I create a new playlist with just one track in it and try to write this track (whether an MP3 or M4P downloaded from iTunes store), it comes up with the message:
    The songs in this playlist will not fit on one Audio CD. Do you want to create multiple Audio CDs with this playlist split across them? This will require more than one blank CD to complete.
    Even if I select Audio CDs, it doesn't write them, it just comes up with the same message again.
    I've tried this on my laptop too, same result, I completely re-installed my laptop (XP, everything) too....
    I've tried it on my daughters PC and it * does * work ok (same version of iTunes)...
    Any ideas?
    Thanks
    Compaq S5600UK   Windows XP  

    If I use a different brand of CD-R it now works (found this suggestion in the answer to another similar question).
    I was using Memorex which didn't work on my PC or Laptop, but works ok on my daughter's PC.
    Maxell works ok.
    Why? Anything I can do to fix it?
    Thanks
    Compaq S5600UK   Windows XP  

  • Discovery data couldn't be inserted to the database. This could have happened because of one of the following reasons:

    Discovery data couldn't be inserted to the database. This could have happened because  of one of the following reasons:
      - Discovery data is stale. The discovery data is generated by an MP recently deleted.
      - Database connectivity problems or database running out of space.
      - Discovery data received is not valid.
     The following details should help to further diagnose:
     DiscoveryId: ae39d630-f82d-77ee-d5d9-dd4c4a2e7bc2
     HealthServiceId: ab069276-c6dc-13d7-3ef5-28e780c34953
     Microsoft.EnterpriseManagement.Common.DiscoveryDataUnresolvedClassPropertyNameException,Unable to resolve the class property name specified in the discovery data item. Try using a fully qualified name.
    Class property name: 12f3e541-ec4d-7310-be57-fa3bde0bed06
    Rule ID: ae39d630-f82d-77ee-d5d9-dd4c4a2e7bc2
    Instance:
    <?xml version="1.0" encoding="utf-16"?><ClassInstance TypeId="{6ce7ab22-1880-0eb1-40ba-86d9a8c3d5f5}"><Settings><Setting><Name>0b3944af-12ff-1e1f-ac5c-55485fc10671</Name><Value>MANAGED
    REAL TIME APPLY</Value></Setting><Setting><Name>12f3e541-ec4d-7310-be57-fa3bde0bed06</Name><Value>rac2</Value></Setting><Setting><Name>18900065-cbab-1788-0c0e-2c97ef41d7d2</Name><Value>LGWR</Value></Setting><Setting><Name>1a42a2bc-9e87-029a-6db6-f512f8d00ca2</Name><Value></Value></Setting><Setting><Name>5c92d602-346f-9202-e2b4-7cfdc7226661</Name><Value>Common</Value></Setting><Setting><Name>5e763b8d-1979-d0e9-08bf-ea857c67fbaa</Name><Value></Value></Setting><Setting><Name>7dd3b6cb-8180-d58a-fae2-985730c3ffb8</Name><Value></Value></Setting><Setting><Name>7ecb288d-50c8-dd5b-419f-5d4712ef4b75</Name><Value>Database
    Physical</Value></Setting><Setting><Name>8c62b4e5-a737-b8d7-9017-4e8ea4c5a4ac</Name><Value></Value></Setting><Setting><Name>99cdac55-6b00-2485-cb26-bed62d37c926</Name><Value>Common</Value></Setting><Setting><Name>9ed7463c-fa1e-00ea-6743-5e54b928b7e8</Name><Value></Value></Setting><Setting><Name>a606d019-eff4-c6b9-eec9-32d43913fa58</Name><Value>DatabasePhysicalMP</Value></Setting><Setting><Name>aa9fbc8a-e274-91e8-7731-ba324682cab9</Name><Value>DatabasePhysical</Value></Setting><Setting><Name>afb4f9e6-bf48-1737-76ad-c9b3ec325b97</Name><Value>rac2</Value></Setting><Setting><Name>b60a9e0e-5baa-9b0a-8201-6ddd697d060d</Name><Value></Value></Setting><Setting><Name>bf194186-a061-ccf1-94de-971988a79003</Name><Value></Value></Setting><Setting><Name>c2ec02fc-fa4d-65c9-82da-fa76476433eb</Name><Value>rac2</Value></Setting><Setting><Name>d87b0cd0-2149-5736-ab85-42ebddab12a2</Name><Value></Value></Setting><Setting><Name>e1165cbd-8778-5bc1-de07-af341d420068</Name><Value>GRD</Value></Setting><Setting><Name>f56fc436-4a31-48dc-3127-745e5a6d2800</Name><Value></Value></Setting><Setting><Name>fda3d28f-3f34-e51c-e1ad-b1413a70c4ac</Name><Value>GUARD</Value></Setting></Settings></ClassInstance>.

    Try to reimport the MP. You should use the following sql to query the problematic MP
    select d.discoveryid, d.discoveryName,mp.mpfriendlyname from discovery d inner join managementpack mp on d.managementpackid=mp.managementpackid where d.discoveryid='ae39d630-f82d-77ee-d5d9-dd4c4a2e7bc2'
    Discovery data couldn't be inserted to the database: Event IDs: 33333 and 10801
    http://social.technet.microsoft.com/Forums/en-US/operationsmanagergeneral/thread/5f826064-d3f5-43f0-a328-c2f3eb56e932
    Insert Discovery Data Fails
    http://social.technet.microsoft.com/Forums/en-US/operationsmanagerauthoring/thread/8b1387f0-ca4a-480b-a0f0-557d14c3fa89
    Event ID: 10801 in RMS server
    http://social.technet.microsoft.com/forums/en-us/operationsmanagergeneral/thread/5467A6A7-0B26-45C1-BF69-368E5A7AB841
    Roger

Maybe you are looking for

  • Multiple Users syncing data on Numbers spreadsheet

    What's the best way for multiple users to share a numbers spreadsheet and upkeep of data? Thanks! I know- I'm pretty new at this.

  • ITunes won't launch after downloading iTunes 7.1.1

    While downloading iTunes 7.1.1, I received an error but the process continued. Unfortunately, now every time I try to launch iTunes, it comes up momentary... then shows a message... "Updating iTunes library"... then locks up. It's happened 20+ times

  • Network in sidebar does not show "Servers" file.

    A week back my MacBook Pro crashed and each time I would boot the login window came up and entering the right info didn't work. Took it to Genius Bar and it was found that two small 2 to 4K files related to new computer turn on were corrupt. These we

  • Display line items for cost elelment

    Hi Experts Could you please tell me the transaction for checking line item details for a cost element. This cost element is not created as GL account in FI. Hence I am not able to check it through FI transactions such as FS10N or FBL5N Regards, Santo

  • Question while Learning about Thread

    I am learning about thread. I ran the sample producer/consumer programe in Java Thread Tutorial in which I added two lines of printing out codes in class CubbyHole to observe the runing sequence better. The result made me a bit confused. I imagine th