Interactive Items
Interactivity In Game
Double Doors
I need to add some kind of interactivity to the game. First thing that the character will be able to interact with will be a door. Not very interesting I know, but I'm starting with the basics. Using what I learned from the 'lectures' and blackboard videos, as well as more YouTube tutorials (common theme), I modelled my doors in Maya, in proportion to the rest of my game and had to animate it rotating on a hinge > bake animation > export animation clip > import to unreal engine. From this point I was able to create a blueprint with the skeleton, adding a collision box which can trigger the animation when player overlaps the component (touches collision box). This was easy enough. I will copy this BP for my circuit breaker lever that I will be adding too. If I can find a way to add an interact button to my project, I feel like that would grip the player slightly more and make them feel as if its actually them doing the interaction.
At the moment, it's the game. For the circuit box I repeated this
blueprint.
Forklift
I wanted there to be a section of the game with a forklift that you would need to interact with to get to the end of the level. Modelling a forklift isn't the easiest thing in the world so it took me a little while to do and UV. Next was animating it but when after animating and exporting into unreal, I stumbled upon a problem. The collision for my skeletal mesh wasn't working properly so the end animation didn't have an updated collison, so where there was supposed to be a change in collision after the forklift arms went up, there wasn't. and it stayed in place. I couldn't find a way to fix this so instead, I reimported the forklift as two meshes as a single object (forklift arms and main forklift) and from that point, I did all of the movement in the arm and box in unreal. This was a lot easier, using collision boxes and wold translate nodes to move the meshes I needed and for the collisions to work properly in game.
Comments
Post a Comment