Simple program to make objects move

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.
Post Reply
User avatar
Lontahv
Councilor of Artistic Direction
Posts: 1331
Joined: Wed Oct 03, 2007 2:09 pm

Simple program to make objects move

Post by Lontahv »

There is a way to make objects move in the plasma-engine but it is so hard to make your own. The main thing I'm asking for is some 'blank moving object .pak file) that you will be able to use a program to edit it and change: 1. object name to be moved 2. the start and end locations and 3. the speed. I know some python and i think it would be fairly easy. :)
Currently getting some ink on my hands over at the Guild Of Ink-Makers (PyPRP2).
Paradox
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada
Contact:

Re: Simple program to make objects move

Post by Paradox »

Using Python to move object is a really really slow and nasty hack.

We're hoping to have real animations working soon, so hopefully no more evil, jerky Python stuff. :D
Jennifer_P
Posts: 729
Joined: Fri Sep 28, 2007 10:54 pm

Re: Simple program to make objects move

Post by Jennifer_P »

So there's no nice little "glRotate()" command (i.e. OpenGL code) you can use to make the skydome turn or anything like that? Ah, a pity...
User avatar
Chacal
Posts: 2515
Joined: Tue Nov 06, 2007 2:45 pm
MOULa KI#: 0
Location: Quebec, Canada

Re: Simple program to make objects move

Post by Chacal »

Wasn't there a "warp" command?
Chacal


"The weak can never forgive. Forgiveness is an attribute of the strong."
-- Mahatma Gandhi
Tsar Hoikas
Councilor of Technical Direction
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
MOULa KI#: 23335
Location: South Georgia
Contact:

Re: Simple program to make objects move

Post by Tsar Hoikas »

Chacal wrote:Wasn't there a "warp" command?


Yes, there is, but having a smooth animation in Python would really slow down your age due to the inherent slow-ness of the functions involved. The engine has to do a good bit of work to move an object, and it really is much better to use real animations. I would recommend against any such program or pak being used, but knowing how you guys clamor for awesome stuff like animations, I shall simply digress. :P

At any rate, I'll take a gander at animations the next opportunity that I have unless someone else beats me to it.
Image
User avatar
Aloys
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
MOULa KI#: 0
Location: France (GMT +1)
Contact:

Re: Simple program to make objects move

Post by Aloys »

I agree doing any sort of animation with Python may be a slow and dirty method, but right now it's the only one we have. :)(still I agree it should be a priority in the PyPRP work. Along with sounds and texture animation. p )
Post Reply

Return to “Scripting”