Hello, i was wondering how to click and drag at the mouse cursor point to pan a large image in a 2d scene using the mouse?
Commonly used in image search games.
Thankyou for the link. I have done this tutorial already, and it didn’t actually work that well.
As with many of Matt asplands tutorials they are a bit rough and incomplete.
This tutorial also has no bounds for the mouse so you can keep panning forever. But thankyou anyway for the link.
Hey @mawilbolou, I didn’t follow the tutorial but here’s what I came up with when I got to launch my PC. It’s super simple!
Here’s the Event Graph of the camera pawn:
The collapsed graph:
(IA is swizzled and negated)
And here’s the result:
Hope this helps!
Incomplete in what aspect The tutorial’s not from a full project series. I think his tutorials are one of the best
Oh cool, yeah this looks like the answer thankyou I will give it a shot.
Hello, @VisAgilis hope you had a nice Christmas/holiday day.
I am using Unreal 4.27 and wondered how this would translate to it?
Scroll Down to the 2nd Part
- Right click on an empty space in the Event Graph, type in “*” (Multiply) on the menu that pops up and hit enter to place the multiplication node
- Right click on it’s output pin (the pin on the right side of the node) and select the To Vector option under the Pin Conversions section
- Right click on the A pin (the input pin on the top left side of the node) and select the Split Struct Pin option under the Pin Actions section
- Right click on the B pin (the input pin on the bottom left side of the node) and select the To Float (single-precision) option
Here’s what the node should look like at each step:
Hold on, I didn’t notice your second post! I thought you were asking about the multiplication node. Yeah UE4 doesn’t have Enhanced Input Actions, you’d use axis mappings there.
Okay just set it up for axis mappings as well, here:
(In Project Settings > Inputs)
Hope this helps
Hey @mawilbolou, it’s been a while since we last heard from you! Did you manage to make it work with axis mappings? Let me know if you have any updates