So, I have been using this Endless Runner Tutorial, only I am using an actor called “Blueprint_CourseSpawner” instead of the game mode to hold the script that spawns the course. The only problem is, in the lesson he plugs “Get Game Mode” into the casting node. That obviously won’t work for me. What should I do instead?
I had the link start the video where he does this step of the tutorial.
Hi there, deleted my previous answer, because i failed at understanding.
You are confusing the GameMode cast with your Blueprint_CourseSpawner cast.
You will have 3 Casts-Nodes other than in the tutorial.
So just create the GetGameMode node and drag the cast node as shown in the video. And put this node before your Blueprint_CourseSpawner cast node. And you should be good to go
Ok, I see, you are actually struggling to get your CourseSpawner.
Is your CourseSpawner an Actor within the level? So I can provide you with an sample how to access it, if this is not covered by the tutorial.
Then you need to tell the GameMode about the CourseSpawner you have placed in the level. The LevelBlueprint is the only place for now, who knows about that Actor, so here we go:
So now your GameMode knows about your CourseSpawner as well, you can finally access your Actor within the Placeholder_CourseTile_… Blueprint Just make sure to cast to your GameMode and not to your CourseSpawner.