• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

equation

  1. F

    How would one go about drawing graphing equations in GML?

    Hi, I am wondering how I would graph a line in GML, using draw functions. For example, I want to make this: But using GML so it's customizable, and I can randomly generate them. Would this be possible?
  2. X

    How to add the digits of a number until there is one digit left.

    GM Version: GM 1.4 Target Platform: All Download: N/A Links: N/A Summary: For my project, I needed to get a number and add all the digits together until I was left with a single digit between 1 and 9, but as I searched for a way to do that, I couldn't find any gm blog post or tutorial on how to...
  3. 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...
  4. B

    Legacy GM Irrational numbers

    So I'm having trouble with coming up with an equation. I'm essentially trying to do 16 / 90 but it leads to 0.17777777777. Is there any way to work with this? I tried inserting testing the formula, but from what I see, it rounds to 0.18 making the objects move farther than they should messing up...
Top