Summary
In this chapter, you learned about the importance of VFX and SFX in the world of game development. Using a combination of C++ code and notifies, you were able to bring gameplay functionality to the player projectile and the enemy character colliding, as well as a layer of polish to this functionality by adding VFX and SFX. On top of this, you learned about how objects are spawned and destroyed in UE5.
Moreover, you learned about how Animation Montages are played, both from Blueprints and through C++. By migrating the logic of playing the Throw Animation Montage from Blueprint to C++, you learned how both methods work and how to use both implementations for your game.
By adding a new Animation Notify using C++, you were able to add this notify to the Throw Animation Montage, which allows the player to spawn the player projectile you created in the previous chapter. By using the UWorld->SpawnActor()
function and adding a new socket to the player skeleton, you were able...