Like are any of them useful at all
Yes (yes, yes ,yes ,yes)
yesssssssssssssssssssssssssssssssssssssssssssss
(but if serious, you can try them yourself)
yeah id say so
like if you want someone’s score to increase you would have to add
this also goes for money, items in inventory, powerups, etc.
like if you had a potion that made someone twice as fast, you’d have to multiply their current walkspeed by 2. if you can stack effects you would have to choose to multiply the effects by each other(a*b) or apply the effects, and then apply the other effects on top of the existing effects(a^b) which could change gameplay entirely depending on which you choose.
YES. While scripting the camera movements trigonometry is involved. For example, math.sin, math.tan, math.cos and there inverse functions. So, if you are serious about scripting, math functions are essential.
Thats not what i was talking about. I was talking about the math library.
Depends on your project. If you are going for a trignometric approach then sin cos and tan etc will help, if you want to make some formulas then again, they will help.
yes, but it depends on what you do. math library gives you the .random() method to randomly generate numbers
it also has min & max, methods to round/ceil/floor a value, perlin noise (i know that perlin is used on projects involving custom water, voxel map generation, etc… but I never use it), exponential, square root etc…
Basic stuff and other less basic stuff that you don’t want to spend time building from scratch everytime. It can be used to automatically make XP curves (like get more XP at low levels, but less at high levels, etc…), camera manipulation, etc…
If I have a value that I don’t want to go below zero and I don’t want to make a whole if statement, I can simply do myValue = math.max(0, newValue)
Everything revolves around math, its how our computers work, its how our games work, and its how developers can make cool effects. It is an essential piece of info that you kinda have to learn if you want to make cool things.
The type of math depends on your work, but math is always going to be an essential piece of that project, no matter if its physics, trig, procedural generation, or the geometry of an object. Keep function serves its own uses, but just because they arent always used, doesnt mean they arent useful.