sounds like basic trig. cos angle = X, sin angle = Y based on a circle with a radius of 1, to make them further away you just multiply by whatever factor you want, since cos(45) = ~0.7 to get a distance of 3 you'd need to use a factor of 3/0.7=~4.3 eg. 4.3 * cos A = X, 4.3 * sin A = Y
If you can use library functions for cos / sin then that's simple enough (example I made up via googling (so may not be optimal/perfect but seemingly working), based on the tutorial: dropboxgithub), otherwise googling "x86 assembly cos sin" should get you some code
of course you could just arbitrarily subtract 3 from the x position which should place them 3 to the left of the player and just require you to turn left to kill them instead of always having them in front of wherever the player is looking.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum