so when doing a conditional branch, there is a script thingy. is there any command that is kinda like this if this entity/ID is 2 or less grid tiles away from player then execute this command. Please help me with this
how to mesure distance? (MV)
RPG Maker MV Supportnvm its irrelevant
@Dev_With_Coffee
"nvm" means "nevermind"..
and not all new user know the forum rules about avoiding doubleposting..and using "edit" instead^^..
( i didnt when i was new^^ )
@Stuffo
i guess this can be closed if thats the case pls click on "report" and request to close this thread^^
(there are scripts to calculate the distance on map , if thats what you were looking for)
-> look for the script "$gameMap.distance(x1, y1, x2, y2)"
more infos about that can be found here#9
"nvm" means "nevermind"..
and not all new user know the forum rules about avoiding doubleposting..and using "edit" instead^^..
( i didnt when i was new^^ )
@Stuffo
i guess this can be closed if thats the case pls click on "report" and request to close this thread^^
(there are scripts to calculate the distance on map , if thats what you were looking for)
-> look for the script "$gameMap.distance(x1, y1, x2, y2)"
more infos about that can be found here#9
i could teach how to make it using variables, but i think scripting would be easier
I really couldn't interpret if it was any add-on to the question, I had even written the full answer. But the guy in less than 15 minutes gives up...
sqrt((target.x - origin.x)^2 + (target.y - origin.y)^2)
math hasn't changed in nearly 5000 years.
math hasn't changed in nearly 5000 years.
Thread closed
By saying "it's irrelevant" it seems more like the OP decided they didn't need to know the distance after all.
Original thread: https://forums.rpgmakerweb.com/threads/how-to-mesure-distance-mv.142100/