Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,173 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
record and playback in real time? #385346
10/17/11 01:44
10/17/11 01:44
Joined: Aug 2002
Posts: 164
Houston
Nicholas Offline OP
Member
Nicholas  Offline OP
Member

Joined: Aug 2002
Posts: 164
Houston
I am writing variables to a file via file_var_write and need to play them back in real time the exact same way they were recorded. The problem is that every time I try to do this it always seems to be a little faster on the playback and that screws me up.
Is there any way to do this?


Black holes are where God divided by zero.
Re: record and playback in real time? [Re: Nicholas] #385349
10/17/11 06:47
10/17/11 06:47
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
you can do this with writing your variables with a time offset to the file.
when you start, you set your a variable to the value of total_time
then write your data with the offset (total_time - start_value).
if you read your data, also start with setting up the offset variable
now you read the first time value, wait until (total_time - start_value) >= timeOffsetFromFile, the read your first set of data.
after that read you next offset, wait for it, read the data, and so on...

Hope you get it


Visit my site: www.masterq32.de
Re: record and playback in real time? [Re: MasterQ32] #385363
10/17/11 15:49
10/17/11 15:49
Joined: Aug 2002
Posts: 164
Houston
Nicholas Offline OP
Member
Nicholas  Offline OP
Member

Joined: Aug 2002
Posts: 164
Houston
I thought I tried that. I probably just didn't implement it right.
I'll see if I can get it to work properly.
thanks


Black holes are where God divided by zero.
Re: record and playback in real time? [Re: Nicholas] #386459
11/03/11 09:23
11/03/11 09:23
Joined: Oct 2009
Posts: 90
WickWoody Offline
Junior Member
WickWoody  Offline
Junior Member

Joined: Oct 2009
Posts: 90
I think you can write position and angle(and roll, tilt etc.) of every object and variables to a file when player is playing the game, after when you want playback, you move the objects from first position to last position with you saved positions.

Sorry for my bad English.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1