 Hello guys, CryptoGround's here. Welcome back to another idle game tutorial video. This is episode 21 and I got an exciting one today. So I originally wasn't going to do this, but we are going to do it anyways. We're going to do double layer prestige system. Yes, some very exciting stuff. So there's a few ways we can do this. It can either be based on your current coins or it can be based on your gems. So I'm going to go off of gems just because that seems a little more interesting. All right, so we're going to go to our main screen today. And I'm not going to do any upgrades related to this. This is just just a straight up second prestige system that basically resets everything or everything, including gems and your achievements. All right, now actually no achievements, no achievement resets. We're going to do that. Okay, so we're going to have a prestige button here. Now, actually we could add a second layer prestige. So let's actually do that. So we're going to have a prestige button here. And this is called second prestige. So we're going to call this rebirth. Just call it something epic. That's kind of your goal for making the second prestige system. So have an epic name to that. So like mine is hard fork and then I have grand hard fork. Now I got to think of a third prestige system for crypto clickers. Yes, I'm going to. So we're going to do rebirth for this. We're going to have just a entire screen dedicated. We're going to make this a legendary. Okay. So we're going to make our rebirth screen. We're going to rename that to rebirth screen. So I just basically just copied the rebirth one or the prestige one so we can get rid of all this stuff. And now in here, I'm going to turn off this. I'm going to grab I'm going to steal that prestige button from here. And then I'm going to paste this in here. Now it's not just going to be a button. We're going to make this cool looking. So actually, I'm going to resize this because I don't know why I keep making these screens not full screen. So I'm just going to anchor that stretch and put zero so it stretches the entire canvas, the entire parent canvas, and then put our button in here. I should I should do that for the rest of hours. So I'm going to do that real quick. So if you watch the previous video, make sure you do this too. So I'm going to do that. That that that and put everything back in here. Cool. More but organize now. So we're going to make this legendary. So we're going to do a rebirth. I'm going to add a background here because we need something new, right? So add image, rebirth BG. It's going to be our same image that we currently have, but I'm just going to change the fade. Here, let's make this full screen first. 0000. So now we don't see anything else. So that's kind of an issue. We need to put this in front of the header. So actually, the header right here should be in the front anyways. So we see the settings icon, it should go in the header. So there you go. So now we always see the header. And we have a legendary background. We have you can add some fire effects or something like that. Something I really don't know how to do. But there's a particle system. So if you want to play with that, go ahead. I'm not I'm not good at it at all. Just why you probably never if you played my game, there's no kind of special effects like that. Hopefully soon I can learn because all I know is how to do it in a 3D world, not in the 2D. So I think that's just a little different. Anyways, I'm going to start working. So let's do the rebirth button. Let's make this button wide. Why not? We're gonna have a rebirth. We're also going to have a nope back button. And now we're going to give our rebirth, the very epic color, the lighter one. And we're gonna make this extremely bold because it looks extremely epic. If it's bold, the bold, the better. So we have our rebirth. All right. Cool. So now what we can add here to make this game even cooler, we're going to steal this text from events, which is the name. And we're going to do I'm gonna put the title is title. So now we need to think of a second prestige. What should jump? Should we do crystals? Now those gems, what's even better than gems? Now, hmm, I can do crystals, I guess I need something epic, like souls, maybe we can do souls, I guess. I don't know. It sounds too generic, but we're gonna do it anyways because it's just a tutorial after all right prestige gain. We're gonna do plus one or we're just gonna do plus black souls. Yeah, that sounds pretty freaking epic, doesn't it? So we have we need a prestige current prestige current or no, no, it's rebirth, not prestige. We currently have not many souls design this however you like whatever satisfy you whatever satisfies your needs rebirth game name. Cool. Not too epic, but we got something. So now this is pretty basic, but basically these souls are just going to boost the gems. All right, that's how we're going to do it. You can make it so the souls boost coins even more or something like that, but we're going to do gems. Okay. So this should be pretty interesting in the long run. So I'm going to make a rebirth script, even though we really don't need one because it's kind of simple, but just save some organization, we're going to do that. So I'm going to copy paste prestige manager, get rid of that, rename it to rebirth manager. And we're going to add the rebirth manager script. Make sure to spell correctly new script. Okay, so we'll open up our scripts. And we this is pretty basic. We basically just got to add the public text. We're going to do souls text. And we need to import the using we need import the know the use the engine dot UI namespace. We're going to add the souls to get text as well. And that's pretty much it. Now I don't believe we need to start method here. So we're just going to jump straight into the public public run method. And okay, so we're going to set we're going to actually start because I was stupid and added decided to add the game up the prestige game object there. We're just going to we're just going to add our canvas here public canvas rebirth group. So now if public void run, if rebirth group, we're going to do the same thing here. I keep forgetting to always do this. We're going to do private, which can have a UI. What am I doing? Void UI, not in here, if rebirth group dot game object dot, right, public idle, idle tutorial game, game, we're going to do var data equals game data, because we're going to use it in the future. But basically, we're going to do if game, that rebirth group dot game object dot set active. No, it's active self. I made this stick last video too. We're going to return this. We're going to return this method. Okay. Otherwise, souls text text is going to be equal to stuff, which we need to go back to our data. We're going to add onto it. So let's add another region called rebirth for organization purposes and region. We're going to add a public big double souls. Cool. So let's check out what's our souls to get the equation right here. So I'm going to copy this equation. You can make it harder. You can make it easier. You can just add that. So but you I highly recommend you use Desmos to do that kind of stuff. It's all about the graphs. Okay, so import the static break infinity dot big double name space so we can okay, okay, never ignore that. Let me copy this. So we're going to do public big double souls to get, which is going to equal to game dot data dot gems, not coins. So if you want to make this minimum smaller, so for this video, I'm going to do e four. Now you can address that as so, of course, this would be an insanely quick game of those that small telling you that right now. So our souls text is going to equal. I'm going to do souls, this souls data dot souls. Cool. And now we need to have our souls to get dot text. And on rebirth, we will do souls. Let's do like this. Souls. Alright, and this will be souls to get. And this can be a private method. Alright, in here, we can have a private big double now this is me public. We're gonna have a public big double souls boost, which is going to equal game dot data dot souls times let's see what do we do for a prestige I think it's like 0.05. Yeah, it is. We're gonna do 0.01. So it's gonna be even less so we can do actually 0.001 because we're multiplying soul or our gems, which is gonna be quite a lot. And we can remove this right here. Cool. So we can run UI in here. And honestly, this is really it. We just need to add like the public void. Yeah, we just need to have the rebirth in here. So what are we resetting? Let's grab all of this full reset because this is all of our stuff that we're actually going to like handle. Now ignore all the red, we're just going to get rid of the stuff we don't need to we're going to ignore that we're going to ignore achievements, gems to get. And this is all so that we can go here data. No data. And then at the top of here, we're going to do var data equals game dot data. Cool. This is our rebirth. And also what we can do here is game dot. All right, sorry about that. So in here, we're going to do rebirth group dot game object dot set active false. So we can just immediately go to our, our main. So let's see, we have a main menu group, right? Is that it? Is that what our group canvases? Yeah, our main menu group. So on rebirth, we will go straight there. All right. Before we finish this rebirth, we also need to add that data before we do all the resetting when you do data that souls plus equals souls to get easier that has all we need to do for rebirth. So if you ever need to like figure out what to reset, just always grab the full reset stuff in here. Because when you ever whenever you add a whenever you add something here, you always want to add to the full reset. So you see how I didn't add the souls. So make sure you do that or else you'll it'll look weird in this when you create a save a brand new save system, because it won't initialize. Actually, I think initialize this as zero, but the full recent won't work. So make sure you add that no matter what. Okay. Why is this white? I don't know why this is white. Okay. Okay. Okay, let's apply this boost. So I think we need to add it. Yes, we do public rebirth manager rebirth. Let's go down to our boost. And we're going to add this to our gems boost. Where is that total gem boost? Cool. So what does do temp temp times equal rebirth dot souls boost. Awesome. This should work. Let's double check. Oh, let's add actually. Yeah, this looks like it works before let's add a let's add a boost text, souls boost text. And this will be in our UI dot text. And this will be gems boost gems are X better. And this will be cool. We should be done with that. It's pretty easy to implement a double prestige. I could literally add a triple prestige with the souls currency if I wanted to. It's just a matter of creativity at this point. Because you literally just copy and paste this and just do it over and over again and make sure it applies the boost correctly. So now you can do upgrades for this if you'd like to just do the exact same as the prestige and make sure you apply the boost correctly, you might have to do a total souls boost and do this exact same thing. And then you multiply by total souls boost. But I'm not going to do a tutorial on that. Unless it is highly requested. Okay. So I am trying to put out as much unique content as possible. And if it's something I really need to do, I will do it. I'll do it for you guys. So let's see, we have our souls text. So we have a rebirth current, we have our gain, which is to get and we need to add a boost text. So this should be rebirth gain. And this will be on rebirth. And actually we can, we can literally just move the title and this anchor to the top. Let's copy this current boost. It's gonna be a little smaller. Gems are better. It'll look like this. We can make this green if you'd like. Let's do that. Let's go to rebirth manager and drag our rebirth group. Save. We need to add the rebirth. So you cannot call information if you'd like, but I don't I don't feel like doing that. So if you want me to do tutorial again, any recommendations, please just request I need stuff to make videos on. Comment them below. Just at least it's something not like totally like full on like make a multiplayer like 1v1 stuff like that. Daily rewards. I haven't done it for my game. I know that's been highly requested. So once I do that for my game, I can possibly do a tutorial for you guys on that too. So yeah, just honestly request as much as you can because I really need like provide a list if you need to and I'll do what I can because I really need stuff and this one. So the guest will be this back button will be game manager. Change tabs and this one will be rebirth. I don't think I have a rebirth navigation yet. Yep, we don't. So let's add that real quick. Rebirth. And since I'm smart, I actually added the rebirth group and I'll add it down here for disable all because we want to make this false. Cool. We are good to go on that. One more thing that we need to drag. We are good. So here's the rebirth screen. Let's give it a go. Let's turn this off. Let's go to our main screen. So this might not work, but we'll see. It's pretty simple concept. Yeah, I knew we were going to have an issue. What is it? All right, we forgot to drag our rebirth manager. I totally didn't see that in the list. All right, we are good to go. So now if we go to our rebirth, it still goes there. Why? I thought I changed that. Second prestige. We can honestly change this to rebirth screen. Yeah, I didn't change it. So make sure you change your rebirth button. This is a rebirth button. Make sure you change the name properly, save, always save. Make sure you're on GitHub too. Private repositories always help. Rebirth. Yeah, we got one more thing. I promise this is the last thing we're going to need to do. We need to go to our main script and we need to go to our update method. Yeah. So right here we just do rebirth.run. Cool. And now we go back to our unity. Once it loads, this should work. The UI should work. So the prestige itself probably would have worked. All right. Cool. So now let's change our, so gems are one point. So we need to do that again. We need to add the notations thing. So let's see. Let's go to gems. Let's add four or five, six, seven. Okay. So I'm going to actually do this real quick. This is very annoying on how I don't even like have this yet. So I'm going to add this parentheses. Hey, how writer doesn't automatically add this that makes me so mad. I hate it. Okay. Let's do our rebirth stuff real quick. Okay. We need to do game dot notation method. This is one of these methods I kind of wish I put in the methods class. I don't really feel like changing. All right. So first of all, let's see if it saved. We need to try that rebirth thing. And then we are good to go. It shouldn't look really messy. Yeah. So that's a lot better. So now the, the gems are hiding behind the watch ads button. So you can fix that by just going to your header, going to gems and just moving it to whatever you like. I know that looks kind of ugly, but you can fix that. But we don't have ads. So I can just hide this button. All right. So let's go to our rebirth. Cool. So let's rebirth. Let's see if this works. All right. So, so it didn't go back to our main or upgrade screen is hidden because we don't have anything unlocked. So it did wipe our achievements. It looks like no, it didn't. No. So, okay, that's the cool thing. It wipes. It doesn't wipe your achievements. It just, it's just your stats. I guess you keep the level so you can keep the boost. So yeah, obviously you need to move this down. Prestige looks like it wasn't reset. But the rest of it looks like it was pretty good. So let's go to rebirth. We got our souls. So gems are 15 times better. Oh boy. That is two OP. The back button isn't working. Why is that not working? So yeah, obviously this is very buggy rebirth. Okay. So we have a few things we're going to try to fix real quick. So the levels are not resetting. So I'm guessing, why are they not resetting? No, I swear. I thought I had those. Okay. I see why. It's because we've, I think we forgot to add our, I swear we added our levels for the prestige. Oh, there it is. It's hidden right here. I forgot that we have groups in here. So let's just copy this prestige, add it to the new full resets. I've got to do this in the tutorial. We keep this group and get rid of all these and set all these levels to zero on full reset. Cool. So then that means we'll go to prestige manager or rebirth manager, and we will do the exact same thing. Except we got to add the data dot at the beginning of it. And it should reset properly. Okay. Another thing it's not okay. So main menu group is okay. That's why what else is not working. The back button isn't working. Why is the back button not working? Okay. So I see it's because we're go when this back button is set to rebirth when it's actually going back. So we're going to set this one to what is it main main. So now if you go to upgrades and go to rebirth and then press back, it'll go to main. So that's I mean, that should be too big of an issue, right? We can however, rebirth back. And we can just set rebirth group to false. And I don't know if that would work though. We're just going to leave it as is main. And this should all work. Which I can rebirth, I want to. Cool. So it brings us back upgrades, achievements, prestige was cleared, deal events not effective reason why we're not seeing any deal events because it's Wednesday, we don't have a Wednesday event. And it works. So let's try to get some see how this goes. All right, let's do this. We're going to add some money. That's cheating. But oh boy. This is a little dangerous. Oh God, this is a little dangerous. Oh, good. I should do automation. I need to add that I need an automation update. We're not getting enough. We need more. I demand more. Okay, we can buy some upgrades. I forgot. Yeah, I think next update is going to be automation. That'd be cool. All right. Anyways, thank you guys for watching this video. If you enjoyed it, make sure you leave a like if you're doing here, subscribe to my channel and turn on the bell for no future notifications. Anyway, thank you for watching. Hope you enjoyed comment your suggestions and all that. Thanks guys.