Hi all, a new-newbie question.
I’m sketching a “naval battle” game - below you can see the player’s ship with hers four spotting quadrants.
Cannot figure out a decent method to get the position (relatively to player’s ship actual facing), of a potential target in a given moment - i.e., in which quadrant a given enemy ship is. I wasn’t able to find anything useful in this section of the forum, in the manual or tutorials .
The only method I can imagine is pinning four invisible images (pointing 45°, 135°, 225° and 315° with a 90° LOS each) to the player’s sprite, and check in which LOS the target is, but it’s quite rough...
I suppose there is a simple & effective method but I cannot find it.
Thx in advance
You do not have the required permissions to view the files attached to this post.