I need help, i am trying to make a RPG but i dont know how to manage events and so on dialogs!!!,
so please can you help me???!!, i know how to load maps from files and that stuff but i really dont
now how to manage events
I’m assuming that you know how to get mouse and keyboard input.
Just include a dialog object (possibly just a String; it depends on how your dialog is set up) in each NPC. When someone clicks on or hits the talk button next to (or whatever) the NPC, display the dialog.
For events that occur at a certain position in the map, you can just have another layer in your tile-based map. Or you can define them in a way that they occur whenever the player is within a certain radius of the event.
If you wrote your own map editor, you will need to alter it to include events in the map files. If you’re using a map editor written by someone else, you will have to have a separate file for each map that contains all the dialog and events for the map.
Thanks, I think this will help me a lot