Hi everyone,
I am kind of new to Godot and I am training myself by creating an Age-of-Empire-like game :)
To display the map in my game , I am using a lot of Sprites (something like 8000), and I don't use TileMap because I need each sprite to have a custom behaviour, described in a script. (Actually, each sprite is a scene)
The context is the following:
--> World (Node)
--> Map (Area2D)
--> Sprite1 (Sprite)
--> Sprite2 (Sprite)
--> etc...
I display more Sprites than the player can see, and I want him to be able to "drag" or "move" the map on click (as in Age of Empire)
+-------+--------+-------+
| | | |
| | UP | |
+------------------------+
| LEFT |player's| RIGHT |
| | screen | |
+------------------------+
| | | |
| | DOWN | |
+-------+--------+-------+
I am wondering if I have to change the position of each Sprite, but it looks like an expensive process to me, or is there a way to deal with this by moving a Camera2D ? (but I don't understand how to use a Camera2D)
Thank you all in advance :)