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 / player model

Author
Message
baconboy2
17
Years of Service
User Offline
Joined: 30th Jul 2007
Location: Liverpool, UK
Posted: 24th May 2008 13:50
hi, I have tried to replace my basic cube player model for an actual .X file, and I seemed to have really confused myelf in the process.
Here is the code I have done so far.



Any help would be amazing!

Cheers all!



www.the-anarchy.fusiveweb.co.uk
Outscape
16
Years of Service
User Offline
Joined: 23rd May 2008
Location:
Posted: 24th May 2008 13:54
urm i did a simaler thread that got replied to

Creators of Outscape
Windsept
18
Years of Service
User Offline
Joined: 9th Jun 2006
Location: United States
Posted: 24th May 2008 14:11
The reason why your code won't work is because you delete your object right after you load it.

Heres what you want to load your model.


Hope that helps some or at least points you in the right direction.

Windsept
baconboy2
17
Years of Service
User Offline
Joined: 30th Jul 2007
Location: Liverpool, UK
Posted: 24th May 2008 14:35
Well, thats all fine and dandy, but when it comes to actually drawing the player model, there is an error.
Attached is the error message that appears when I attempt to test run the program.



www.the-anarchy.fusiveweb.co.uk

Attachments

Login to view attachments
Windsept
18
Years of Service
User Offline
Joined: 9th Jun 2006
Location: United States
Posted: 24th May 2008 18:38
Just cut out the make object part and the other commands associated with it. By using the Load Object command the model is brought into the game and doesn't need to be "made" unless you are making it from a mesh which at the moment you aren't.

Here I cleaned up your code from above to show you.


Now it should run, if there aren't any other errors.

Windsept
baconboy2
17
Years of Service
User Offline
Joined: 30th Jul 2007
Location: Liverpool, UK
Posted: 24th May 2008 20:16
Thats fantastic, thanks a lot!

There is now a problem with the model within the program. Despite using rotating object commands to the correct axis, the model does rotate. Because at the moment, the model is facing towards the camera, and I want to see its back, not its front.

Any ideas?

Cheers



www.the-anarchy.fusiveweb.co.uk
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 25th May 2008 10:12
Try:

YRotate Object ObjNum,180.0
Fix Object Pivot ObjNum


...immediately after loading it in.

TDK_Man

baconboy2
17
Years of Service
User Offline
Joined: 30th Jul 2007
Location: Liverpool, UK
Posted: 25th May 2008 11:49
Thanks TDK, that worked! Last question, and thats it! How do you get the animations of the player object into the program?



www.the-anarchy.fusiveweb.co.uk
TDK
Retired Moderator
21
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 26th May 2008 01:15
I answered that in another thread last night. Now where was it...

Found it - here you go:

http://forum.thegamecreators.com/?m=forum_view&t=130130&b=7

Just load the object containing the animation and use Play.

TDK_Man

Login to post a reply

Server time is: 2024-09-27 14:30:33
Your offset time is: 2024-09-27 14:30:33