The Daily Click ::. Forums ::. Klik Coding Help ::. Movie Frame Problem
 

Post Reply  Post Oekaki 
 

Posted By Message

DEC Stuff



Registered
  07/07/2003
Points
  1348
28th March, 2004 at 09:50:11 -

I am currently making a cool little movie maker dealy.

Heres how Im doing it.
Im using 2 kinds of motion. Stop Motion, and Drag Motion. Stop motion is real simple. When the movie plays, it just sets the objects position to whatever it's saved at for each frame. The object can jump all around the screen.

Drag Motion(and there might be a more correct term, but I don't know of it). Anyways, Drag Motion is supposed to take the object and slide it across the screen in a set amount of time. I have an idea of what the calculation should look like but I can't quite get it.

The user can set how long he/she wants each frame in milleseconds. The way it will work is it will get the co-ordinates from the next frame, calculate the distance formula. Then somehow find the amount in X and the amount in Y to move every millesecond. It has to be as exact as possible though, because the object has to wind up fairly close to it's destination.

Thx!

 
http://www.decstuff.net

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
28th March, 2004 at 11:51:08 -

You should try the Interpolation object. That will make it a lot easier.

 
n/a

DEC Stuff



Registered
  07/07/2003
Points
  1348
28th March, 2004 at 12:43:28 -

Ok, I'll look into it. I've never even heard of what Interpolation is though!

 
http://www.decstuff.net
   

Post Reply



 



Advertisement

Worth A Click