maths

  1. FacesOfMu

     Suggested Edit to docs page for Vectors and Trigonometric Functions

    Hey all, I'm not sure if this is the right place for making suggestions for the GMS2 Docs pages, so please move if necessary. For us newbie users and people trying hard not to reinvent the wheel, on the Vector Functions page can you add a suggestion to readers to also check the Trigonometric...
  2. The-any-Key

    Shaders Get destination color to shader

    I want to get the destination color to a shader so I can manually blend it with the source color using (bm_one,bm_zero) as blend mode so the destination color wont be processed again after the shader. But I have trouble of getting the destination color because I don't know how calc the texture...
  3. Wild_West

    Find the average[solved]

    I'm getting the wrong results when I tr to use a calculator vs using game makers div This is my coded object, you click on it, it asks you to get the average and enter it to be able to pass by the object. unlocked = false Create Event: execute code: unlocked = false; randomize(); number1 =...
  4. J

    [Maths] Exponential function for cámera speed

    Hey there! I'm doing a camera muvement based on the mouse position according to the border of the camera, so, I what to make it so that while more close the mouse is to an edge of the camera, it move faster. But over the game, the point the mouse has to reach to de camera starts moving...
  5. Desix

    GML Misc Maths Scripts

    GM Version: Any Target Platform: Any Download: N/A Links: N/A Summary: A few scripts I find useful and would like to share (and somewhat archive) here. Some are much more common than others, and some are very obscure. I can't promise these are the most efficient way to do things, but they work...
  6. NodziGames

    Text Rotate With Sprite (Get A Free Game)

    So I'm making a CCG, and instead of putting the name on a card, I use draw_text_transformed so that I don't have to create a separate sprite for each one. It also works with scaling, so that I can resize the card without problems. This is my current code: (All in the draw event) //Draws The...
  7. D

    Don't really wanna talk about this but I could use help

    So I have been learning game maker and GML for a while now and I have improved so much since I started and truly love what i'm doing and the whole learning process but one thing I really really suck at is maths, it's kinda embarrassing saying it, but i'm really bad (like super bad) school...
  8. E

    [SOLVED] lengthdir_x/y equation?

    Hello, I'm trying to debug my game and have a problem involving lengthdir_x/y. I believe that knowing the actual equation for lengthdir_x/y would allow me to solve it. I have google searched but can only come up with basic trigonometric equations that don't relate to grid references. Thank you...
  9. M

    Android / Amazon Fire Formula Dash [FREE]

    Hey, I recently published an application at the Google Play Store which is called "Formula Dash". It's entirely made with Game Maker Studio Professional. The game is about maths and made for students. It's hard to master, even for a genius in maths. Just take a look, it took me several weeks to...
  10. Wild_West

    [Solved]Could I get some more math help please?

    I need to make it so if I collect some money or points while playing a level but I die the amount I gathered during that level is removed from my inventory. I setup a tracking variable in one of my level control objects(I have 2, one persistent one not) and it increments by 1 every time I...
  11. G

    Vertical Sine Wave

    Hey guys (and gals) :D I currently have a function for a horizontal facing Sine wave, but I was wondering if I could get help with making it into a vertical one if you get what I mean. The current code: var Amp = 100; //How "Stretched" the wave is var Freq = 32 //How much to increase the...
Top