Hi everyone! Somebody know how to make a stugg like this? Basically an image that only a portion is rendered and the player can move the “crosshair” (but he’s actually moving the background) and then having an input for the center of the crosshair(i suppose this part can be done with a line trace)? I can’t figure out how make an image controlled by keyboard input
Hey there @monkestrong! Welcome to the community! If you don’t need too much interaction, you could use a Dynamic material instance with a Panner node or just change UV offset. Here is a (rather dated) post showing off the method, but instead of plugging the UVs into the custom node established, you can plug them into the UVs of the texture sample. This could also be accomplished with Material Parameter Collections as well.
Hi! Thanks for the reply, what do you mean by ‘not too much interaction’? I need it to work as a map so maybe I need to fire at least 2 input for the logic, one for the movement (mouse or wasd) and one idk maybe a keyboard input. I can do that?
Anyway I solved it and learned a new stuff about materials and textures, I managed to make it move and limiting it with a clamp node to not exceed the borders. Thank you!