Time rewind demo (like in Braid)

This forum is currently in read-only mode.
0 favourites
From the Asset Store
Time rewind like in "Braid". Choose objects that will be affected by time rewind
  • Hi there,

    I am trying to get that time rewind effect like on Braid.

    Arrow keys(movement), shift(jump) and a(time rewind) are used.

    <img src="http://dl.dropbox.com/u/26932498/Temp2%202011-04-22%2003-06-26-99.gif">

    Youtubevideo with a test with sound -->

    Subscribe to Construct videos now

    [Ver. 0.2] changes:

    • now animations and animation angles are correctly reversed also

    Ver. 0.2:

    http://dl.dropbox.com/u/26932498/time_rewind_V0.2.exe

    [Ver. 0.1]

    • rewinding position(x,y) of player
    • animations and other stuff won't rewind yet

    I will update this post if I got anything new.

  • It looks great . How have you done that ??

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I am planning to make a little tutorial later, with a sample .cap.

    It's done with a few arrays that record any move that i make.

    The FPS are 60 with 5-6 arrays, so everythings works at the moment.

    It's a bit RAM claimed^^...so it takes 100mb now, because I have no

    dynamic arrays :C. Maybe to save the information to a file or make

    rewinding time maximal for 10 seconds and then it reloads.

    Then it will be much less RAM claimed.

    Shall I make a tutorial with the basic function or explaine everything

    (like, how works the array) so everyone understand it?

    for the advanced construct users:

    For rewinding like in Braid(infinite rewind until you are at the level beginning)

    At the moment i browse through the index of each arrow forwards and backwards.

    I have to predefine the array size..so if I make the array 400 in the width. I can only

    rewind the time 400 steps backwards. With no dynamic array it impossible to set the size of the array at "realtime" because it will clear itself and the information are deleted :/

    Any Idea? Maybe make every 400 steps a file that saves the values and for every file

    a counter variable gets +1, so I can call the files backwards lol. Maybe with dynamic file names(_1,_2,_3). Like that each array could be 400 in a size and the time rewind is infinitly like in braid.

  • Awesome!

    Really impressive, nice work

  • You might try Rojo's path plug. I made an example way back.

    http://www.scirra.com/forum/viewtopic.php?f=8&t=5962&hilit=newt+braid

    It might be outdated for newer versions of the plug.

    If it is just set the object placement on the path first, before you start the movement.

    Also check the forum Toralord did a version using "S".

  • Thanks for that info.

    The S plugin thing seems good, but can't get it to work anymore.

    The .cap seems corrupted :C. I tried already an older version of Construct.

    Edit:Ah now it works, had to update the s-plugin to a newer version

    Will try it out and improve my .cap

    Thanks again.

  • You can set the size of an array at runtime using the 'set size' action. It retains the previous information as well.

  • If I change the size by "allways --> my array --> set size " to my count variable which increases whenever I move, It gives 0 all the time...if I press reverse I am in the upper left corner :/

  • I wonder if this can be adapted somehow to make a replay system for sports video games? I've never been able to figure out how to do that in Construct.

  • I looked into the example with the s-plugin, made by toralord.

    The s-plugin may increase itself by adding a new value if I choose "how to add --> insert"

    Shiru, you asked me for a tutorial. As I wrote, toralord already has posted a nice .cap

    in this thread-> http://www.scirra.com/forum/viewtopic.php?f=8&t=6291&start=20

    scroll down a bit and download it.

    You need the Splugin to open it.

    link: http://dl.dropbox.com/u/1013446/New%20folder%20%286%29/s.rar

    If you anyway want me to do a tutorial to understand how the whole thing works,

    then just reply here and I will make the tutorial, based on toralords .cap.

    Because its much easier with the s-plugin .

  • I wonder if this can be adapted somehow to make a replay system for sports video games? I've never been able to figure out how to do that in Construct.

    With the normaly array(like I used), I could do that.

    With the S-plugin, I have to test it out how to manipulate the position of the arrys X index.

    But yeah, why not .

  • With the normaly array(like I used), I could do that.

    With the S-plugin, I have to test it out how to manipulate the position of the arrys X index.

    But yeah, why not .

    If you could do an example of a replay system that would be awesome.

    No pressure though

  • The only thing i didn't figure out is, how to replay everything slowly.

    Timescale is impossible, because it won't affect the replay at all.

    I only could replay every 2nd frame. I'd call it "fake slowdown" lol.

    Maybe someone has an idea or I will figure it out anytime soon.

    Until then, I will make the replay system without a slowdown on the replays.

    edit: I didn't mean every 2nd frame, that would be a fast forward

    I mean replay every 0.5 frame...can't explain it in other words^^

    But it won't look fluently.

  • Heyyy Mr. Miller,

    the good news is,

    Tulamide explained me a few things so I know now everything

    I need to know about the S plugin.

    and the...good news is

    I will now make a replay system.

    So, no bad news today

  • I've made 3 simple changes to toralord's "Braid type warp"-demo and you now have a slow motion replay. I wouldn't recommend doing it this way in a full game (vectorizing the movements/angles would be the better approach), but as a tech demo it shows that it is relatively easy to get something working.

    The changes:

    Instead of inserting at index 0 in event 4, it is inserting at "end", which makes the reverse order a normal order again.

    Instead of replaying on every tick, every x milliseconds is used with this formula

    1000 / (1 / TimeDelta) * 3[/code:fvlmo5f4]
    This corresponds to the third change: As soon as the replay key is pressed, the timescale ist set to 1/3. This keeps the animations and movements smooth.
    
    Just change both values at the same time if you want another replay speed. For example, to play at 25% speed, set
    every x ms to [i]1000 / (1 / TimeDelta) * 4[/i]
    and timescale to [i]1 / 4[/i]
    
    [url=http://www.mediafire.com/file/xlfwn96d9j80d0a/Braid%20test%20slomo%20replay.cap]Braid test slomo replay.cap[/url]
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)