maths

  1. ReignOnU

    Does anyone understand Nvidia maths?

    @Simon Gust @RujiK Almost seems like they are trying to make it sound as confusing as possible (jargon.) They lost me at this part: "The velocity vector field of our fluid is defined such that for every position x = (x, y), there is an associated velocity at time t, u(x, t) = (u(x, t), v(x, t)...
  2. RyanC

    GML Issue with instances snapping to same position when exporting level.

    Hi All, I was wondering if anyone can see an issue with this code I am using? My level editor in game has the following code to round and floor all x and y positions so that the level strings are shorter to send to the server etc. The issue is that I am occasionally seeing objects over the...
  3. P

    How to Floor Number not up to integer but to number.x ???

    Okay, probably the question is explained not teh best in the theme, so: Say, I have number 90.0777, so how do I floor it until 90.1 using matehmatical function? Yeah, so I guess the question is pure maths, I am just not very good at it, so I hope there is anyone who knows how to help me, cause...
  4. P

    SOLVED Maths for angle depending on destination(1 or -1)

    Hello everybody, I know I post here quite often, and many of my posts are totally unnecesarry sometimes because they are just my silly mistakes, but it really helps to start posting here, because when I start preparing information for other people to help me I usually find answer much quicker...
  5. 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...
  6. 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...
  7. W

    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 =...
  8. 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...
  9. D

    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...
  10. N

    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...
  11. 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...
  12. 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...
  13. M

    Android 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...
  14. W

    [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...
  15. 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