Save the state of an object, persistent in a Dream?
Like the “object saver” in LBP3 - sorry to even compare that with Dreams :p
I’ve got a Dreams containing several Scenes that are linked by two-way Dorrways so the player can go back and forth between scenes. I’ve set up a Variable to keep track of “points” collected throughout the Dream and that is converted to a score at the end. All good...
My “points” object is set up using a counter so the player touches it once, gets the added score, and the object goes invisible and can’t be activated again while the player is in that Scene, but...
When the player moves to another Scene and then comes back again, the “points” object has reset to its original state. I need to save the state of that object somehow, and I haven’t been able to make a Persistent Variable work for this - because I have that same object in multiple Scenes, when the player touches one, the others are also affected.
So to use the Variable, I’d have to go and make every single “points” object have a uniquely named Variable. That seems insane, there must be a better way, and I feel like there’s probably something obvious I’ve missed but I’m stuck :)
I did try using a Variable without making it Persistent, but that resets when the player moves between Scenes.
-
After posting this I got a little twitter advice from Christophe (very helpful) and it sounds like every individual thing needs its own uniquely named Variable.
So from question to suggestion:
A piece of logic that can be stuck on an object, and save the state of that only that one object, until the player resets progress in the Dream. That would be great! :) -
Please go a little deeper into this? How do I connect a crystal I made to a variable in such a way that when it disappears from being looted it wont reappear between scenes? I'm lost on variables. Do I connect the crystals power to the variable modifier directly? Or to the variable itself? Do I put it to 1?
-
I have the exact same question. I'm creating a collectathon so I also need my collectables to be permanently collected between scenes (similar to llums in rayman 2). I was hoping there would be a way to maintain scene states without creating a variable for each of the thousands of individual iterations of each collectable AND every lever bridge and gate :/
Zaloguj się, aby dodać komentarz.