Hello everyone,
I'm using Playmaker extensively in my first game, which only has one actual level, and I'm using Smooth Save to create checkpoints at certain points.
I'm using the Standard Assets First Person Controller, "Player", parented to an empty, "Player Parent", so that I can control its rotation on load (An admittedly minor polish, but I want to do the best I can). My method is as such:
Player picks up an item, which activates an empty GameObject that has the following FSM:
*Get Position and Rotation of Player and store as LoadPos/LoadRot in world space*
*Set Global Bool "Checkpoint" to true*
*Save Data Pool (Smooth Save)*
After the player dies, and the level restarts, an FSM attached to "Player" runs the following:
*Load Data Pool (Smooth Save)*
*Set Position and Rotation of "Player Parent" to LoadPos/LoadRot in world space*
Sometimes it works perfectly, other times my character is translated forward several units until I provide movement input, at which point it snaps back to the correct space.
I can run it in the editor a few times and get scenario A, then one more time and get scenario B, performing the same actions in game each time. Making a build is hit and miss as well, the issue sometimes pops up, sometimes doesn't.
Functionally, it's doing what I ask, aside from the camera glitch (the camera is of course parented to "Player"), but I'd rather a player not get outside the level, even if they can fix it just by moving around.
I'd much prefer to release a game with as few glitches as possible, so if anyone has any insight on how to fix this, it'd be greatly appreciated.