How to add PDA markers
This tutorial helps you tu understand how to add or delete PDA map markers
Files & folders needed:
assets/gameplay/pda.json
assets/ui/pda/
assets/scripts/p_game.gd
Map size is 568x832, where 0x0 is top left corner of the map.
Here is JSON structure of marker:
pda.json
Properties description
pda.json
Create new marker structure at the end of the file, use spot icon from assets/ui/pda/marker.png
Then to add this marker, open assets/scripts/p_game.gd and add this marker to the player PDA.
Using this function:
Also you can check if marker exist at the map and delete it:
Don't forget that you need show PDA (enable pda button in menu and on keys M or P on keyboard):
After adding marker with any method, by event key or completed quest, or changed level, check PDA.
Last updated