playMaker

Author Topic: Smooth Save Issue  (Read 1155 times)

misterjuly

  • Sr. Member
  • ****
  • Posts: 334
Smooth Save Issue
« on: October 27, 2020, 04:44:31 PM »
Hello,

I'm trying to use smooth save, but when I pause then reload, I get double of my character. How can I change this? Also, whenever I use it the pause menu becomes on top of the level, unlike it was before (it was on a separate page). Help would be very much appreciated. Thanks!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Smooth Save Issue
« Reply #1 on: October 28, 2020, 03:26:34 AM »
Hi.
Pause in editor or pause options in you game logic?

maybe show a video or images of what happens and your setup

misterjuly

  • Sr. Member
  • ****
  • Posts: 334
Re: Smooth Save Issue
« Reply #2 on: October 28, 2020, 08:16:59 AM »
Heres the video (you might have to download it to play) https://drive.google.com/file/d/1LpwQ93SVM3djBgCW3OtR1vlyBhk_Il6w/view?usp=sharing

Here are pictures of my FSMs.

Also, does smooth save save your game even after you power down your game (in the final build, not the editor)? And can playprefs be used to auto save a character wherever they are in the level? Sorry for all the questions. Thanks again.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Smooth Save Issue
« Reply #3 on: October 31, 2020, 02:56:53 PM »
Hi.
The video only shows the issue in the game.

Can you show the fsm setup.

How are you pausing and resuming.

Usually Time Scale 0 is used to 'pause' a game and Time Scale 1 to continue.
But it looks like you are doing something different

misterjuly

  • Sr. Member
  • ****
  • Posts: 334
Re: Smooth Save Issue
« Reply #4 on: November 02, 2020, 11:19:21 AM »
I was able to get the pausing to work with the time scale, but does this work when you exit out of the game or go to a different scene? How would I get my game to remember where I am when I switch scenes or even power off the game in the final build? Thanks!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Smooth Save Issue
« Reply #5 on: November 02, 2020, 05:27:45 PM »
Hi.
You will need to set up when to save/load.

There is a Global transition (System Event) called "APPLICATION QUIT" (the transition is in all capital)

You could use that to save some things.
But best to save things only necessary to do on Quitting.

Christoph

  • Beta Group
  • Sr. Member
  • *
  • Posts: 254
Re: Smooth Save Issue
« Reply #6 on: November 02, 2020, 07:33:03 PM »
I had that issue just last week but with Easy Save. Basically when you save a gameobject (your player for example) and then load it again into your game, what happens is that your gameobject gets created again with the same components and settings you saved it. Meaning it will literally spawn a second time when you load it.

I bet you saved it at its start position and when you unpause your game you load it hence it spawns a second time at the start position.