Tagged Questions
1
vote
5answers
317 views
how to rotate enemy to face player? [duplicate]
Okay so i havebeen rotating my enemy to face the player using
float targetrotation = Math.Atan2(playerpos-enemypos);
enemy.rotation = targetrotation; (<this line of code i want to change)
This ...
2
votes
1answer
315 views
360+ degree rotation skips back to 0 degrees when using Math.Atan2(y, x)
I'm new to XNA and this is my first actual project, so forgive my noobness.
I'm using
jointAngle = System.Math.Atan2(RightStick.Y, RightStick.X);
in order to set an angle of a joint (farseer) so ...
3
votes
1answer
67 views
How to accurately score moving averages (indepenent of sampling window)
I'm developing a puzzle game, and coming up with a little trouble how to accurately create the 'score' for a particular player's solution.
In this game a player creates a machine which generates ...
2
votes
3answers
745 views
need to create formulas for stat, level progression etc. What tools will help the not-mathematically-literate?
I want to create some of the fundamental guideline formulas for a game I am working on. I am following on from sirlin's advice in that I am starting with some assumptions and working back from there.
...
8
votes
7answers
549 views
How to create a mathematical mechanism in order for a game to be balanced?
For example, in a game like Diablo, how did they decide how much damage each skill does?
Is it the amount of clicks that the player needs to do? Or maybe the expected lifetime of a player? Maybe ...
44
votes
7answers
10k views
How to develop RPG Damage Formulas?
I'm developing a classical 2d RPG (in a similar vein to final fantasy) and I was wondering if anyone had some advice on how to do damage formulas/links to resources/examples? I'll explain my current ...
11
votes
1answer
726 views
Moving an Object along a Curve while Rotating it
I woud like to move an object along a curve. At particular points on the curve, I wish the object to change speed and rotate itself along its axis.
Imagine an airplane flying to a destination. It has ...
4
votes
3answers
120 views
Need a better function for transportation efficiency
I'm making an economic kind of game, and one of the things I'm simulating is the transportation of resources to a central depository, e.g. moving metal from a mine to the city (so it can be turned ...
5
votes
1answer
238 views
Realistic damage
I'm looking for a good way to simulate damage, for example a weapon firing at a ship it would calculate the damage depending on layer type, weapon type, angle and similar what i need is a way to to ...
8
votes
5answers
415 views
Building (simple) stellar systems
I'm currently looking at how to easily simulate some stellar systems (meaning some central stars and then some planets with maybe satellites), in order to allow later some space based strategy game ...
4
votes
2answers
692 views
A good place to learn about Game Programming with Mathematical Vectors?
I am looking for a place in the web where I can turn my current game development process into a vector based approach. I am sorry If this question has been asked once.
According to my google search ...
