Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [AGK] Simplified WrapValue

Author
Message
Derek Darkly
13
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 17th Feb 2023 20:17 Edited at: 17th Feb 2023 20:19
A quick, economical way to replace DBP's old WRAPVALUE command for rotation angles with just a few lines.

This is only raw lines of code... you can craft your own custom function or subroutine based on this formula.
If you find a mathematical error I'll try to fix it based on suggestions, but it should work for any value you input.

Send your parents to noisy sprite demo hell... enter the D-Zone
Raven
19
Years of Service
User Offline
Joined: 23rd Mar 2005
Location: Hertfordshire, England
Posted: 18th Feb 2023 16:55


Just as a simple, but a little different approach and as a Function
Derek Darkly
13
Years of Service
User Offline
Joined: 22nd Sep 2011
Location: Whats Our Vector, Victor?
Posted: 19th Feb 2023 15:00

Awesome! I hadn't noticed that TRUNC command before... very convenient!
Send your parents to noisy sprite demo hell... enter the D-Zone

Login to post a reply

Server time is: 2024-11-17 22:19:02
Your offset time is: 2024-11-17 22:19:02