Wei Posted August 26, 2014 Share Posted August 26, 2014 I tried to use this code to make the blips on my custom radar. viewtopic.php?f=91&t=71784 But when I rotate mouse everything rotates and blips are not in the position they are supposed to be... local blipX = (17+(300/2))+cblipx-(blipsize/2) local blipY = (608+(154/2))+cblipy-(blipsize/2) blipX = math.max(17, math.min(17 + 300, blipX)) blipY = math.max(608, math.min(608 + 154, blipY)) this are calculations image : Link to comment
Bonsai Posted August 26, 2014 Share Posted August 26, 2014 I guess the easiest solution is to draw the map + blibs to a render target. Then you only need to rotate the render target. Link to comment
Wei Posted August 26, 2014 Author Share Posted August 26, 2014 Can you explain me or give me sample ? Link to comment
Bonsai Posted August 26, 2014 Share Posted August 26, 2014 If you got this far with your custom radar this task shouldn't be too hard Link to comment
Wei Posted August 26, 2014 Author Share Posted August 26, 2014 Did some calculating and stuff and found the answer Thanks anyway Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now