Hi GameGuru people!
I would like to share my objectives Indicator system with you. This system is similar to the one I used in my game demo "Resist Revolution", which can be downloaded and played in the "Work in Progress" board. Feel free to use and modify as you like.
This system can be used to show your objectives on the screen, similar to a lot of warfare games out there.
To implement the system:
1. Place three objects on your map and assign the first one with the obj_1 script, the second one with obj_2 script, and the third one with obj_3 script (I used 3 cylinders for the purpose of this tutorial.)
2. Set the three objects to non-static entity and always active.
3. Place another entity next to the third object. (Iused the scifi keycard). This will trigger the winzone to finish your level.
Assign the winzone_2 script to this entity and set it to non-static, spawn at start - no, always active - no. Also give this
entity a name like "win" or something, because we are going to trigger this entity with the third object.
4. Assign the name of your "winzone" item to the ifused field of the third object.
Now if you run your level, the first objective indicator will appear on screen. If you walk up to it, a message will be displayed "OBJECTIVE 1 COMPLETED". Also, the second objective indicator will appear on the screen. Once this objective is reached, "OBJECTIVE 2 COMPLETED" will be displayed, and the third objective indicator will appear. If you approach the third objective, it will also show a completed message, and the winzone will be activated.
Objectives placed in the editor:
In-game screenshot:
I also included two alternative scripts "obj_1_simul" and "obj_2_simul", which can be used instead of "obj_1" and "obj_2" scripts, if you want both objectives to appear simultaneously on the screen.
Simultaneous objectives: