playMaker

Author Topic: Save a Game object location?  (Read 2097 times)

xunxun

  • Junior Playmaker
  • **
  • Posts: 53
Save a Game object location?
« on: September 19, 2013, 02:39:49 PM »
How can I save a Rotation and Location of an Object on screen and reuse that in next time run?

To be clear, this is the simple process.

1. Run game -> Get location of the Main Camera
2. Stop Game
3. Run Game again and I want the Main Camera is set at the last Position

thanks

pjrm1470

  • Playmaker Newbie
  • *
  • Posts: 13
Re: Save a Game object location?
« Reply #1 on: September 19, 2013, 02:52:39 PM »
When you say "Run game", you mean open the application and run the game?
If that's it, then you'll need Serialization.

Or "run game" means keep the application (game) open, enter the scene quit it and enter it again?

best regards,
PJRM

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Save a Game object location?
« Reply #2 on: September 19, 2013, 04:42:11 PM »
You could use PlayerPrefs to save/load the info. Or I believe I've seen other serialization actions popping up on the forum...