Questions tagged [game-mechanics]

A set of rules that govern an in-game experience. Game design is an effort to come up with game mechanics that allow for players to have a fun and engaging experience.

Filter by
Sorted by
Tagged with
1
vote
0answers
47 views

Make an object rotate from 0 to 360 degrees by using the trigger button on the htc vive controller

Hello I would like to be able to make a sphere that is attached to a cube rotate from 0 to 360 degrees by pressing the trigger on the vive controller. As the sphere rotates I want it to be able to ...
3
votes
1answer
254 views

How should I balance temporary buffs to make my game fun?

As a game developer, I understand many players (usually in RPGs) expect short term buffs to be available to them, such as potions, war cries, drugs, etc. As a player, I've never understood what fun ...
4
votes
3answers
220 views

Finding the Balance - Income vs Expenditure

I'm working on a game idea that uses an in-game currency, and basic business (income/outcome). Basically, a certain type of building will generate 'income' per seconds until it hits a certain ...
4
votes
1answer
144 views

Could stealth and chase mechanics suit well for an exploration / branching paths game? [closed]

Our game focuses on exploring a city searching for clues and learning new skills to reach new locations to find something very valuable to the protagonist. The game design is based on two ideas: ...
0
votes
1answer
117 views

What are the advantages of using SAT(seperating-axis theorem ) in collision detection?

Lets say i need to check if two AABBs are colliding with each other. I would simply compare their corners. When am i gonna need SAT(heavy vector calculations) to do the same thing?
1
vote
1answer
337 views

Segmenting an MMO market

I've been considering a segmented market for an MMO: There is a different market for each in-game level (Level 1 players can only buy/sell items from the Level 1 market) If a player levels up with ...
-1
votes
2answers
205 views

Attack Rating for Weapons

I'm considering a combat power(CP) estimation for a game I'm working on, which acts as a function of different variables, including attack, def, speed, etc.(I haven't decided the function yet). Now ...
26
votes
4answers
6k views

Can inflation exist in a fixed price Mmorpg world?

Assumptions: Crafting materials are infinite. Limit is player boredom. Players can only trade through the auction house. All prices are fixed. Players cannot decide arbitrary prices. Goods in auction ...
0
votes
1answer
60 views

Quantity of dropped/spawned items in container

I'm having trouble figuring out how to spawn more than one item in to a container with a weight limit. What I'm having trouble with is the understanding, rather than what statements to write; My ...
2
votes
1answer
129 views

Should the objective of a game be obvious to the player?

Watching game dev talks and reading articles about 'good' game design, it seems consesus a game should always make the objective obvious to the player, making clear what 'skill check' is being made ...
-3
votes
1answer
117 views

How do I implement semi-random level generation?

I am trying to make a platform game that generates semi-random levels. I want it to read in the segments of a level and then choose a random one from among these segments. I am stuck. I have ...
0
votes
2answers
104 views

Ball jumping algorithm

I'm still starting out anf i'm making a 2d game where a ball which jumps through different blocks. The ball jumps a fixed height when i place the blocks that the ball should dodge i place them ...
4
votes
1answer
115 views

How do multiple expansions to a game typically should be implemented?

Let's say I have a game that's finished and shipped, what would be the approach that is typically taken in regards to future content such as expansions? I'm not talking about programmatic ...
2
votes
1answer
89 views

Hit detection for partially covered object?

Say you have a character standing behind cover such that some of its body parts like a shoe or a palm is still outside the cover. An explosion takes place close to the cover . In real life this ...
0
votes
1answer
125 views

How to start simple game development with Unity 5 [closed]

I want to start developing games with Unity because it's easy to learn, but I don't know where to start. My questions are: - Which preparations should I make for a game? - Are there any tips and ...
1
vote
2answers
154 views

Math / game design for non-linear armor degradation?

I have a game that is about starships shooting each other. Starships have a values that represent initial Health, Armour and Damage degradation Example 1000, 800, 80% // 1000 HP, 800 Armour, 80 % ...
0
votes
1answer
82 views

Need help in making buttons for MenuScreen in Java

I'm making a Menu for my game and I made the MenuState(class) and made a MouseManager(class, implemented MouseListener and MouseMotionListener) and they are different class in different folder. Here ...
0
votes
0answers
153 views

Collision detection problem in Java

I have a problem in my game. My player cannot move after I put collision detection from this video: https://www.youtube.com/watch?v=DadImcUt9Nk&index=22&list=PLah6faXAgguMnTBs3JnEJY0shAc18XYQZ ...
1
vote
1answer
86 views

Making a sales curve over time from a static baseline figure

I am making a game where there are objects that will be for sale. The objects have a reputation score, which is the amount of sales they get each week. This is calculated up front and remains the ...
-2
votes
1answer
89 views

Calculate experience for each kill [closed]

I need a formula to calculate experience of players on each kill. It's based on the value of armor of the 2 opponents. For example if i kill the opponent and i've a total armor of 4000 gold and the ...
2
votes
1answer
146 views

What elements are indispensable to players of a tactical strategy game?

Tactical strategy games typically involve area capture/control, unit building, terrain effects, various specialized unit types. Some will include resource gathering / management, unit customization / ...
1
vote
0answers
62 views

Game stopped working after adding savegame feature? [closed]

I'm trying to make a text based adventure game with my limited c++ knowledge.. But I ran into trouble with saving and loading gamestates.. The functions I made are ...
0
votes
2answers
346 views

Collision handling for grid based games and simulations

I'm trying to implement a grid based game where there are many creatures moving in the grid from square to square. I'm having a hard time handling collision with creatures in the grid (multiple ...
0
votes
2answers
762 views

Formula For Finding Out Price of Item? [closed]

I've been working on a game with a friend for a while now. I'm in charge of plotting most of the stats on the weapons. Weapons have several attributes: Four damage types: Base, Impact, Punct and ...
1
vote
1answer
63 views

Managing Discrete Character Animation States

I'm creating a 2D game in which each possible direction of movement for the player, (Up, Down, Left, Right), has its own distinct animation, i.e., they aren't rotations of each other. Currently I am ...
-1
votes
1answer
609 views

Missing Reference: Unity should clone object before destroying

For a small RTS Project, I'm working on the pointer. I want a pyramid as a marker on the terrain, that indicates the selected position, sinks into the ground and disappears. For the next interaction ...
8
votes
4answers
8k views

Why do most racing games have tracks that are closed loops? [closed]

In most racing games (Mario Kart, Sega Rally, F-Zero, etc.), racers typically make some number of laps in a closed circuit. The most notable exceptions that come to mind are all arcade games, or ...
0
votes
1answer
916 views

JavaFX snake game AI

I am trying to add an AI simulated snake to my snake game that a player can play against. So far I think I do get the concept of how to do certain things but snake should be able to find the nearest ...
1
vote
1answer
79 views

Sprite sizing for my game [closed]

I have recently started a new project with my SO (Significant other)and she is doing the art for my game (Pixel art) now i have always gone with 32x32, 64x64 and so on (Using 16x scale) but she thinks ...
3
votes
2answers
198 views

What algorithm can I use for handling two types of HP, one of which may be undefined?

In my game, each unit has two types of HP: Hard and Soft. Soft represents the human part of the unit, while hard represents anything mechanical. For example, a regular rifleman would have 100 softHP, ...
-1
votes
1answer
817 views

How to make enemies in Game maker?

how do i make enemies in game maker? its kinda hard since the enemies are falling from the sky I want the cats with the bombs to do more damage than the regular ones
0
votes
1answer
382 views

How does code translate to graphics? [closed]

I know this is kind of a basic question, but I'm trying to create my own game from scratch and really don't understand this. How does the code of a videogame program certain pixels to be certain ...
16
votes
6answers
8k views

How do videogames store information offscreen?

I'm trying to make a videogame from scratch, but I'm really new to this and keep running into basic issues. Most importantly, how do videogames store offscreen information? What I mean is, how does ...
19
votes
4answers
4k views

How can I implement multiplayer cloaking with visuals that resists client-side hacking?

I've been thinking about implementing stealth in a multiplayer game. It's a MOBA style game, so think League of Legends (LoL) and Heroes of the Storm (HotS). Multiple clients connect to a single ...
0
votes
1answer
91 views

Targeting system, Vectors and Angles Maths

I need a bit of help with the maths for a targeting system for a space simulator. The problem is working out the correct turret angle so that the bullets hit the target ship... I have a ship at ...
0
votes
1answer
330 views

In a simple raycasting engine, why is the distance between player and projection plane constant?

According to this article about making a simple raycasting engine (like the one that was used in Wolfenstein3d), the distance between the player and the projection plane will be constant. For ...
2
votes
0answers
133 views

In UE4's Blueprints, how do I activate something when the player looks at it?

I want to make an object that activates when the player presses a button, then looks at it. How can I do this using Blueprints Visual Scripting?
1
vote
3answers
121 views

Protecting/Handling game data

I have been working on a web based game, in which involves a lot of javascript/PHP. My question is what is the most secure way to handle any data being passed between the two languages? At this ...
1
vote
0answers
405 views

How can I create click and drag for a 3D Jenga game in Unity?

Essentially, I am trying to create a game that mimics Jenga. Right now I have made it so that the blocks collide with each other and have gravity, everything works very well. The one thing that I am ...
1
vote
0answers
416 views

how do i make an object in gamemaker only overlap on one side?

I am making a small flash game in game maker 8.0 pro and I need some help. In my game, the character is in an office with cubicles. I need my character to be able to walk behind and in front of the ...
8
votes
5answers
585 views

Choose your own adventure - choices stack

I'm currently building a choose your own adventure game. Now it's easy enough to have one outcome to every choice and create a linear flow, but is there a good algorithm for having all previous ...
-1
votes
1answer
1k views

create continuous snake like slither.io MonoGame c# [closed]

I need help creating a snake with continuous smooth motion like slither.Io up till now I just can't find any but the grid snake. EDIT: Following a curve with the snake, Grow that snake.
3
votes
1answer
110 views

Earth-like acceleration seems slow

I wanted to make a kind of "fill the box" style game where you hold down to increase size of a ball that falls when you let go, end goal being covering a percentage of the screen. Anyway, I wanted to ...
0
votes
1answer
310 views

Why is there almost never online multiplayer in indie games? [closed]

There are alot of which are local but very few who have online.
2
votes
0answers
630 views

FPS game UI theory [closed]

Are there any researches concerning FPS game interfaces? I'm interested in analyses of designing & positioning UI-elements. The only thing I can find are blogs and articles about immersion in ...
1
vote
0answers
43 views

How to make a Sprite have multiple armors/weapons/Accesories [duplicate]

I am currently developing a game that involves a multitude of weapons, armors, etc. I am using UE4 currently as an engine because I found that easy to use. Currently in development I have found myself ...
0
votes
2answers
674 views

How do I make a game over screen like Temple Run or Subway Surfer?

When you die in one of these 2 games I took screenshots of (Temple Run and Subway Surfers), what exactly comes up to say "Game Over" and posts your score and all-time high score? Is it a different ...
2
votes
2answers
514 views

How to calculate the outcome of a battle?

My game's war system is pretty straightforward, so I will give you a brief overview. You assign soldiers to commanders, and you also assign equipment. Equipment being weapons (e..g: rifles, pistols, ...
0
votes
1answer
232 views

Tips on thinking of a good game mechanic? [closed]

I am trying to make a turned based rpg and I really want to know how can i make original game mechanics like Undertale with it's sparing system.I am not really that creative to think of a good game ...
0
votes
2answers
1k views

A single libgdx gamescreen with pop-up menu, getting ready, hud and game over?

Is it possible and practical to have only one screen, like a GameScreen class, where the menu, getting ready (plus instructions), hud (only score) and game-over screens can pop-up when needed. Can I ...