Mouse clicks and touch is not the same. But you can simulate touch by mouse clicks if its set in project settings - input. + getplayercontroller → show mouse cursor.
Anyway, you should start from tracing
Mouse clicks and touch is not the same. But you can simulate touch by mouse clicks if its set in project settings - input. + getplayercontroller → show mouse cursor.
Anyway, you should start from tracing
Mouse clicks and touch is not the same. But you can simulate touch by mouse clicks if its set in project settings - input. + getplayercontroller → show mouse cursor.
Anyway, you should start from tracing
Is there anyway you could show me more or possibly find a tutorial? Sorry I’m new to this.
I’d like to have a movement system for my mobile game where the player can touch anywhere on the screen and have the actor mimic the movements. A perfect example of what I want is here.
This kind of game requires tricky setup, not only for movement.
You can do it by converting screen coordinates to world coordinates in some specific distance from camera. Or you can place box primitive in that distance and use PlyaerContoller → GetTraceUnderFinger. This will return world location of touch on that box, and you can use it in SetLocation for your character.
Can you elaborate? I’ve never done anything with touch controls before.
I suppose I could just do something where you click on the screen and move the mouse since touch and mouse clicks and movements are the same.