Record Movement (like Braid)

For questions about using Classic.

Post » Sun Nov 30, 2008 7:05 pm

Hi! Has anyone an ide how to record monement, and then replay it with an new player?
Like in Braid.
B
33
S
15
G
6
Posts: 242
Reputation: 4,343

Post » Sun Nov 30, 2008 8:14 pm

Is this something like your talking about?

Movement Recorder/Player

Press R to start recording and press S to stop, then press P to start playing back the recording. The file sizes for a recording this size would end up pretty large for long recordings with lots of objects, so it would probably be a good idea to figure out how to record less points and then interpolate the data for tweens. Hope this helps. :)
Moderator
B
98
S
36
G
19
Posts: 1,584
Reputation: 17,717

Post » Sun Nov 30, 2008 8:31 pm

Wow! Thank you :D
Yes, just what I needed.
That was fast :)
B
33
S
15
G
6
Posts: 242
Reputation: 4,343

Post » Tue Dec 02, 2008 10:07 pm

Is this the best way to do this?
I tried this with my super speed example, looks cool :)
But i just wanna know if this is the best way to do this sort of thing or is there a slightly more cpu efficient way of doing it? With the multiple objects i just made each one a container with a list box each, then just used the same events you made.
Works well, I just don't know if this is like, cpu intensive or what, especially when it gets to a full game level
B
3
S
2
G
5
Posts: 351
Reputation: 2,377

Post » Tue Dec 02, 2008 11:44 pm

[quote="Arcticus":1zv60jrs]Is this the best way to do this?
I tried this with my super speed example, looks cool :)
But i just wanna know if this is the best way to do this sort of thing or is there a slightly more cpu efficient way of doing it? With the multiple objects i just made each one a container with a list box each, then just used the same events you made.
Works well, I just don't know if this is like, cpu intensive or what, especially when it gets to a full game level[/quote:1zv60jrs]

It could probably get pretty CPU intensive with to many objects. As I said though, the possibility exists to record less points in time and then interpolate the positions between each key frame. You'd want to ask somebody better than me at math how to do it, though.
Moderator
B
98
S
36
G
19
Posts: 1,584
Reputation: 17,717

Post » Tue Dec 02, 2008 11:50 pm

Yeah i was already thinking of ways to interpolate it, i was thinking something like, instead of recording the position and angle by themselves, record the position, angle AND it's speed, then play it back at larger intervals and let construct fill in the middle bits.
Some questions :)
Does the normal list object work in the same way?
Would using the ini object to do this be more cpu intensive?
And about inis, can you make them a binary resource?

or am i better off just using the listbox object?
Thanks for the awesome idea anyways, definately gonna use it
B
3
S
2
G
5
Posts: 351
Reputation: 2,377

Post » Wed Dec 03, 2008 12:46 am

Recording speed and the like sounds like a good idea.

As for the list object, I really don't know how it works. I also haven't really messed around with the INI object so I don't know much about that. So, as far as I know, the list box is the best way to do this, but I could be wrong.

And you're welcome. :)
Moderator
B
98
S
36
G
19
Posts: 1,584
Reputation: 17,717

Post » Wed Dec 03, 2008 1:32 am

Having a few problems, how do you convert a gettoken thing into a value?
B
3
S
2
G
5
Posts: 351
Reputation: 2,377

Post » Wed Dec 03, 2008 4:19 am

Like this:

int(GetToken) or float(GetToken). Int will round your numbers due to the very nature of integers while float will leave them the same.
Moderator
B
98
S
36
G
19
Posts: 1,584
Reputation: 17,717

Post » Wed Dec 03, 2008 4:58 am

thanks. legend
B
3
S
2
G
5
Posts: 351
Reputation: 2,377

Next

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests