 Hello guys Crypto grounds here welcome back to another unity anti-mire dimensions video this episode 5 and today We're gonna be working on our dimension galaxies, and I think I also want to work on some other improvements in this video So let's check out what we have so far So we have our take speed we have our dimension shifts, and we have all this going on Also as I'm explore actually, I don't really need to go through this all because that defeats the purpose Or that makes the video longer, but anyways, I know it's been a really long time since I've uploaded this video I've been really busy with crypto clickers and other stuff and yeah So I need to get that stuff out of the way since this is like an extra series and yeah, we're back So if you enjoy this video make sure you smash a like button subscribe my channel If you're new and turn on those notifications if you want to get notified for our future videos and live streams Comment all your feedback compliments questions all that good stuff below and let's hop into it Okay, so first of all we need to Open up anti matter dimensions. We need to learn what these do so I'm gonna open that up and I'm gonna open up my note documents So we can observe. I forgot where I put this file. Oh Hello armbar. It's welcome back I Think it's oh man. Where'd it go 80 series notes? Okay? So all your way nothing happened. Yeah, I know more Okay, so we don't have any notes Okay, so we need to explain what dimensional I'm not any Okay, so sorry about that. Oh, it's okay So Dementor it's anti-matter galaxies. Sorry anti-matter galaxies is what they're called Okay So the initial cost is 80 dimension or eight dimensions So in its cost and I know it grows at a constant rate So we can we can just put that there Dimensions, yeah Growth we can put growth in here. Okay, so I don't really feel like getting back all the way there So let's let's use my magical commands Okay, so if we get 80 it resets everything above, right? We obviously if you play this game, you should know that by now everything above okay even tick speed and Dimensional sacrifice now does dimensional sacrifice reset on with this so I'm gonna Export the save or quick because I don't want to get back All right, so let's do an anti-matter galaxy and let's see what this does Okay, so it looks like we're getting an extra multiplier, but I'm guessing this is from achievements. Yeah, right here Okay, so let's see. What does a galaxy even do it gives it a? Uh Oh, it takes speed boost I see Okay We don't have our tick speed here anymore. Oh, there we go. So now this increases the interval by 12 or by 1 percent So I am assuming that's all it does because when we Yeah, it's only giving us times two. Okay, so we lose a lot of our progress But we get a tick speed boost So that should that should be pretty easy since we have an equation for that And I'm gonna set that user interface and load my script. I'll be right back Okay, cool. So I have made the interface which is just you know right below it just like What we have and on in the real game also This is just completely popped in my mind. I will try to make a news ticker here Now I'm not really sure how this animation works, but I'll I'll give it a shot. Why not? I mean, I think that'd be a cool aesthetic to add, but we'll see Okay, so we opened up our script wherever it is right here And I think I do dimension boost inside dimensions Uh, yeah, because I do this way is in game controller. No, it's not. Okay So tick speed is what I wanted to show you right here so The tick speed caught oh the tick speed right here So you see this is 0.89, right? If you remember from the last video do 1 minus 0.89 This would equal 0.11, right? So what we're gonna do is that I don't know if this is actually 1% or not I'll have to do another um galaxy just to test that theory But if we just subtracted by 0.1 0 1 Then we add that percent. Okay We can also just multiply this by 100 and oops not like that With parentheses like that. Okay So let's let's get another One of these going. Okay. So now we need 180. Oh, this seems a lot cheaper Yeah, what if we buy some of this? So now this should be 13 percent, right? Oh man, I keep I keep hating hating to do. Oh, yeah. Oh, it's 14 percent now Interesting interesting and this requires 280 Dimensions, I don't believe we will have I don't think we can do that I don't know the equation that might be something I'm gonna have to do Or look up again, I hate having to look up the equations because I feel like that's just like makes Makes it a little less challenging I mean making the game itself is not challenging, but it's it's just a lot of prepping and fixing bugs Okay, well, let's try this again Again, I don't think I can afford that So that's gonna be a little annoying. Can we at least maybe Look up close to infinity. I don't think so. Oh, man, that sucks Well, I could unlock break infinity and find out what happens there, but I really think that I'm just gonna look it up So according to this article, it says that this reduction is increased by 0.0 x or 1 x for 1 galaxy 2 galaxies and so on So again, these equations look fairly different But it doesn't matter the time the the math in my case is right because it's the same thing But we need to figure out how they get this. Okay. So one way to do it is by Again subtracting these two together And it looks like it multiplies by 1.01 times. Okay Okay Let's see here now. I just need to find a variable in order to see what I need to subtract from So if we do it without it, what do we get? 0.11, right? So if we multiply this by that We just need to figure out how they get to that 14 percent and I This honestly this explanation is not very clear Because I don't understand All of the above will happen This much One divided by one minus 0.11. Okay, so that's a little different from mine, but it has the 11 percent here Okay, you see how my like, I don't know that this doesn't make sense um Yeah I don't I again, I don't know I'm guessing this is just I don't know Uh a good way. I guess we can try is by doing this ourselves We just multiply it like this and we subtract And I don't Okay, I see so now if we divide 1000 by 0.89 We get the same number here we get from here. Okay, so our equation matches. That's good We just need to find out how it gets to this. So I don't know what this means right here Is increased my zero. I don't know what that means though. That's the thing um I'll I might have to do some research or maybe ask like the antimatter dimensions chat for this because Like what is it? I don't know what this means Because this is less than that for sure And I don't think it's multiplied by that I mean We can try I don't think that's the case. I wouldn't make any sense Yeah, that yeah that doesn't make any sense The only thing I can think of is that What it means is that it's increasing by 1% but that again that doesn't make any sense because two galaxies is 13% so that looks like or 14% right Unless it's like 13.5 and it's just rounded. Okay now So we need to find this reduction here So we knew the second one Let's actually add this to our notes before we forget. So we have that and that equals Whatever this number is right here and we rounded up to four. Okay And now let's say we subtract percent from it. So we just do 1000 times 0.88 instead Now our tix speed is just a slightly less Okay, but again, this is just an estimate. So I'm it's probably not even correct Okay So now we divide these two together and we get this number right here And we round it Or truncate it in this case Um, so let's see do our numbers kind of match up. I don't know So the thing is I just don't know what this inter what this amount is being increased by Okay, so I'm gonna do some more research. I'll let you guys know what I figure out Okay, cool. So looks like I was chatting with the them for a bit So it looks like this guy here He kind of directed me to look at the code and he also suggested that it's also based on if the galaxies are less than three Okay, so also he showed me this if statement, which I also found here. So cool. We can find this Well, it's not exactly the galaxies, but if the player if the player galaxy is equal to zero Then we have a space multiplier. So that's good. I was doing the right thing Sorry, I got so yeah, I was doing the correct thing here. I have the correct multiplier. So I'm pretty happy about that Um, so at least I know I did one thing right Um, so yeah, I am looking at the code. It looks way too complicated. So I'm gonna try not to dive too deep into it But it looks like Uh, so this is also the greater than three So I noted this equation two because I this is obviously this is gonna be very difficult to come up with So And let's see what else did he say. Yeah, so pretty much is a much simpler equation. So If galaxy is equal to zero then it's 11 percent, right? otherwise it is um It's adding by two if the galaxy is less than three. Okay, so that means the third galaxy Well, this is less than three, right? So this is only for zero one and two. Okay so Looks like uh Looks like they aren't needing me anymore. So cool. Let's hop back into this So I have noted these All right, so we need to figure out how to get this percent thing to work So we know by default the multiplier is zero point 89, which is also just um one minus point 11 Uh, so we can just write that down here and we can also see this in the equation and the guide here So, uh Are something like that. Yeah, like that Okay, so now what we do here is that we want to uh, we we know that the percents are 11 12 14 And 16 actually not 16. So but just for margin of error, we're going to do 16 percent So I was actually correct on this part. So that's good Someone said it was 12 12.5, but that's not true. I guess So we know that these are the correct percentages and it looks like our math somewhat lines up except for 40 Percent, so I don't know what happened there, but that that's incorrect. That might be something wrong with the guide Um, so we can simply just start Doing math. So we have our 11 percent already uh We have point 88 for zero minus 0.12 and so on 16 and obviously this is pretty easy to make an equation with So we have six and four 84 Cool. So here all of our multipliers here So now let's make an equation. So we have our base, which is 0.89 And all we got to do is subtract it by uh, we're going to have to use a question mark operator So we need to determine if the galaxies Is equal to zero If it is then we're just going to subtract it by a zero. We're just going to keep it as 11 um Actually, do you know what? I The base equation is 088, right? Let's do that. So 088 and basically if we have zero galaxies We need to set this to back to 11 percent. So we are going to subtract it by zero point So we're going to add 0.01 to it. Okay, so we do that by doing negative 0.01 because we are subtracting here Otherwise we need to run this off of an equation and this is where we uh do galaxies Basically just galaxies times 0.02. Okay, it's a pretty simple equation Let's save this document and let's try to implement it Um, we don't have our galaxies in the data yet. So let's add this Two hours. So we're going to do public big double again. This can probably be shorter like maybe uh an int But I want to be safe because I forgot how big Um, this number could go so if we need to Change this variable we can do that But we're just going to keep it as anti-matter galaxies as a big double Okay, and now in our constructor. We need to set this to zero So we have an equation here that we need to implement. Oh shit my dog's barking Okay, so let's copy this here Okay, so uh, we need to access these two Yeah Cool, it looks like our equation will work just fine um Yeah, so if this is one then it's going to subtract it by that much Uh, no Right. Okay. So when it's one we need to have it as 0.88 I think that's right. Yeah So we need to subtract this by one Google play Google play is a mess. Sorry. Um, I'm just having issues with them Okay, so now if we have Yeah, this should be perfect because now what we'll do is that it will just I mean, this is not a friendly equation Obviously, this could probably be truncated to something a lot easier To look at and something a little more pleasing But this will be fine. It's not the end of the world. Just at least we know that it will work And we can try it too. So we also have this 11 percent here. Where is that? It's somewhere in here. Uh, I think it's right in the string right here No, is it in the dimensions? Where is our 11 percent? Oh, I guess we have to add a text for that so Let's add a public TMP text a t a text must pro text and this will be our tix speed Reduction text Cool and this will say I don't feel like opening the game because it's going to have to load, you know what screw it. It's fine Um, and all of this is updating every frame. So that's not good So what i'm going to do in a future optimization video Is that I can move this stuff like tix speed reduction text I can move it to the start method And I can do it whenever I, you know, have to increase it Which is obviously when we do a galaxy So that only needs to be run just a few times pre infinity, right? So that's very good. Just things to know you can do So I'm going to create this text here and I'm going to Add a note or a to-do here. I don't know about visual studio But in writer you can add a to-do and it highlights it and it's really nice. So you can so catch your attention so I'm going to Add this to to-do list which is move this to the start method and whenever You do a anti matter galaxy It's the same thing with the tix b2, right? It's just some other things that we are eventually going to have to move Okay, I was like, what happened there? I was like, why is it why does it look really odd? Okay And this is going to equal to Reduce the tick interval by 11 percent. Okay reduce the tick interval by Blank percent. Okay, and then we'll put curly braces in here And basically our equations right here all said and done And we just subtract it by one Prod it and multiply this by 100 Okay, so let's test if this works. So let's put this in here And let's just I don't know we can get rid of all this Cool. Oh Right there. Cool. So now I'll say 12 percent 11 percent. Okay 11 12 14 16 Awesome So this is fine here I'm going to also add an f zero because we we need to see one decimal Just in case Okay, so now we need to do this Dimensional galaxy here and this is going to be right below our dimensional shift or yeah Just to keep it organized To our yeah anti matter galaxy Hashtag end region. Okay And we can simply copy and paste these methods Uh, this dimension shift cost can come with us too And we will go into this Galaxy region here. Okay. So now we're gonna buy a buy anti matter Dimension galaxy Make sure you change your labels And it's gonna be a galaxy reset, but I said it's basically it's gonna be the same as a shift reset So we're gonna call a shift reset And we're also gonna reset some other stuff. Um, it looks like we forgot to Add something with our shift reset, which is the data dot sacrifice boost So we're gonna set that equal to one I believe that's all we need to add Is there is that it? Oh the highest first dimensions. We also need to get rid of that Yeah, we set that to zero Okay, so I forgot that so make sure I hopefully you got that If you're following along and doing this with me And we can close this dimension shift Okay, so This cost thing I don't need to do for now Uh, let's just ignore that And let's have this shift reset. So what it also does is that it resets our dimension shifts too And we can just take data dot Oh wrong script Data dot dimension shifts And we're gonna set that equal to zero And I think I don't think we need to do anything else I'm afraid That we're forgetting something Yeah, I don't think so If we, well, I mean again, we'll test it. So I need to add key binds I think I want to do that after this episode because it's going to be very annoying to test when I have to do that Or just add like a debug and just I don't know Okay, I'm trying to think of the is there absolutely anything else I need to do Reset all previous progress. I think we have it. We have the sacrifice. We have the dimension shifts And we just need to Yeah, we'll call this galaxy reset here And add to our antimatter galaxies And we need it cost. Where is this cost? Okay antimatter Dimensions cost Cool. Also, I think this was yeah, this was this right here doesn't we can get rid of this Now why was this happening is because we need to shift our cost to the certain dimension So remember originally it was fourth fifth sixth seventh and then finally eighth So we just need to change that Okay And I don't know the cost equation yet. We will have to experiment actually we already we've already done that We've already done that We've already done one So it goes from 80 to 150 to 200. I believe is what we saw So it goes from 150 to 200 I think I hope it's if I can I change how many galaxies I have I doubt it, but we'll give it a shot Oh, it's 140 Okay So the change from 80 to 140 is 60. So it looks like it's increasing by a constant Okay, and let's back this up By going to antimatter galaxy the cost Or n is reduced to 71 infinity upgrade. Okay. M is M is 60 by default and 52 with relevant time study. So we don't need we can ignore that So basically it increases by 60. That's a very simple equation. It's very nice Okay, so we can get rid of this shift thing because we don't need that Oh, we might need the actual shift though Uh, we can probably get rid of this method in general Yeah, okay, so if dimension counts and we already know it's seven right Is that how we check it? Yeah, okay So and the cost is equal to game data dot antimatter galaxies times 60 I think Uh, time 60 plus 80. Yeah, and I don't think we need parentheses. See I I suck at the parentheses I don't think we do. Yeah, that made sense. Okay. I just double check because I feel like I do And I think that's it honestly, it's really that simple There's not that much we needed to do here. We just need to figure out that tix speed equation But the galaxy itself is really easy since we do that Okay, so we need to add some user interface. So we have a dimension shift button in text So let's do that With the antimatter galaxy I should have shortened these variable names. They're getting kind of irritating to type out now Okay, and we're just going to go to uh Wherever our text is Okay, and the text is equal to uh, antimatter galaxies And it's just the number here Uh, let's see antimatter galaxies. Oh, okay. I see now And it says requires yeah I hate the lower case requires blah Um 8th Gosh, I I cannot spell 8th. 8th is spelled very weird. I hope I'm not the only one that actually Is weird with 8th. I know it's 8 and then I don't know 8 is just spelled a very weird Dimensions, okay And now in here, we're just going to put a variable. We're going to make this We're going to add a dollar sign so we can put text in here string interpolation And this is just data dot galaxies cool And the cost is galaxy cost yeah Antimatter dimensions cost I'm I hope I'm pretty sure if someone noticed that they're probably like what the hell is he doing? Wow antimatter dimensions cost one dollar Okay, so we have our text here. We also need our button and basically this is just the same thing as the above And I could probably make a method out of all these buttons too Just to clean our code up because it's it's getting a little messy Um Active dim shift. Oh It's seven And our cost is replaced with that Done. We are done with our user interface and our Galaxies in general. So let's test. I'm a little scared And also forgot that we need to show this Dimension shift at a certain point. I think Uh, I'm going to export and I'm going to reset real quick. Is it shown at the start? Hello the game freeze. Oh Yeah, I saw it at the start Okay, cool. So it shows that starts. So we don't need to do any fancy stuff with that Okay, so we need to assign our button Into by antimatter galaxy And we don't need to change our text. We just need to assign them to our uh Uh Tick speed reduction. Oh, yeah before I forget we want to do Current tick speed. Oh, that's the description. Oops Right there. Okay our tick speed Description is to reduce the tick interval by 11% Okay, so now our dimensions manager is where we need to drag our new stuff So we have our button text, which is our right here. No, no, no. It's our name Okay, we're ready to go right here. And then we drag our button into the button slot. Okay, let's save it and Let's hope the game doesn't go to shit Oh negative two percent. That's not good Oh, man, so clearly our equations are I guess they're right I don't know what happened with the text. I'm kind of curious to see what happens if I buy it Oh, we're getting negative. Oh, man Okay, well our equation is screwed. That's for sure. I don't know what wrong there. I thought it was good I think it's something to do with this minus here Well then so we are what we're displaying here is minus two Negative tick speed Uh, we're getting negative two percent So a good way to find out what you're doing wrong is to take this Take our equation that we developed type and print and oh, no, we don't want to print that We want to print what our tick speed is Okay, so it says it's negative 0.02. I don't know how that happened I don't know where this occurred I think it's something related to this question mark operator in all honesty I feel like we need something around there. Maybe is that actually it? That's weird Oh, I'm I'm guessing it's because it's it's because of his parentheses right here. Maybe I don't know that's strange I don't know why it's it's doing that Well, let's see Oh negative two percent. Oh never mind. We're good Okay, well now we know what to do Let's put parentheses around question mark operators. I guess that's a rule of thumb now I don't know question mark operators is a little weird when it comes to this because I thought it goes I thought this colon goes all the way to the end Or something. I don't know. I thought I thought that's how it worked I thought that would be valid, but I guess not. I guess it's the parentheses around that statement. It gets cut off there I don't know order of operations encoding is a bit different Oh, we got 102 xp now Well, I I can't tell if that looks right I mean it's dividing the tick speed Oh my dog's barking again cool Well, this Is not correct so But okay, so it said 1 minus 0.89 Okay, so we times that by 100 and it should display. Okay. I think we're multiplying the wrong things No, we're not. Why does it say 102 percent? I don't get it. I don't understand why this says Okay, that's where you do more printing and this time I'm gonna do it without the one Okay, so let's see we have 102 and minus. Ah, man, we screwed up again Well, we had it correct Well, I don't know what what what I what did I do? Like I fixed it and then I screwed it again Okay, cc here Oh, I put the parentheses around the wrong thing Okay, it looks like this one didn't mind. Oh, I didn't even okay Interesting. I'm just gonna keep it like that. Obviously I could This is bad practice right here, but I want to see that this is 88. So I'm just gonna keep this constant here I mean, okay, I should get rid of it Okay, fine I don't I don't know. Okay fine I Oh, okay, it will work the same Okay, it's just look to it's just weird to look at I'd rather have readable code Hmm. I'm so tempted to just bring back that one minus 0.82 the 88 Okay, oh And I'll starting at 13% god damn it. Okay Whatever It's still subtracting. Okay. I don't I don't know what's going on here. I feel like our galaxies are Don't like us right now I'm just going to put this all together In ugly formatting. Yes. I know this is a lot of weird Uh, I don't know what's going on here one two one two. Okay This might work now I don't know why I was 13% though. That was weird because it displayed one 89 that's 11% so I feel like we have some thing wrong Oh, now this is negative. We're just getting better and better I think it's because we're multiple multiplying by the wrong damn thing again Okay, I'm I'm just gonna keep up there. I don't know what I changed and I don't know why why this is just this is not supposed to happen uh, man 11% please 13% where are we getting 13% from? I don't get it Because I last time I remember we really have zero galaxies, right? Uh, let's try doing the math ourselves. Okay, so if it's equal to zero then it's going to be minus that done simple We can just get rid of all that Oh, I see here It's Oh, it's supposed to be adding. I think I see why that's happening Yeah, it's because we're subtracting from one here But what about here? Are we doing the same thing here? I don't know Because if you do 0.80, I think we're That why did that not work there? I think I think I see why okay, so now if it's this is the fault, right? So this will work just fine, which is why our um tick speed upgrades. We're actually working But once we get out of that phase we start doing by uh, 0.02 like that, right? So then it starts subtracting Okay, however in here we're subtracting from one. So we kind of just got to do um I I again, I don't know why this is Um Why it's doing this, but it's fine if I just switch that to a plus it should work just fine Anyway, we can test this by buying a few uh galaxies even if they work or hopefully they work Okay, cool 11% finally man Does it actually work? Yeah, it does nice Uh, does the bimax even work? I think the bimax is still broken Does the bimax even do I even have a bimax? I don't even oh, I don't even have a bimax. Okay. Well, that's another do Uh, I think I gotta do Okay, I thought we'd go to the top Bimax, okay. Well, I'm just gonna add some Dimension shifts Cool, I like how it automatically changes. That's very nice very nice of you And we will give ourselves some free antimatter Okay, so let's see what happened. This should increase to 12% awesome So now does the tix speed actually work beautiful just beautiful Okay, well now we can add some dimension shifts Okay, so now let's see this should be 14% Yes, man. Yes, so glad that works cool and Yeah, the bimax can work. Okay, cool. So we know this works. Perfect. That's awesome Anyways, if you guys enjoyed this video make sure you smash that like button Subscribe to my channel if you're new and turn on this notification so I get notified for future videos and live streams Comment all your feedback questions compliments all that good stuff share this video and series with anybody else even the antimatter dimension antimatter dimensions That's a lot of words community if you'd like I'd appreciate it And maybe give hopefully give them some attention that I'm Doing this fun project even though I've already kind of talked about it in the discord. Anyways Anyways, okay. Keep that aside. Thank you guys for watching and I'll see you guys in the next one which should be on bimax and Infinity so I'm think yeah, I think I should do the bimaxes. Anyways, thank you guys for watching. Peace