Real Time Cinematics?

or however you call them… you know what i mean… do you?

Ok, this is the thing. I want to make some real time cinematics for me game, now the question is this:

I wanna make sure that all the objects involved in the anim are synched… how?

if they start at the same time they should be synched
(assuming they are playing location ipos or the like, not dynamic)

to start them all at once give them message sensors (with a subject… I believe), and send a message to them all at the same time (one message actuator)

Yeah but at times my actions get out of sync… or is it just me… hmmm… maybe i can make a global timer and make all actions run according to it… what ya think?

Well, it’s going to be very tough if you are using a bunch of motion actuators and different action actuators to do it. The best way would be to make a giant IPO or Action for each object that moves and make an animation like you would if you were making a render, then just have all those object play teh ipos. If they all start at the same time then you should be good.

Pooba

IPOs work on a different time scale as actions, so if you’re mixing the two they will get out of synch.

The best way would be make all the action and IPO actuators play by property. Then give each object a timer property and use python to set the frame property based on the timer.

Or skip the python, and make all the keyframes be based on the timer. Each frame would have to be equal to one second however, and since you can only put the blender frame on whole frames and not in between, you would have to store keyframes on whole frames and then move them over if necesary in the ipo/action editors.

ok… maybe i will go to the “make one real big action” option…

I tried the timer thingy and it seems that different timers on different objs will always be synched as long as they are all set to start at the beginning… hmmm… anyway, thanx for the ideas, will get them implemented as soon as i finish the modelling (maybe it takes a lot of time, but boy it feels nice to materialize something on screen out of a simple plane :smiley: )

but if by any chance, you have any other genius means of making cinematics, oh please DO post here :smiley:

You can use ONE timer and store that to GameLogic from python, and have all the other objects have scripts that set their frames based on the global timer.

That way its SURE to be synced.

oh so wise python guru, tell me how to do that which you have so kindly recommended me… :smiley:

or you could use a copy property actuator and not use python at all.

Keith. 8)

yeah, yeah, iknow copy properties… but… %|

I really want to know that python synching method :smiley:

anyone?

on the object with the timer (with the timer property called ‘time’):-


import GameLogic

GameLogic.global_time = GameLogic.getCurrentController().getOwner().time

…on the other objects that need to reference the time:-


import GameLogic

time = GameLogic.global_time

…now the time variable can be used for whatever, if you’re using animations with the ‘property’ setting, you can just set that property directly:-



object.time = GameLogic.global_time

…and that should update the animations straight off.

:slight_smile:

cheers
Piran

ohhh… thank u!.. I will try that out! :smiley:

I made a blend file showing that u can use logic bricks…
I used logic bricks and properties like

property - timer: time = 0.00

Prop. invertal time Min: 3 Max: 5o ------oAndo------o Action play walk 1 - 25

use IPOs for movement! (Location)

I’m sorry but this one is for the ones that didn’t understand this thread

and Here is the file http://www.zone.ee/xintest/rmovie.zip?