It does anyway, just number them 1, 2, 3, 4 etc…
Ok, then put the array in the game instance. You can write to it anytime, like when you change the mesh color etc.
But… if you want it to remember after quit and restart, then you also need to use a save game.
In fact what I would like is to save the actor variables in an array
example :
can you correct what is wrong, in this example i only load one actor not all.
Yeah, it has a few problems
I will come back a bit later with an answer, have to go now…
Ok, I looked at it again. You can’t do it like this.
Technically it’s possible, but’s it’s going to be a BIG mess.
The way to do it is for each flower to save and load it’s OWN status.
I’m gonna do a BP…
It’s like this:
- Level BP
- SG_Fourmi
- BP_Fleur_new
I’m waiting for you with firm feet
Sorry, that only half works. There is save and load, but there is only one actor that is indexed. I tried adding the index code in the save and load code, with no effect, I didn’t know where they were placed :(-
As I pointed out in my topical, only one actor is indexed correctly, the others do not receive the backup. I did check the code, the indexes of each actor, nothing is abnormal, unless I’m wrong.
](filedata/fetch?id=1812739&d=1600389106)Do I need to do something in the Game Instance?
It looks fine. The only other thing we can do is if you zip up the project and let me download it from somewhere…
Okay, I’ll put a download link, soon.
You can make the package as small as possible by making a new project and just migrating your level to it.
Here is the link :
the saving is carried out by the key “Num 0”
The different codes are in the locations you indicated, plus those.
Ok, you don’t need this:
](filedata/fetch?id=1813203&d=1600522210)You had this:
](filedata/fetch?id=1813204&d=1600522290)It should say this:
](filedata/fetch?id=1813205&d=1600522335)Try playing it like that, I think that should do it…
EDIT: No not quite, let me look a bit further… yes, so when you change the variable, you should save it. So it looks like this:
](filedata/fetch?id=1813206&d=1600522635)Do you see? The plants save themselves, there’s not need for a ‘save game’ button.
EDIT2: Sorry, I just noticed ID_Visite and ID_Fleure are the same, but…
EDIT3: Need to fix the widget also… ( hold on ).
New widget code:
](filedata/fetch?id=1813210&d=1600523563)Yeah, it works…
Ok, that’s good on my side too !!!
Thank you so much !
I’m going to study this head-to-head and print it in my little brain.
It was really important for the rest of my project
Once again, God bless you for all your blessings, patience, compassion, kindness.
Good end of weekend
You’re welcome