The Modified Flocking Algorithm for Optimizing Non Player Character Movements

  • Astria Sastra Dewi Siliwangi University
  • Eka Wahyu Hidayat Siliwangi University
  • Heni Sulastri

Abstract

Non player character is an important part of a game that can make gameplay more interesting and challenging. That reason also makes it important to study, especially for non player characters that are clustered in large numbers where programming of such non player characters is relatively difficult to do. Quite a lot of games with non player characters in the form of birds that are clustered but on average the game does not apply good movement so that the motion of birds is relatively slow, monotonous and unrealistic. In this research, we will try to modify the Flocking Algorithm, as one of the popular algorithms for non player character groups, so that birds can fly scattered in terrain while maintaining flocking. In its implementation, the new algorithm was successfully designed and inserted in flocking, which was then applied to a 3D game. The test results are quite satisfactory with only 6.6% collisions on 100 agents with a maximum frame rate of 10 fps. Non player characters succeeded well toward 3 targets in less than 2 minutes and the results of beta testing were an average of 81% of respondents "VERY AGREE" The implementation of the Flocking Algorithm and its modification worked well and resulted in a realistic movement of non player characters.

Downloads

Download data is not yet available.

References

Y. A. Benufinit, M. Hariadi and S. M. S. N, “Manuver Kelompok NPC Berbasis Boids,” in Seminar Nasional ke – 9: Rekayasa Teknologi Industri dan Informasi, Yogyakarta, 2014.
C. W. Reynolds, “Flocks, Herds, and Schools: A Distributed Behavioral Model,” Computer Graphics, pp. 25-34, 1987.
J. Hagelback, “Hybrid Pathfinding in StarCraft,” IEEE Transaction On Computational Intelligence and AI in Games, pp. 319-324, 2016.
M. B. Nendya, S. G. Gunanto and R. G. Santosa, “Pemetaan Perilaku Non-Playable Character Pada Permainan Berbasis Role Playing Game Menggunakan,” Journal of Animation and Games Studies, vol. 1, no. 2, pp. 185-202, 2015.
Atthariq and D. A. Putra, “PENENTUAN PERGERAKAN NON-PLAYER CHARACTER MENGGUNAKAN ALGORITMA A* PADA GAME ACTION- ROLE-PLAYING GAME,” Jurnal Infomedia, vol. 2, no. 2, pp. 35-40, 2017.
S. Karim, “Perubahan perilaku Non-Player Character (NPC) pada Game Arabic Hunter menggunakan Jaringan Syaraf Tiruan Perceptron,” Jurnal Ilmiah Teknologi Sistem Informasi, pp. 34-41, 2017.
A. Sugito, M. Hariadi and A. Z. Fanani, “PERGERAKKAN ADAPTIF NONPLAYER CHARACTER TEMAN BERBASIS EVENT MENGGUNAKAN BEHAVIOR TREE DAN RULE BASED SYSTEM,” Jurnal Teknologi Informasi, vol. 13, no. 2, pp. 84-91, 2017.
A. Sikenali and Atthariq, “ANIMASI 3D PERGERAKAN BURUNG TERBANG MENGGUNAKAN MODEL BOIDS,” Jurnal Infomedia, vol. 1, no. 2, pp. 1-5, 2016.
L. M. Ginting, B. Siahaan, B. Situmorang and R. Manik, “KAJIAN ALGORITMA CRAIG RAYNOLD PADA KERUMUNAN (FLOCKING),” Jurnal ISD, pp. 22-32, 2018.
D. R. Harefa and M. B. Ismiati, “PENERAPAN ALGORITMA BOIDS PADA NPC (NON PLAYER CHARACTER) DALAM GAME,” in Seminar Nasional Teknologi Informasi dan Komunikasi 2019 (SENTIKA 2019), Yogyakarta, 2019.
M. F. Azim, E. W. Hidayat and A. N. Rachman, “Android Battle Game Based on Augmented Reality with 2D Object Marker,” JOIN (Jurnal Online Informatika), vol. 3, no. 2, pp. 116-122, 2018.
Yosua, E. M. A. Jonemaro and M. A. Akbar, “Penerapan Flocking Behavior Untuk Pergerakan Berkelompok Non Player Character pada 2D Endless Runner Game,” Jurnal Pengembangan Teknologi Informasi dan Ilmu Komputer, pp. 4178-4184, 2019.
D. Ardana and R. Saputra, “Penerapan Algoritma Dijkstra pada Aplikasi Pencarian Rute Bus,” in Seminar Nasional Ilmu Komputer, Semarang, 2016.
E. W. Hidayat, A. P. Aldya and P. T. A. Miranti, “Game Adu Muncang Berbasis Android,” Innovation in Research of Informatics (INNOVATICS), vol. 1, no. 1, pp. 13-20, 2019.
Sugiyono, Metode Penelitian Kualitatif, Kuantitatif dan R&D, Bandung: Alphabeta, 2012.
Published
2020-12-13
How to Cite
DEWI, Astria Sastra; HIDAYAT, Eka Wahyu; SULASTRI, Heni. The Modified Flocking Algorithm for Optimizing Non Player Character Movements. International Journal of Engineering and Emerging Technology, [S.l.], v. 5, n. 2, p. 1-5, dec. 2020. ISSN 2579-5988. Available at: <https://ojs.unud.ac.id/index.php/ijeet/article/view/59513>. Date accessed: 21 nov. 2024. doi: https://doi.org/10.24843/IJEET.2020.v05.i02.p01.