Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. How do i create a savestate?

How do i create a savestate?

Scheduled Pinned Locked Moved C#
comgame-devtutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anthony Mushrow
    wrote on last edited by
    #1

    I'm currently making a (not as simple as i previously thought) game, and i want to know how to make a savestate for it to save the game, if you dont know what a savestate is then its where you press a button to save your game, then when you load it, you are exactly where you where, doing whatever you where doing when you left, as though you had never left. If this isnt possible, then i guess that i'll have to save all of my vars in a file and read them back in when you load the game, and you wont be in the middle of falling or whatever either :sigh: If you need to know about the game for whatever reason, here it is. And dont worry about any crazy stuff happening, its probably supposed to:laugh: http://www.freewebs.com/csharpprojects/GameRPG.zip Enter brings up the start screen, space is the action button, talk to people, press A to attack them.(attack may run slow)

    I 1 Reply Last reply
    0
    • A Anthony Mushrow

      I'm currently making a (not as simple as i previously thought) game, and i want to know how to make a savestate for it to save the game, if you dont know what a savestate is then its where you press a button to save your game, then when you load it, you are exactly where you where, doing whatever you where doing when you left, as though you had never left. If this isnt possible, then i guess that i'll have to save all of my vars in a file and read them back in when you load the game, and you wont be in the middle of falling or whatever either :sigh: If you need to know about the game for whatever reason, here it is. And dont worry about any crazy stuff happening, its probably supposed to:laugh: http://www.freewebs.com/csharpprojects/GameRPG.zip Enter brings up the start screen, space is the action button, talk to people, press A to attack them.(attack may run slow)

      I Offline
      I Offline
      IamJunk
      wrote on last edited by
      #2

      Have you heard of something called "Serialization". This saves the state of the objects. For more info check Code Project ;) Hope this helps


      Regards, Sidhu IF YOU DON'T HAVE ANYTHING TO SAY, WELCOME TO THE CLUB Dotnet @ Work Where Dotnet works... My Blog

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups