Winning Logic
In this chapter we will take yet another step towards finishing up the game by creating the Winning
blueprints once the conditions. In addition, in the video below, I have also added a crosshair to the HUD widget so aiming is easier.
In the previous chapter, we set up the logic for winning the game and as we saw in the video, we just used a PrintString to make sure that our code is working as it should. Now, we want to make a new function in the GameMode
that we can call instead of PrintString. This function sets the input mode to UI only, creates WPB_Winning
and pauses the game.
In addition to this, we want to make sure that once we reopen the FirstPersonMap
, we set the input mode back to Game Mode Only. We do this in our level blueprint.
Tack för dina kommentarer!
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Awesome!
Completion rate improved to 4.17
Winning Logic
Svep för att visa menyn
In this chapter we will take yet another step towards finishing up the game by creating the Winning
blueprints once the conditions. In addition, in the video below, I have also added a crosshair to the HUD widget so aiming is easier.
In the previous chapter, we set up the logic for winning the game and as we saw in the video, we just used a PrintString to make sure that our code is working as it should. Now, we want to make a new function in the GameMode
that we can call instead of PrintString. This function sets the input mode to UI only, creates WPB_Winning
and pauses the game.
In addition to this, we want to make sure that once we reopen the FirstPersonMap
, we set the input mode back to Game Mode Only. We do this in our level blueprint.
Tack för dina kommentarer!