Pergerakan Non-Playable Character dalam Game Stealth Menggunakan Finite State Machine

Angga Adetiya, Hanny Haryanto, Erlin Dolphina, Erna Zuni Astuti, Muljono Muljono


Movement of Non-Playable Character in Stealth Game using Finite State Machine - Stealth is a game genre that relies on hiding skills and strategizing to complete missions. Challenges in the form of enemy Non-Playable Character (NPC) are one of the vital elements of this genre game. However, NPCs generally only move according to a predetermined line or path of movement, so that their movements can be estimated easily after the player has seen them several times. This causes the movement of NPCs to look monotonous and not challenging. Finite State Machine (FSM) is an artificial intelligence method that can simply model enemy behavior. FSM consists of states and transitions where the state is the current state of the NPC, while the transition is the state of a state. This study models the behavior of enemy NPCs in stealth games using FSM so that it is not easy to predict their movements by adjusting idle time, walking, and moving speed The results of this study indicate that NPC can have nine variations of behavior that can change according to these conditions.


Artificial Intelligence; Finite State Machine; Game; Non-Playable Character (NPC); Stealth

Full Text:



W. Min et al., “DeepStealth: Game-Based Learning Stealth Assessment With Deep Neural Networks,” IEEE Trans. Learn. Technol., vol. 13, no. 2, pp. 312–325, Apr. 2020, doi: 10.1109/TLT.2019.2922356.

Y. W. Astuti, A. Yunus, and M. Ahsan, “Perilaku Non Player Character (NPC) pada Game FPS ‘Zombie Colonial Wars’ Menggunakan Finite State Machine (FSM),” Kurawal - J. Teknol. Inf. Dan Ind., vol. 2, no. 1, Art. no. 1, Mar. 2019, doi: 10.33479/kurawal.2019.2.1.53-63.

M. B. Nendya, S. G. Gunanto, and R. G. Santosa, “Pemetaan Perilaku Non-Playable Character Pada Permainan Berbasis Role Playing Game Menggunakan Metode Finite State Machine,” J. Animat. Games Stud., vol. 1, no. 2, Art. no. 2, 2015, doi: 10.24821/jags.v1i2.1304.

S. D. Ribaupierre, B. Kapralos, F. Haji, E. Stroulia, A. Dubrowski, and R. Eagleson, “Healthcare Training Enhancement Through Virtual Reality and Serious Games,” in Virtual, Augmented Reality and Serious Games for Healthcare 1, Intelligent Systems Reference Library, vol. 68, 2014, pp. 9–28. doi: 10.1007/978-3-642-54816-1.

M. A. W. Saputra, J. N. Fadila, and F. Nugroho, “Perancangan Game First Person Shooter 3D ‘Saving Islamic Kingdom’ dengan Menggunakan Finite State Machine (FSM),” Walisongo J. Inf. Technol., vol. 2, no. 2, Art. no. 2, Dec. 2020, doi: 10.21580/wjit.2020.2.2.6981.

D. Gunawan, A. Atthariq, and A. Aswandi, “Meningkatkan Behaviour Npc Pada Game 3d Survival Menggunakan Metode Markov,” J. InfomediaTeknik Inform. Multimed. Jar., vol. 2, no. 1, Art. no. 1, Dec. 2017, doi: 10.30811/.v2i1.477.

I. A. Ahmadi, E. M. A. Jonemaro, and M. A. Akbar, “Penerapan Algoritme Logika Fuzzy Untuk Dynamic Difficulty Scaling Pada Game Labirin,” J. Pengemb. Teknol. Inf. Dan Ilmu Komput. J-PTIIK Univ. Brawijaya, 2018.

A. B. Harisa, H. Haryanto, and H. A. Santoso, “Model Tingkat Kesulitan Dinamis Berbasis Logika Fuzzy,” Semin. Nas. Teknol. Inf. Dan Multimed., 2016.

M. A. Darmawan, H. Haryanto, and Y. Rahayu, “Perilaku Penyerangan NPC Berbasis Fuzzy Sugeno pada Game Action-RPG Bertema Sejarah Geger Pacinan,” Creat. Inf. Technol. J., vol. 4, no. 3, pp. 195–206, 2017.

D. Ratanajaya and H. A. Wibawa, “Implementasi Kecerdasan Buatan dalam Menentukan Aksi Karakter pada Game RPG dengan Logika Fuzzy Tsukamoto,” Khazanah Inform. J. Ilmu Komput. Dan Inform., vol. 4, no. 2, p. 82, 2018, doi: 10.23917/khif.v4i2.6744.

C. Paixão, E. Vilar, P. Noriega, and F. Rebelo, “Can a Stealth Game Be Used to Learn Interaction Design Concepts?,” in Advances in Ergonomics in Design, Cham, 2021, pp. 882–889. doi: 10.1007/978-3-030-79760-7_106.

E. Byrne, Game level design. Hingham, Mass. : Charles River Media, 2005. Accessed: Oct. 31, 2022. [Online]. Available:

M. F. Syahputra, A. Arippa, R. F. Rahmat, and U. Andayani, “Historical Theme Game Using Finite State Machine for Actor Behaviour,” J. Phys. Conf. Ser., vol. 1235, p. 12122, Jun. 2019, doi: 10.1088/1742-6596/1235/1/012122.

S. Lucas, M. Mateas, M. Preuss, P. Spronck, and J. Togelius, “Artificial and Computational Intelligence in Games,” 5, 2012. doi:

I. Millington and J. Funge, Artificial Intelligence for Games, Second Edition. 2009. doi: 10.1017/S0263574700004070.

A. Badruddin, “Perancangan dan Implementasi Finite State Machine pada Game Castle of Illusion,” Skripsi, 2019.

H. Tito, Bimantoro1, Hanny, “Pemodelan Perilaku Musuh Menggunakan Finite State Machine (FSM) Pada Game Pengenalan Unsur Kimia,” Appl. Intell. Syst., vol. Vol.1, No., no. 3, pp. 210–219, 2016.

M. F. Rahadian, A. Suyatno, and S. Maharani, “Penerapan Metode Finite State Machine pada Game ‘ The Relationship ,’” vol. 11, no. 1, pp. 14–22, 2016.



  • There are currently no refbacks.

EXPERT: Jurnal Manajemen Sistem Informasi dan Teknologi

Published by Pusat Studi Teknologi Informasi, Fakultas Ilmu Komputer, Universitas Bandar Lampung
Gedung M Lt.2 Pascasarjana Universitas Bandar Lampung
Jln Zainal Abidin Pagaralam No.89 Gedong Meneng, Rajabasa, Bandar Lampung,

Indexed by:

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.