RPG Garage


We are a family owned and operated business. We offer honest and quality service for your vehicle repair and maintenance needs.


Today we are finally going to be doing RPG episode n This has been actually people were getting mad that I was taking so long for t I was basically just trying to plan out more episodes, so just so I have like a very chronological order that I'm going to, but now I have it set and now I'm here, So if We haven't named him yet, but we have our custom character here and he has regular walk and he can walk around and he also has sprint if we press and hold down And and then he also has j The enemy won't have chased or anyt But basically all it is right now is we're going to be making the custom enemy and we're going to be making a functioning health bar for our character. So let's go ahead and just get right into t So if we go to edit, we could see that we have our character here and t But we're going to go ahead and make a brand new object, w So let's go to objects and go to cylinder right here. And for the cylinder, I have the exact dimensions. If But for the dimensions for the alien, point 80, y equals point 70 and t So basically it's just a small very small change. And that's basically t And we can actually go ahead and attach the texture to it. So I don't know if you saw I was in the game. I have the textures right over here. So what I did for these textures is I copied the face for t I made a custom I can go into it actually. I made a custom mouth and I put little nostrils right here. I thought it looked kind of cute, but T Z minus for the texture face. And then for the rest of the body, it is basically everyt So we can actually just go ahead and connect those just So if we connect them and I'll show you guys if we go in the game right now, the only sucky thing about, And there's not really much you can do about it besides changing the block color under the actual texture. So what we're going to do is we're just going to change that to a green. So if we go to color, we have green and lime green. Let me see what lime green looks OK, so it kind of blends in a lot better. So I t So that's basically our enemy right there. So what we're going to do now is we're going to attach a touch sensor because what's going to happen is if our character runs in to the enemy, we want to take damage. So we're going to go to objects, sensors and grab our touch sensor. And then we're going to go and put it right over our alien. So if we go into the settings of the touch sensor, we want to change it to cylinder because our enemy is a cylinder and for check what, since our character is a cylinder as well, we're going to mark off those and just have cylinder. We're not going to be checking for a person because in t So we just need to do that and make sure that it's center and center with it for the touch sensor. And what we need to do is if we go ahead and I think we can actually just go ahead and connect that to our person But if we go ahead and look right now, the touch sensor is So all we need to do basically is make t So there we go. So now we can touch the touch sensor and just to verify if we're touc If we go to output play sound and sound effects, it doesn't really matter what sound effect it is. We can connect just to kind of see if it works. So we can go up to it now and it should play that sound. Yeah, exactly. So once it played that sound, we know that our touch sensor is working. So we can now just remove t So what we need to do is basically we want to have multiple lives for our character. And that'so what we need to do is we need to apply some sort of counter. So for the counter, we're going to go and take that out and we want to have three lives. So if we go ahead and changes to range, we can go ahead and put it to four because it will start back at zero if we reach four, so we'll never reach it. So it will technically be three. And I t And make sure that t So basically when we do touch it, it will count up for the counter. And we can actually verify if it's counting up properly by going to objects, special objects, and we get a n So we'll just test if it's counting up and if we have three lives. So if we go in the game real quick, our n So if we touch it once, oh, see, I forgot to change somet So we need to change t So basically what that means is we don't want to be touc We want it just to be So if we go in the game again, if we go ahead and touch this once, our n If we touch it twice, that counted as two, because I t But let's go ahead and. Is it looping? I'm not sure if it's looping. Let me go ahead and check inside t Oh, I did range. So you don't want to do range. I'm so super sorry about that. But we want to go into loop. So basically it will go back to zero. And then once it goes into zero, then it will go into retry game. So but right now, let's go ahead and see if it works now. So one, two, three, and then zero. So now that's how it should function is we have basically three lives. So if we go up to it and press, it will work as it's intended to. So we know that's working now. But let's go ahead and grab our HP textures real quick. So I made these So it wasn't extremely difficult to make. But basically what I did was it's just an HP bar and then it says a hundred out of a hundred. And since we only have three lives, it goes down by 25. So after you lose one, it will go down to 75. And if you press it again, it will go down to 50, 25 and then zero. So you'll you're basically dead. So what we need to do is we need to actually make t So what we need to do is we'll set up What we need to do is go to objects, game screen slash camera, first person and then grab our head note on. And we can just put that really anywhere. It doesn't matter. And if It's a really quick setup, but go to objects, simple objects box and we can go ahead and just connect that to the head. And I have the exact measurements for the first simple box. So for the size, we have point 80. And then Y equals point 40. And then Z equals one point 80. OK, and we're going to leave it invisible and solid just for right now, just to show And then the connection point, it's basically the opposite because it's going to be appearing on the bottom of our screen. So if we just do it So if we go ahead and look in game, we have that box that we have under our camera and wherever we look, that box will always follow us. But t It's just to connect our actual HP bar. So all we need to do is grab another object. And connect it directly to t So we wanted to basically t So I already know the exact measurements. I'm just going to do it. So point 20, Y equals point 20. And t And our connection point is going to be in front of the previous box that we just put down. So that is going to be Z negative and Z plus. And so if we go ahead and look in game, we have t And that's where our HP bar is going to go. So I can actually show that real quick. So if we go to t And actually same with t And we can go ahead and connect our HP bar real quick and see if we connect that We could see if we go in game, we have our functioning HP bar. So we can move around and it shows exactly So we can move our camera around and it goes. It only glitches when you go But I t So it won't interfere with anyt But now what we want it to do is we want it to go down low and low when we touch our enemy. So what we need to do is there's an exact way to set t So I'm going to go ahead and disconnect t So the first t What we want to do is we're going to align these upright just so that we have a good workplace to work in. Let me go and just align these And there we go. So what we need to do is. So if we go ahead and grab constants, I'll go ahead and explain t So I'm going to copy some of these constants. Just And basically what's happening is we need a constant for each one of these because these will be turning on at a certain point, basically. So for t It's going to be an output of one. Our t So it's going zero, one, two. And then for our fourth constant, it will be, of course, a three. And then, of course, our last one will be a four. So why I did t So what we want to do is give an output when each of these go on. So what we need to do is go to middle logic or not logic comparison and grab our equal sign or our comparison note on. And I'll show you what t So if we go ahead and connect our counter being zero and we connect our constant being zero as well, t And basically what that means is since our touch sensor is not going off because our actual character hasn'touched it, we still have full health. So we want to display that full health. So we can go ahead and connect t And see, just So we have it all connected and it's displaying 100 bars right now. But if we go ahead and take 25 damage off of that, we want to display that as well. So if we go ahead and copy our comparison and we go ahead and connect one to the input two and then connect t What happens is basically when we get hurt once, it will count up one. And since our constant is also one right here, it will take away 25 health right here. And that's how it will appear. And basically we need to do this process for all of them because it's going to be, So we're going to go ahead and do that. I'll go ahead and connect it just Hopefully that makes sense. I know it's kind of a little bit tricky, but that's how it works. And that's how you get textures to appear So we can connect to the bottom and then it's going to be comparing to our count up. And that will be basically 50. So that means if we touch it twice, it will display 50 because we got hurt twice. And we could do the same with t So connect that to the bottom right there and connect it right back up to our counter. So t And for our last one, we can go ahead and copy the comparison and match that up with that. And we can do the same and put it up with our counter right there and connect t So basically what's happening is I'll go ahead and explain it the best I can. But as our t So if we have zero, zero, it will equal t If we have one and t And basically it will keep counting up. So depending on how many times we touch the touch sensor, it will continuously count up. So if you go ahead and look in the game, it appears that we don't have our health bar. Let me go ahead and see why. Because it does say that, oh, of course, I forgot. So right now they're not connected to anything and they're not connected to our object, meaning that, So all we have to do is connect these directly to the object, w So we can just connect all of them to t So if we go in the game now, we see that we have 100 health. But what happens is if we go up to the alien and touch it, boom. OK, see, we lose 75. And if we go up to it again, we lose 50. If we go up to it again, we lose 25. And if we go up a last time, we will be it will basically restart itself and we'll be back at 100. But we don't want that to happen. We can actually display t So let me go ahead and oops, not that. And if we do five, so zero out of five, and that should actually display. So if we Yeah. So what we want to happen at t So all we have to do actually is since if it compares with our counter or how many times we So if we go ahead and grab. Output retry slash end slash swap and we grab a retry game. We can go ahead and connect that just So basically, once we get to zero, it will go ahead and restart the entire game. So we can do that one more time. So if we go up to it, 75, 50, 25, and then there, once we get to zero, it go ahead and it restarts the game and we're back at 100. And that's exactly what we wanted to do. And for the last step, we're going to make t So turn off the visible property off of the touch sensor. And that's pretty much it for the health bar. T I tried explaining it the best I can. But that's pretty much that. So if we go in the game, we have our perfectly functioning health bar and our enemy. So if we go up to it, we'll get 25 off just And if we go up to it again, 25 again, so now we're at half health. So we have only 50 left. And if we go up to it again, we're in our last stance. So t And if we go and So hopefully that was easy to understand. I know I went kind of fast. Hopefully But if In the next episode, I'm hoping to give our enemy or our character a weapon so we can actually kill t And I want our enemy to actually follow our character. That's what we will be doing next. Thank you again for watching and catch Bye.

Business Details

show address

show phone

Map
Hours
Mon 08:30 AM - 05:30 PM
Tue 08:30 AM - 05:30 PM
Wed 08:30 AM - 05:30 PM
Thu 08:30 AM - 05:30 PM
Fri 08:30 AM - 05:30 PM

Automotive Repair Shop in other cities