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.

DarkBASIC Discussion / appending the gi in a demo

Author
Message
Mikada
21
Years of Service
User Offline
Joined: 28th Jan 2004
Location: Kentucky
Posted: 7th Aug 2005 02:09
This should be a pretty simple one but its escaping me.

I have a script running and the little gi/h-gi-move.3ds model is my 10th object.

load object 10 "gi/h-gi-move.3ds",10

He is looping his animation.

loop object 10

I have a clock running from 0-5000 at 5000 I want him to die using
"gi/h-gi-die.3ds" that pretty simple, thats all I want it to do. Well maybe at 0 time again reset him to walking, the move animation has 25 frames so 3dmax says and the die animation has 51 frames. How do I write this simple first grade script in classic and make it work? Could somebody please help me.

sincerely,

Mikada

Mike Cohoon
AndLabs
20
Years of Service
User Offline
Joined: 7th Dec 2004
Location:
Posted: 7th Aug 2005 03:44
Here is a sample of the code you want, Mikada:



You can build on this to use the animations in the way you want. If you find any problems, please report them and I will try to fix them.

Hope that helps!

For the Software You Want, AMPERSAND LABORATORIES is the place!

Mikada
21
Years of Service
User Offline
Joined: 28th Jan 2004
Location: Kentucky
Posted: 7th Aug 2005 03:53
Andlabs,

Thanks a heap, Im analysing now and will try it out shortly.

Thanks a million,

Mikada

Mike Cohoon
Mikada
21
Years of Service
User Offline
Joined: 28th Jan 2004
Location: Kentucky
Posted: 7th Aug 2005 04:56
Andlabs,

Hey I just tried it and something is a miss. Object 11 pops up somewhere else other than object 10, its scale changes and is always near 0,0,0 or exactly at it.

Is there any easy way to use append so object 10 just changes the model in it?

Mikada

Mike Cohoon
master programmer
19
Years of Service
User Offline
Joined: 30th May 2005
Location: 3D Space
Posted: 7th Aug 2005 09:23 Edited at: 7th Aug 2005 09:24
You could or, you could use this code when the object "dies"
But, please make sure when you load object 11 that it his hidde, using the hide object 11 command.


That should position the dying object where the real object is.

Login to post a reply

Server time is: 2025-05-22 17:33:33
Your offset time is: 2025-05-22 17:33:33