Creating a game based on clicking or touching an object and dragging it

Hi all,

I started checking out Unreal Engine a couple of days ago for a game that me and my friend want to make where you can click on different objects and then drag them. This means using click events as well as touch events (when running on a mobile device).

I followed the steps provided in this “tutorial” but I am having problems getting it to work. This page briefly talks about Game Mode, Player Controller and Actor blueprints and it even shows me the whole blueprint [here] (Content Examples Sample Project for Unreal Engine | Unreal Engine 5.1 Documentation)
but it doesn’t tell me how MI_Sphere Blueprint was initially created. I am following the graph into the Player Controller blueprint and the function Get Actor Location is not available for me to add, maybe this is a different kind of blueprint?

I have Mouse_GameMode, Mouse_PlayerController and TestActorBluePrint (this is a blueprint of type Actor) and here are some screenshots:

I know my blueprint is incomplete and incorrect and I would rather start again form scratch and do the right thing when following this tutorial one more time (I don’t mind). If anyone has a tutorial or a link or could fill in the gaps for me I would appreciate it.

Thank you for your help.

Did you try to connect the “Gate” exit to the Set Actor Location input?

Hi Maico,

Thank you for asking, it’s been a while since I posted this question, I eventually got it to work a few days later, I think I had to create a class blueprint that inherited from Actor.

I will close this question. Thanks again.

oops, can’t delete this question anymore, it was a while ago and I don’t remember how I got it to work, I moved on since then.

You’re welcome, i’m glad you make it work :wink: