Hi, in my game, i made 2 levels, when u r in the first level, and u get some coins, they will destroy, right ? but when u go to the second level, and return to the first level, the destroyed coins return back, and the coins won’t go back to 0, and i dont wanna set my coins to 0, can someone help me pls ?
Sorry, wrong video!
You need to store the Coin’s Name so that when you load the level you check if the save has the Coin’s Name and if it does you Destroy the Coin.
can u send me a screenshot pls ?
In your Save Game object, create a String Array to store the Coins Names ( Coin Names in the image ), when you load the level do this:
where will I put this code ?
sry it didn’t work
where will I put this code ?
You can use the code above in Player’s Begin Play for example.
sry it didn’t work
Are you using Save Game already? If so, before you Destroy the Coin you should add the Coin’s Name in the Save Game’s names Array you created ( Coin Names in the image, “Coin Names” will be a Save Game property where you added the Coin’s name ).
Could you post what you’ve already done?
so will i cast to the character and then set the coins names ?
but how to save the game ?
Hey @jukabinosdosi9!
Check out this non-Epic affiliated tutorial for a basic breakdown on how to save your game:
I hope the above is the solution you need!