moving characters in the top view when clicking on an area to a specific place

Top view game, the character starts from room 1. I want that when 1 clicking on room 2, the character moves into the room and stands in a specific place in the room. Who can help with this question?

Additional question - Make the character in the room, when clicking on the chest in this room, go to the chest, open it, and then go to the starting place until the next order?

You can use a line trace that comes out the player camera. once the line trace touch the platform you can get the actor from “break hit result” and use the “simple move actor to” node.

If you want to have him to open a chest that would be more complex, but you should use simple move to actor then a blueprint interface for the chest telling it to do what you want the chest to do.

1 Like

In the chest logic you can then add a node that adds a item to a item array

I also forgot to put the “simple move to actor” after the branch

1 Like

I understand the logic ±, maybe there are some training videos? tried to repeat what is on your screenshots, I am missing something and it does not work at all)

the problem might be is the platform actor and chest actor does not have the blueprint interface in its class settings
image

if that does not help Here’s a video on Blueprint interfaces

and here’s a forum post on line trace from the player camera to the position of the mouse

1 Like

thank you very much, it seems to be what I wanted)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.