The Daily Click ::. Forums ::. Klik Coding Help ::. Replay
 

Post Reply  Post Oekaki 
 

Posted By Message

Saknarstaemband



Registered
  05/08/2006
Points
  19
20th October, 2006 at 17:41:26 -

How Im I supposed to do replays? And if possible, "Rewind" A litle bit of the game.

 
- Well, what now?

Ski

TDC is my stress ball

Registered
  13/03/2005
Points
  10130

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!KlikCast HelperVIP MemberWii OwnerStrawberryPicture Me This Round 28 Winner!PS3 OwnerI am an April Fool
Candy Cane
20th October, 2006 at 17:49:23 -

O_O?

 
n/a

Saknarstaemband



Registered
  05/08/2006
Points
  19
20th October, 2006 at 17:56:38 -

? ^^ A replay?

 
- Well, what now?

Saknarstaemband



Registered
  05/08/2006
Points
  19
20th October, 2006 at 18:17:56 -

Some one?

 
- Well, what now?

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
20th October, 2006 at 18:30:32 -

if you want the most accurate replay possible, you'd have to save the x and y co-ordinates of each active object, anything they do, anything that gets destroyed etc, and at what time it happens from when the recording starts, (save it to a temp file, perhaps) then intepret the data stored to 'recording' and play back your replay.

If you want to rewind, just use the same method, but reverse the replay to whatever point you want to go back to ^^

If you're doing a PoP:SoT style game, you'd probably need to constantly be generating a replay for rewinding, say for 5 seconds or so, and just remove older data, then when rewinding, clear the replay/rewind data from that point onwards, and start recording again.

Simple, isn't it?

 
My signature is never too big!!!

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
20th October, 2006 at 18:31:53 -

DUDE! Have some patience! You questions will NEVER be answered in a half hour, most the time it will take DAYS, especially for something as complicated as this.

 
Craps, I'm an old man!

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
20th October, 2006 at 18:32:34 -

Making replays doesn't sound like fun at all. I think you'd have to track every object's X and Y position, along with animation and frame, every .02 seconds and store them in an array or something. Then go and load it... every .02 seconds during the replay. That, or have the screenshot object take pictures every .02 seconds.

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
20th October, 2006 at 18:33:00 -

shab: i answered =p

Image Edited by the Author.

 
My signature is never too big!!!

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
20th October, 2006 at 18:34:30 -

I know, it got busy at work so it took me like 45 minutes to post that.

 
Craps, I'm an old man!

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
20th October, 2006 at 18:50:22 -

I was late.

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
20th October, 2006 at 19:56:55 -

Saving a replay.

every 0.1 second save the position of the object to an ini file.

Replaying

Open level and ignore controls

every 0.1 load position and set object to that.



(thats as simple as i can think of right now, you may want to take into account animations and other things,)
(random things wont work so well because it will be different.)

 
.

Werbad



Registered
  18/09/2002
Points
  235
21st October, 2006 at 05:59:32 -

Don't use INI's, INI's are slow... Use an array or similar extension

 
n/a

axel

Crazy?

Registered
  05/02/2005
Points
  4766

Game of the Week WinnerYou've Been Circy'd!
21st October, 2006 at 08:51:54 -

Yeah. And didn't someone write an article on this?

Oh yeah, here it is: http://www.create-games.com/article.asp?id=1382

Image Edited by the Author.

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
21st October, 2006 at 13:12:00 -

rewinding would be quite hard to do also.


because you would have to do the replay backward, then set all objects to the last position in the record.

 
.

Radix

hot for teacher

Registered
  01/10/2003
Points
  3139

Has Donated, Thank You!VIP MemberGOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!
21st October, 2006 at 22:43:06 -

Uh, reading an array backwards or forwards is exactly the same process.

 
n/a

Werbad



Registered
  18/09/2002
Points
  235
22nd October, 2006 at 07:02:28 -

You can read it forwards a bit faster than backwards... It shouldn't matter in this case though...

 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
22nd October, 2006 at 14:08:07 -

oh yeah, good point.

 
.
   

Post Reply



 



Advertisement

Worth A Click