Jan-14-2023, 09:32 PM
(This post was last modified: Jan-14-2023, 09:50 PM by Yoriz.
Edit Reason: added additional text from duplicate post
)
hello,
I need a little help, I have a list (element has 2 elements(X and Y)), and I need to find, in this list, which element is the nearest of my mouse (we have already X and Y of the mouse).
Can you help me please ?
Also, can you know how can I wrote "move away" for evade if they are bomb in approach ? like " Xbomb - 30px ", can it work ?
PS : I'm french, sorry if I make misstake in my message...
I need a little help, I have a list (element has 2 elements(X and Y)), and I need to find, in this list, which element is the nearest of my mouse (we have already X and Y of the mouse).
Can you help me please ?
Also, can you know how can I wrote "move away" for evade if they are bomb in approach ? like " Xbomb - 30px ", can it work ?
PS : I'm french, sorry if I make misstake in my message...
