0

text based RPG map

I am making a Text based RPG I have the map class and now I am working on my hero but I dont know how to keep track of there the hero is going and how to build the map in sense of when the hero comes across a enemy it will display that it has approached a enemy. I really need help in making this RPG. Can someone please help me out. I tried watching many videos and went through many different resources to help myself solve this problem but none is helping me. could someone please help me? Thank you

17th Mar 2019, 4:16 AM
Tania Sajjad
Tania Sajjad - avatar
2 ответов
+ 1
What language are you using? If it is JavaScript, paste your code in Sololearn and paste the link here, so we can give specific advice. In general, what you need is (i) Use an array to store the instance of enemies, (ii) Run for loop over this array in each frame, or each movement. (iii) Perform collision testing. If you need a good game development tutorial, here is a step by step tutorial series by Happy To Help: https://code.sololearn.com/WvIsS7qN8npX/?ref=app
17th Mar 2019, 6:45 AM
Gordon
Gordon - avatar
0
https://code.sololearn.com/cCIvXTk4qTTu/#cpp this is the link to my code that i have so far. I dont know at this point what i am doing because it is getting really confusing. please can someone help me out? Thank you
17th Mar 2019, 5:29 PM
Tania Sajjad
Tania Sajjad - avatar