Sugeno Fuzzy for Non-Playable Character Behaviors in a 2D Platformer Game
Keywords:Sugeno Fuzzy, Platformer game, Unity Game Engine, Artificial Intelligence
One aspect for a platformer game to be challenging to play is the NPC (Non Playable Character). An NPC is often placed as an obstacle for player to finish at each level. However, an effort must be done to create a behavior of an NPC to be challenging enough and not monotonous. Creating random behavior is one way. But the problem with this approach is a less interactive NPC behavior because of its inability to respond from the game state accordingly. In this paper, we propose an implementation of Sugeno Fuzzy to create behaviors for the NPCs. This methodology takes playerâ€™s state and NPCâ€™s state to determine what action will be done. The inputs are player to NPC distance, NPCâ€™s health and playerâ€™s weapon ammunition. The outputs are retreat, defense and attack. We applied this methodology in an educational game about Rubela virus vaccination â€œHealthy Heroâ€ for its boss enemies. Evaluation shows that by applying Sugeno Fuzzy, the NPC behavior can responds to playerâ€™s state and its own state. The real-time execution resulted in 100% correct behavior according to the predefined rules, therefore increasing the behavior interactivity for the NPC.
 Yannakakis G., Togelius J. (2018) Artificial Intelligence and Games, Springer.
 Pirovano M. (2012) The use of Fuzzy Logic for Artificial Intelligence in Games. Technical report, University of Milano, Milano.
 Yunifa M.A., Ady W., Fachrul K., (2012) Pergantian Senjata NPC pada Game FPS Menggunakan Fuzzy Sugeno. Seminar Nasional Competitive Advantage.
 Purba, K., Hasanah, R., & Muslim, M. (2013). Implementasi Logika Fuzzy Untuk Mengatur Perilaku Musuh dalam Game Bertipe Action-RPG.Jurnal EECCIS, 7(1), pp.15-20.
 Naba, Agus (2009), Belajar Cepat Fuzzy Logic Menggunakan MATLAB, Yogyakarta, Andi Offset.
 Kusumadewi, Sri, Sri Hartati. (2010). Neuro- Fuzzy Integrasi Sistem Fuzzy dan Jaringan Syaraf. Yogyakarta: Graha Ilmu.
 C. W. Reynolds (1999), Steering behaviors for autonomous charachters. In Proc. of Game Developers Conference, pages 763â€“782. Miller Freeman Game Group, San Francisco, CA.
 Treanor M, Zook A, Mirjam P. Eladhari, Julian Togelius, Gillian Smith, Michael Cook, Tommy Thompson, Brian Magerko, John Levine, and Adam Smith. (2015), AI-based game design patterns.
 Riedl, M., and Stern A. (2006), Believable agents and intelligent story adaptation for interactive storytelling. Technologies for Interactive Digital Storytelling and Entertainment, pages 1â€“12.
 Mitasari, Fajar, dkk (2017), Implementasi Logika Fuzzy pada Pembuatan Karakter Musuh untuk Game Single Fighter Berplatform Android. Jurnal SINUS Vol. 15 No. 1.
 Griffin D.E (2001) Measles Virus, in Fields Virology. Knipe DM , Howley PM, Griffin DE, Martin MA, Lamb RA, Roizman B, Straus SE, editors. 4th edition. Lippincott Williams & Wilkins.
 Unity Technologies (2018), Vector3.Distance. Unity Documentation, available online: https://docs.unity3d.com/ScriptReference/Vector3.Distance.html
 Abdiansyah, Primanita A. and Muliawan F. (2014) Fuzzy Logic Implementation on Enemy Speed Control to Raise Player Engagement. Proceeding of The 1st International Conference on Computer Science and Engineering, Vol. 1 No. 1.
 Hooshyar, D., Yousefi, M., & Lim, H. (2017). A systematic review of data-driven approaches in player modeling of educational games. Artificial Intelligence Review, 1-21.
View Full Article:
How to Cite
LicenseAuthors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under aÂ Creative Commons Attribution Licensethat allows others to share the work with an acknowledgement of the work''s authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal''s published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (SeeÂ The Effect of Open Access).