You could create a method that passes in a NPC id and returns your desired integer distance, then in your combat handling have it check if player coordinates are +- the methods return distance before attacking.
|
Lets say I'm fighting a dragon, If i walk somewhat under it i can attack it like extremely close, How do I make it that it checks the size of big npcs and steps like 3 tiles away or so
You could create a method that passes in a NPC id and returns your desired integer distance, then in your combat handling have it check if player coordinates are +- the methods return distance before attacking.
Thanks bro, really good explanation and got it to work
bump
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |