# Tagged Questions

36 views

### Centering three rectangles of different size

If I have 3 different sprites, that each belongs to the same sprite but with different animations type. Each has a different width, height, in the sprite sheet. How do I adjust the 3 using math, to ...
366 views

### How to balance experience gain in an RPG

I am currently developing an RPG game with a classic experience-points and levelup mechanic. The player kills monsters, gains experience points, levels up when they collect enough and become stronger. ...
997 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 ...
583 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 ...
82 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 ...
982 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. ...
607 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 ...
19k 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 ...
829 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 ...
129 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 ...
277 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 ...