Hi, so I am trying to make a simple clicker game where it just has “character” on screen (but you can’t control him directly) and you just click on an object in front of you. What I want to happen is when you have clicked the object 10 times it moves your character across 250 units where another object has spawned ready for you to start clicking. This second object is just a copy of the first blueprint. What I am struggling with is telling my character to move across. I can’t seem to get any kind of communication going at all.
I have a character blueprint, RobotCharacter, as my default pawn class (just a static chair asset, with fixed camera to begin with. I will want an animated object later).
Player controller is a PlayerController blueprint that has certain things set like enable click events etc but nothing in components or graph.
So far in my world I have an event begin play to spawn the actor, and also a player start to show where to first spawn the player.
In my ClickObject blueprint I have a ‘health’ var so that you can click it 10 times, then after the 10th it spawns a fire emitter at that location. I don’t know what to do at this point thought to get my Character to move. Because all the blueprints are created on the fly they are all instances so I can’t seem to be able to select them in my Level Blueprint. No matter how hard I try I can’t seem to get an event dispatcher or custom event to be called in another BP at all. I assume I need to have an event dispatcher in my ClickObject which then calls a move actor event in my RobotCharacter. Have I got my BPs set up in the correct way and how would I send a message to my RobotChar to move?
Thanks for any advice to point me in the right direction.