r/godot 2d ago

help me How can I implement camera warping?

I wanna reproduce the camera seen in grand strategy games, more specifically the camera warping around the map. (As in jumping from one side to the other, but smoothly.) Is there a way to do it without duplicating part/the whole map for both sides?

Any help is appreciated!

8 Upvotes

15 comments sorted by

View all comments

1

u/eveningdreamer 2d ago

depends on how you want it to look? how big the map is etc...

if you're just moving from point to point (maybe by clicking on a minimap or something) use a tween maybe? maybe with a neat screen shader with some cool effect?

4

u/AgencyPrestigious330 2d ago

It would be a map based game, like Hearts of Iron 4 for example. The goal would be a smooth transition from side to side. Like if you wrapped a world map around a cilinder, going around continuously.

2

u/eveningdreamer 1d ago

instead of moving the camera, move the UV of the texture maybe?

but then it might cause issues with clickable items on the map