I’m having issues with casting correctly to the camera to alter the value based on when my character picks up the item. The main character always successfully connects with the object, the problem I’m having is that the cast to moving camera, which is my main camera, always fails, printing the failed string, and no matter how many things I try plugging in to the moving camera object it never seems to work.
I managed to successfully make a power up in which the character speeds up for a few seconds, but this time I wanted to have the camera zoom in, dictated by the zoom function from the moving camera blueprint shown below.
Ultimately I want to cast from the powerup, which is spawned AFTER the game begins, so it doesn’t actually exist at the point of spawning, since it’s for an endless runner game that’s procedurally generated, to the camera that is always present.
Any help would be really appreciated since I’m not really sure where to take this at the moment.