Rewind?

I was wanting to create a rewind feature for one of my apps and I was wondering what the easiest way to setup a rewind button. IE maybe 10 seconds back? or even funner would be rewind that you could stop when you would like?

Any ideas are much appreciated!

Thank you for your help,

Let me know if you need any clarification.

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Yep, need clarification. What are you rewinding? If it's the player's movement, it's going to be tough because you have to save the "current" position to a table every few moments. If it's set, definable turns like in a card game, it should be pretty easy.

    Check this out, too: http://forums.gamesalad.com/discussion/44291/fun-with-writeable-tables-rewind-system-project-file.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • I saw this and it is a good start. But I need it to start recording my characters positions as soon as the scene starts. and then you can rewind as you pass through obstacles.
  • carlblanchetcarlblanchet Member Posts: 755
    edited December 2012
    Instead of when touch is pressed -> record positions, in the actor do when self.time > 0 -> record positions. Other than that, the project file shows you exactly what you need to do to record the actor's (character's) location on the screen.
  • I tried your suggestion carl, but whenever I hit the rewind button it just stops my actor instead of moving him backward. Then when I let go the actor continues his forward motion.
    Im not sure if it is record the coordinates properly? I feel like it is not saving them correctly or possibly not populating them correctly. I copied the project file directly and still having issues it seems very close, I am just missing a step or two.
  • carlblanchetcarlblanchet Member Posts: 755
    edited December 2012
    Either something is wrong with the recording of the locations, or your move behaviour counter acts the rewinding.

    Try putting your move behaviour in a rule that says if the rewinding attribute is false.
  • So I already added the rule to my movement behavior and still he is stopped in position. Is there a way I can upload this project file to the forum so you can look at it really quick? Of course if you had time, I am sure it would only take a few seconds for you to figure out.

    Thank you!
  • carlblanchetcarlblanchet Member Posts: 755
    edited December 2012
    For sure man, upload it to either mediafire or zippyshare, post the link here (or inbox it to me), and I'll take a look at it for you :)
  • carlblanchetcarlblanchet Member Posts: 755
    Alright man, easy fix.

    In your rewind button:
    When touch is pressed-
    Change attribute rewind to true (and not to 1)
    Otherwise-
    Change attribute rewind to false (and not 0)

    Next, in your player:
    In your "Memory" rule you have when SceneStart is true, to that add also when rewind is false.

    And voila! :)
  • Thank you that answers it perfectly!
Sign In or Register to comment.