 So, I guess we've come to a point where Unity is just deleting my scripts for no reason. My big double script, gone. I mean, I still have it back up, but it's gone. What? Seriously? Come on. Hello, guys. It's Crypto Grounds here. Welcome back to another Unity Antimatter Dimensions video. This is episode three, and today is going to be a short one. We're going to be doing Tick Speed, finally. So I was thinking about doing a Dimensional Sacrifice, but I was like, that's kind of pointless because we forgot about Tick Speed. I mean, that's the thing, right? So we're going to do Tick Speed quickly as soon as I fix this annoying issue. For some reason, Unity likes to delete my shit. All right. Well, it's a simple fix. I just got to go to another project that has it and just copy it over. I don't know where it would go. I don't know if I accidentally moved it or something, just like without paying attention, but it's just gone. See, it doesn't even exist in here, which is weird. And yeah, that's the fixer issue. Also, if you want the files for the big double makeshift, check out my Brick Infinity Unity Idle Game Tutorial video. All right. Anyways, if you enjoyed this video, make sure you smash that like button, subscribe to my channel if you're new, and turn on those notifications to get notified for every single video and live stream. Comment your feedback, suggestions, and all that good stuff. Compliments. I'll accept anything. If you want to support me, my Patreon link's in the link. My Patreon is in the link in the description below. There we go. I said it. All right. Let's get on with it. So, in order to get this started, I think we're just going to do this in our main. I mean, if we play here, let's load up anti-matter dimensions. Synergism. Run in the background. Why are you away? Nothing happened. Are you serious? Oh, okay. I have dimension moves. Did I just lose all my progress again? I really need to do Bymax eventually. So does tix speed? So tix speed is always here. So I would say this is part of the game controller. So let's open up game controller. So this is where our stuff is. And let's see. We need to add some user interface. It's just two buttons, a Bymax for tix speed and our current tix speed. So let's do that real quick. All right. So this is what we have here. I have made these fonts, or at least text smaller, and I've added our buttons here and our tix speed. All right. So I'll probably not get Bymax done. I don't know. We'll see how much time I have and if I can get it done as fast as possible. But let's get started. Are you serious? Am I still having this issue? Okay. I'm just going to ignore this because this is kind of stupid. Hi. Okay. Whatever. I'm just going to restart my ID real quick. Okay. So while this is reloading, I don't remember if I did this last video, but I took some notes here. Tix speed right here. So basically it's our current production. This is how we're going to calculate our tix speed, I guess. So that's this right here. That's production divided by current speed divided by 1000 and this is grouped together in parentheses. So excuse me, this should be pretty easy to do. Well, I'm actually shouldn't be that bad too. If this is still read, I'm going to be angry. Okay. We're good. Okay. So we're going to need using break infinity in here and using static break infinity. Okay. So let's add our text. So we have, I'm going to add the tix speed text because I know that 11% changes eventually. So I'll add it when that happens. So this would just be a tix speed text, TMP text, get out of here. We also need a, get out, come on, why is it doing this to me? We need a public TMP text, tix speed, cost text, okay. So now we need to display it and this is just our tix speed. Okay. So tix speed dot text is equal to tix speed and I don't have the variable yet. You will eventually and divided by 1000. Okay. So how are we going to calculate this? Well, we need to go into our data and add a, not a U-sure, I'm going to add a big double for this one because I'm not unsure on how big this is going to be. This is going to be a big double tix speed levels, okay. And we're going to add this in our constructor as zero. And we need to calculate this. So this is, it's reduced by 11% every time. Okay. So if we go into Desmos, we're going to construct an equation. Okay. So we do 1000 times 1.11 and we do this to the power of x. Okay. So now this looks like an exponential equation and it starts here, which is not what we want. We don't want this to keep growing. We want this to decay. So we do negative x. Okay. So now if we start, we should get 1000, 900, 811, 731, 658. Let's see. Do we eventually get to what we have here? That's 233. So let's just keep going, 9, 12, 13, 233. That should be 14. I think I have 14. It looks a little off. So our tix speed is, our cost is, okay, so we've bought in like 50 so far. So what does this lead us? That's not good. Divided by E3. Okay. Used to tick interval by, okay, maybe I have an idea. Let's try 0.11 and then instead of negative, oh boy, does that look right? That is definitely not right. That is definitely not right. So I think we were on the right track here, but it seems a bit off. Oh my God. Is this seriously like it right here? Is this really it? Oh my God, really? It just took me like a second to figure this out. It is, oh my God, that is so frustrating. Well, I mean, let's just see if this is accurate. So let's just keep buying these and let's compare. So we're at 705 now. Yeah, that's pretty damn close. Yeah. 4, 1, 2, 3, 4, 5, 9, oh, 9. I'd say this is pretty accurate. Okay. Well, that was probably the biggest waste of time I've ever had in my entire life. No, I'm just kidding. But okay, well, we found out our tick speed equation, so I guess that's a good thing. So at the top here, I'm going to make, I'm going to make a, what's it called? It's not a field. Oh man, I'm having a massive brain fire right now. Okay. I'll get there in a second, but we're just going to make a variable for now. Inexpressive body form property. I'm stupid. Okay. So basically the equation is just 1000 times data dots, you know, it's POW, which is we're using the big doubles POW, 0.89 to the power of our data dot tick speed levels. Easy enough. I think so. Okay. Well, in here, we will use dot notate, and I want zero decimals. Okay. And this doesn't show up till afterwards, right? So we just get rid of this, honestly. And then we eventually have to find a way to display this nicely. Actually, you know what, let's bring that back. So what I'm going to do here is have a question mark operator, and it's after a certain amount of tick speeds. I don't know which, how many, but let's check. I think it's like, it's like 59. So okay. I don't know how to exactly calculate this, but I'm hoping that it's just as easy as I'm thinking. I think it is. Maybe, you know what, maybe it is. I think it is. Okay. Okay. But anyways, we're going to be displaying it after this anyway. So if tick speed levels is greater or equal than 59, 59, then we're going to be showing the question mark. We're going to be showing divided by, so after 100. So one, two, three, four, five, six, seven, eight, nine, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19. It's not the same every time. So it's every like 10. So it's based off of this number right here. Okay. So I think if our tick speed is, okay. Yeah. That's, that's fine. If our tick speed, if our tick speed is less than 100, then we're going to start displaying it. Okay. And we do this by, so initially there's nothing, but we start with a thousand. Okay. And let's see. And this increase, it's a 1, 3, and this increases every time. So no, actually starts at 100, no, starts at 10. It starts at 10. And it's going to be based off of our exponents. Okay. So we're multiplying this by this number two. All right. So let's see. Our exponent here is 1, 2. So I'm just going to do, I know this doesn't seem right, 1, 2 divided by 10, 3, okay. That seems about right. So we do tick speed dot exponent divided by 10. Okay. And then I think we will divide this tick speed right here by this number two. I don't know if this is correct, but we're going to try it and see if it works anyways. But we're doing additional things that was not intending to do in this episode, which is okay. And our cost is literally just tick speed cost is equal to, it starts at 1000 and it's just for now to the power of 10, okay. And we will display our cost, not text equals cost, and we have our tick speed cost, okay. And we're going to do dot notates, and this is zero. All right. I think we're good there. We need to do the buy tick speed now. So public void by tick speed, and this will be a simple if data dot anti matter is greater equal than tick speed cost. Then we are going to subtract it from the cost before we even apply the level because our equation is our parameter, our property is based on the current level. And then we add a level to it. Okay. And that's it. Pretty easy. And now we need our by max and we'll probably join these methods together to clean things up. So this is a by max tick speed now in here we have to calculate by max and that's quite hefty and a lot to do. So I might do this in another episode when I start doing by max. Okay, so yeah, let's do that when I actually make the by max for this for the dimensions then I'll do by max for tick speed because it's pretty much the same thing. I'll probably make it an extendable by max or something like that. No, that actually wouldn't work, but it would just be some other methods that I could do here. Okay. Alrighty, so we have our tick speed, we need to actually, we need to divide our production or not divide but multiply our production. So we go to our production right here. In the ending, if I can track this, that'd be lovely. Okay, I say we should just multiply by dim boost or something like this. Yeah, I think that's fine. Let's just multiply it by dim boost. Okay, because we don't have to do it twice. So in our notes, we have production divided by current tick speed divided by that. Okay, so it's just going to be, I think, I'm trying to think if I need to do this, I don't think so. Yeah, I figured. Okay, so tick speed and that is a game dot take speed divided by 100 or 1000 like that. Okay, and I think we're done. Let's give it a shot. Okay, before we can do that, we need to apply our new stuff. So let's drag in our tick speed text, which is right here current tick speed and our current tick speed cost right here. And we need to apply the method here. And that is scripts dot game game controller dots by tick speed. Okay. And I think that's all we need. Yep. Let's run it. Okay. So I haven't done the color thing yet. That should be pretty easy. And this is infinite infinity times three. So that's not good. Not a good start. Let's beat things up though, because this is definitely going to take forever. So let's see if we buy this. Our tick speed is now infinity. And it's okay. So that's not good. It's literally, oh, it's multiplying the dimension boost. That's not good. Okay, so let's fix some things. This cannot go here. That's for sure. It's got to divide our current production, unfortunately, and it looks like we don't need this here too. And we need this applied here too. Okay, what's going on here? So it looks like our tick speed is definitely less than a hundred. No, it would be a commie three. I think it's this right here. Okay. Our exponent is three. Well, our base exponent is three, and this is casually decaying. So I think our equation is not right because we start off at E3, right? But we're going to keep decreasing. So we're going to keep going down and down and further and further and further. So we want to increase this now. We could probably just grab the op, that doesn't work too, because tick speed or exponent starts as positive. So I'll think about this one. Again, I might not be able to do this this episode because it's quite like, I don't know, I might need to just like stand up, think about it for a while. And if not, I'll just cut the video short. Okay. So, so what if we, so our center exponent starts as 1 E3. What if we divide it by 1 E3, not 1 E3, well, yeah, what if we subtract these and then add three to it? That doesn't work either. Well, I think we're just doing this math wrong. Yeah, see, that doesn't work, plus 1 E3, okay, times 1 E3. Okay, so we start with this, see, that still doesn't work. Okay. Well, that was a good try. That was probably just, oh wait, maybe we got some, no, no, wait, maybe we got something here. So this is supposed to be one, right? Okay, so this is one. So if we go to E2, oh, wait a minute, I think we got something here. I think we got something here. So this is, we don't want to divide by our exponent, we just want to, well, okay, let's see, let's try to format this. Let's do big double dot pow, or no, this is just pow. So this is pow, and then the first one is just 1 E3, so we can ignore this. This is just 1 E3 divided by the power of our exponents, 10 to the exponents, okay, 10 to the exponents. And we want to multiply this all by, again, 1.23. And then divide this all by 1,000, okay, I think this is our solution here. Maybe it's not, maybe it is, I don't know, I think we can divide it by all of this. Really messy, but I'm just gonna hope this works, and maybe we can have it right here, too. Okay, all righty, let's give this a shot. It might not work, but if it doesn't, then I'm just gonna cut the video short. Yeah, tick speed's zero now, great, just as I was expecting, okay. This is very odd. Okay, now it says our tick speed is divided by 100, so it's off by 1. Like, you can see it, like, it somewhat works, but why is it displaying 0? So if we go to 1 E3, 2, 1, 0, negative 1. Okay, so it works. I don't know, I don't know, so let's say our current exponent is 1 E3. Yeah, this seems correct, but why is it doing it to this? I don't know, okay, I think we've put the wrong parentheses, maybe, no, okay, great. This is great stuff, I love math. Just kidding, I hate math. I'm just gonna put a random parentheses and pray that'll work. I don't know why it's 0, excuse me, I know, I forgot to delete this stuff. Save, come on, this is taking way longer than I was hoping for. Way longer. I'm so far at 51 minutes for recording this, oh, is this the Hallelujah moment we've been looking for? Why? Why is it more? Okay, it's like 10 times more than what it should be. Let's just keep buying them. Divide by 0. And it's always E3, so I don't think we need this notate anymore. We just need to make sure this is formatted as F0, okay? I think that's one issue here we're having. Why is it doing 0? I don't know, okay? I think it's also this right here. We need to make sure we transfer this the correct way. Oh yeah, we did forget to replace this. Okay, so let's fix that real quick. And I will remove all the redundant parentheses, so I was just kind of, I don't even know what I fixed. I think it was the multiplication, but let's, oh, syntax. What's wrong here? Oh, what the hell? Oh, I see now, we want to delete these. Okay. Yeah, my code is looking pretty ugly right now. It's okay. I'll fix it. 1000, perfect. Is this the Holy Grail moment right here? What the hell? Okay. Well, it seems like it's doing too much maybe. I don't know, because as soon as, because it just keeps multiplying, right? So maybe we need to do 100? I don't know. This is really weird. Let's just keep going, okay? I don't know. I'll probably fix this in the back end. Because for the most part, this looks good. It just needs to be another divided by 10. But like initially, because the 100 is going to show as, it doesn't show as 10,000 in here. So it's going to show as 100 for 1000 instead. So we're pretty close. I'm thinking about just adding an if statement, but I feel like that's a terrible practice. I don't want to do that. So yeah, this works for the most part. And the tick speed in general, it works. That's nice. But it feels like, yeah, this seems like, okay, it looks good. But this should be divided by 10. So divide this by another number. And you know what, screw it. Or let's add a question mark operator. I freaking hate this. Okay, so if tick speed is equal to 1000, then we're just going to display it as 1000. I hate this, but it's okay. Otherwise, we're going to do this. Oh, I see. We got to do two string, not two string F zero. Are we missing like another parentheses or something? Okay. That was stupid. I need a parentheses there, obviously. There we go. That fixes it. Okay. Well, that was bad practice, but I guess it works for now. Because I really don't know how to fix that. Okay. So it shows as 1000 and it should be good for now on. Okay. So let's just keep buying 10, 100. Yeah. And we need to show this as an exponent. Beautiful. It works. Oh, man. I need by max fast. And I need key binds too. Cool. All right. Well, that was a bit of a struggle, but we got it at least. Anyways, if you enjoyed this video, make sure you smash that like button. Show me some support and subscribe to my channel if you're new. Turn on those notifications, comment all your feedback, compliments, suggestions, all that good stuff below. If you want to support me, check out my Patreon. The link's in the description below. Check out my other videos in the top right corner. Anyway, see you guys later. Bye.