Can you please tell me how to create a Checkpoint in a C++ 3D game so that the player can move from street to room?



The author posted a question in Programming

Can you please tell me how to create a Checkpoint in a C++ 3D game so that the player can move from street to room? and got a better answer

Response from
In a 3D game on what engine? And create a checkpoint or movement between locations? Well, without the details Checkpoint: A. 1.Take all game state variables, including position, health, and anything else player A. 2.Put them in file B. 1.When loading from a checkpoint, take this file, set all game state variables to those in file B2.Show it to the player Moving from a location 1.Hide from the player's view what's happening on stage 2.Destroy the current scene 3.Load a new scene 4.Show it to the player Something like this?

Response from 0[+++++]
In a 3D game on what engine? And create a checkpoint or move between locations? Well, without the details Checkpoint: A. 1.Take all game state variables, including position, health, and anything else player A. 2.Put them in file B. 1.When loading from a checkpoint, take this file, set all game state variables to those in file B2.Show this to the player Moving from a location 1.Hide from the player's view what is happening on stage 2.Destroy the current scene 3.Load a new scene 4.Show this to the player Well something like that.

 

To answer the question:

Name*

E-mail:*

Reply text:*
Verification code (enter 22):*