Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: What does the SaveState attribute save?  (Read 3264 times)

0 Members and 1 Guest are viewing this topic.

skuttleman

  • Lurker
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 12
    • View Profile
What does the SaveState attribute save?
« on: March 02, 2012, 03:09:52 PM »

I'm pretty new to Wintermute (defected from AGS), so forgive me if this question is very simple, but does anyone know what entity attributes get saved when leaving/returning to a scene? I get that it saves the sprite, but it doesn't seem to save anything else (that I've checked for so far). Is there a way around this other than creating library-of-congress sized arrays to save attributes (like entity.Interactive)?
Logged

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: What does the SaveState attribute save?
« Reply #1 on: March 02, 2012, 05:51:40 PM »

Hi skuttleman and welcome!

You probably want to check in the SceneEditor on the Properties tab

"Remember nodes states"
"Including sprites"

Did it help?

Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

skuttleman

  • Lurker
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 12
    • View Profile
Re: What does the SaveState attribute save?
« Reply #2 on: March 02, 2012, 06:13:18 PM »

Yeah. I got that far...

What I was wondering is what else does "SaveState" save? I saw in the version history that it is supposed to save active/inactive. I know from playing around that it saves the sprite. But it doesn't seem to save, for example, the Caption if I change it at run-time. Is it too much trouble to ask for a list of saved attributes so I know what I need to make global variables for?

Thanks!

P.S. I am really enjoying using Wintermute. Thank you for a great tool!
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: What does the SaveState attribute save?
« Reply #3 on: March 11, 2012, 10:17:57 AM »

It stores activity, alpha color, caption and (optionally) the assigned sprite.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.027 seconds with 24 queries.