Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Please help with Darkmatter

Author
Message
smhillis
18
Years of Service
User Offline
Joined: 10th Oct 2006
Location:
Posted: 7th Feb 2009 23:59
I just bought darkmatter 1 and I would appreciate if I can get some help. Specifically I am trying to load the SWAT character but I cannot get it load into my game and I get no errors. Here is what I want to do.

1. Load the swat character
2. Use walking animation to follow player
3. If gets within hand to hand range do attack animation and kill player when touches

Right now I can even get it to load for some reason. I have loaded other objects in but not from Darkmatter. Any help?
Thanks
smhillis
18
Years of Service
User Offline
Joined: 10th Oct 2006
Location:
Posted: 8th Feb 2009 01:22
Ok I just found out that the model was loading it was just extremely small, I scaled to size but and have it point at my position (camera in first person) but its always facing the wrong way. I tried using YRotate objnum, 180 but it doesn't work.
BMacZero
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: E:/ NA / USA
Posted: 8th Feb 2009 01:42 Edited at: 8th Feb 2009 01:43
To point it at the camera, check out the command ATANFULL. If it still points away, try YROTATE OBJECT and FIX OBJECT PIVOT in your setup (don't do this every loop).

To make it run toward the camera, use PLAY OBJECT and MOVE OBJECT.

See where you can get from there.

smhillis
18
Years of Service
User Offline
Joined: 10th Oct 2006
Location:
Posted: 8th Feb 2009 02:34
Thanks man I got it. I still never found that ATANFULL command though.
smhillis
18
Years of Service
User Offline
Joined: 10th Oct 2006
Location:
Posted: 8th Feb 2009 18:32 Edited at: 8th Feb 2009 18:36
Okay the $64 dollar question is how to append the animations so when I shoot the swat model it will do the die animation I can't append it. I've got everything else. Here is my code. Thanks

Load object "L-SWAT-Idle.x",3
Append object "L-SWAT-Move.x",3,total object frames(3)+1
`this next line causes an error
Append object "L-SWAT-Die.x",3,total object frames(3)+1
lucifer 1101
15
Years of Service
User Offline
Joined: 26th Jan 2009
Location: Melbourne, Australia
Posted: 8th Feb 2009 23:17
i took this straight from the documentation "Ensure that the 3D object being appended uses the same limb names
as the original object, otherwise the load will fail."
smhillis
18
Years of Service
User Offline
Joined: 10th Oct 2006
Location:
Posted: 11th Feb 2009 02:51
Ok thanks for the help. I think I can do it now but how do you find out what the keyframes for the models? I don't know where the die animation starts and ends.

Login to post a reply

Server time is: 2024-11-24 12:28:30
Your offset time is: 2024-11-24 12:28:30