Is it possible to add a little minimap on the UI that shows a zoomed out version of the base layer? Like terraria, and legend of zelda. I don’t wanna hand paint the map, so can that be possible? I mean like just show a tiny version, without shaders or anything. Would that lag my game a lot? This is what i have so far; just a frame.
Short answer
Long answer
Above can lag your game if you have TONS of objects while you are trying to display them on minimap
If not then explaining how to use it will not be pleasant experience for you but it would be doable
But what you want to try is extension called sprite snapshot
With it you can render one object to another object
But what interest you more it also have option to render layer to sprite
You can do that to create miniature of your layer which you render to some sprite object
Dang, thanks! I will see if this works.
Hi! Did you succeed in making this work?
I’m interested too in making in mini-map and I’d like to try this method but so far, I’ve not been able to successfully use the Sprite Snapshot behaviour.
Oh snap, yeah, it works (Z-order problem )…
Just a follow up question though : the debugger gave me that :
Do you think it’s acceptable for the mini-map? (I honestly have no idea!)
I am currently trying to do it…
Ok, i managed to do that, but i cant make the camera show a zoomed out version. Do you know how
edit: it is way too laggy… 20 FPS!? :(
I never used in game i only used it to show other user it works
BUT i just tested
You have 2 things
What part of scene you render
And other is
Like physical size of your object
This screenshopt is made with what i show above
And if i shrink object i and rendering to
I still render same crap but have it smaller
So all is left for you is to adjust it to your needs
I’ve used this tutorial to try a different solution. It is considerably lighter to use!
Depending on how we want to manage the mini-map and what we want to show, it’ll ask probably more coding and the creation of more objects.
Here are my events so far! I’ve not tried to make it efficient yet, I’m just learning so forgive me if this is not well organised!
Could you link the project file to this? I’m trying to setup a minimap as well and Id like to take a peek into your code and logic.
DO NOT ask me why cause i don’t understand it
BUUUUUT
For some reason i need to put some layer name in between () when i specify origin points
However i also IDK why CameraX works as center of camera and CameraY works as top i mean there is CameraCenterX and Y
And that is why i have -CameraWidth()/2 there
WTF is going on there IDK
So you will need to debug that crap
So if it don’t work you just need to try put there some layer
Maybe it is only layer which is not affected by my camera actions?
Since other layers i zoom and center camera on player on them?
Anyway all i did
Was install this extension RenderToSprite SpriteSnapshot they cannot decide which name is better i guess
And actions i used you see in my 1st screenshot that is ALL i did to get it to work
WTF
Screenshot from gdevelop on my pc
Screenshot from EXACT SAME copy of game but from link i pasted at beginning of this post
It is bugged out WTF
IDK why and IDK how it works do not ask me
And well i have no idea how to fix it in dev link version
But in game preview it works perfectly fine?
Well good luck anyway
Ow i just realized you meant the one with actual minimap
Well i was trying to modify (LONG AGO) and well i did not finish it