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
0
votes
1answer
20 views

Move camera closer (Zoom In-Out) to object that is being followed (Unity)

I have implemented a main camera that follows and orbits around an object (player). Now I would like to implement a Zoom In-Out mechanic. This functionality would allows the camera to approach the ...
1
vote
1answer
42 views

How can I decelerate a physics object to a stand still?

I am currently working on a little prototype and I am struggling to apply a friction force to slow down the player object. I have a simple physics engine using the model of setting acceleration, ...
0
votes
2answers
75 views

How to implement a mechanic of entering a town

I am planning a game played on a 2-D map, where some spots are "towns". When the player walks into a town, he enters a high-resolution map of this town; when he exits the town, he returns to the low-...
0
votes
1answer
39 views

How to sort scores and assign positions based on the scores?

I have three game objects each with an individual score. I was wondering how I should go about sorting these scores in ascending order. I want to also give these objects a position based on their ...
2
votes
1answer
109 views

Constructing a game stock market

Short Question: How do I calculate market values for different resources in the game? Long Question: I am building a game around the concept of resource gathering and manufacturing to gain ...
0
votes
0answers
20 views

conversion between world space and screen space

I am making a multiplayer game with gravity mechanics and planetary motion. I started by hard coding coordinates according to canvas size but now I am realizing that for different resolution planet ...
0
votes
2answers
70 views

Which works best to describe character, item or dungeon properties: Affix or Trait?

I am working on an RPG portion of my game called "The Underground King". My item generator uses the same properties that also apply to characters, vehicles and racing levels (dungeons for short). I ...
0
votes
3answers
184 views

Touchscreen controls for a game

I made a pc game recently (uni project) and now I want to put it on google market but I am having troubles changing original controls to touchscreen. The problem is that I don't really know what I can ...
0
votes
1answer
101 views

What category would this asynchronous production economy game fall under?

I'm thinking of getting into game development and my friend and I have this idea for a game. We want to do some research on similar games, and I have noticed that games seem to fall under certain ...
0
votes
1answer
200 views

Offset on camera following object that accelerates

I have camera a that is actively following an object (a plane) from behind. This object can accelerate or decelerate. I would like to have a camera offset when I move the plane, so it doesn't look so ...
3
votes
2answers
1k views

Adding character stats/traits in Ren'py

I'm coding a relatively simple VN with RPG elements in Ren'py, with little prior programming knowledge. There's one aspect that I can't simplify further because it's important to the game's branches, ...
0
votes
3answers
91 views

How to switch between multiple cameras in a Unity Scene, Silent Hill-style

I have 3 cameras in a practice scene that I want to switch between. Currently, I have a meshless cube acting as a trigger with the following script ...
0
votes
0answers
14 views

Unity2D: Colliding with Edges Issue

I am using Unity (in 2D). I have force being applied to the rigidbody2D when the player moves left/right. For some reason, when the player hits the edges of the tiles, it just pushes up and forward. ...
0
votes
0answers
54 views

How do I create a tile-based footprint trail?

Currently I am working on a quick game for some friends, but I don't know the proper name for this type of game, so here is an example of the mechanic in The Lion King II: To unlock the exit, you ...
0
votes
1answer
170 views

How can I design a battle algorithm for my MMORTS?

So I am actually developing a MMORTS myself, and this is getting me stuck a bit. So lets say you have two opposing armies who just started their battle. How should the code determine who is the winner?...
0
votes
1answer
139 views

Snake game steering with Java FX

I am currently trying to make a snake game with Java FX, I read several posts about it and I understand on theory how to move the snake body (for each part of the snake reference the previous one and ...
0
votes
0answers
41 views

Implementing beat detection algorithm on mobile

So, I've been looking for a way to detect beats on a streamed song on mobile(like listening on Spotify or Youtube etc.) I've found the most used methods are either using already known songs or using ...
1
vote
1answer
183 views

SDL2 C++ How to make enemy move in random directions

How do i make an Enemy move in random directions? I tried this but it doesnt work how i want it to.. thats why im asking what i need to do, to achieve that? (Pseudo code would be cool) ...
7
votes
4answers
515 views

What games benefit strongly from using motion controls? [closed]

A lot of games use motion controls, be it Wii, Kinect or otherwise, but for most of them, this control scheme seems forced. What are the games that benefited the most from using motion controls (as in,...
3
votes
3answers
308 views

WoW attack speed calculation

Reading up on attack speed calculations for World of Warcraft I noticed that the formula for attack speed is: Attack_speed = "current attack speed" / (("Percent increase or decrease" / 100) + 1 )...
0
votes
1answer
108 views

Need help with making number system for idle game

So, I want to create a new game. I have problems with how to store large numbers in the game and how to output them. I have written a small pseudo code that contains everything I need to play the game ...
4
votes
4answers
597 views

Explicit difficulty selection without breaking the game flow

According to the flow theory, in short, if the challenge is too hard, from flow state the player will go into an anxiety state, and if the challenge is too easy, he will go into a boredom state. This ...
1
vote
0answers
63 views

Why is my player falling through the Tiled map?

I am gassed. I have this game due very very soon. I made my player so that it doesn't fall through or go through tiles from Tiled that have the property "blocked". I do not know why but it is not ...
0
votes
0answers
24 views

How do I make match 3 blockers bigger than a 1x1 cell?

How do I implement blockers in a match 3 game that are bigger than the normal 1x1 cell size? Here is a short example clip from the game Genies & Gems level 181. It shows a circle blocker of size ...
0
votes
1answer
113 views

What are known game mechanics to disallow player to become infinitely rich still keeping it fun to progress?

I want to make an online game with a leaderboard. A player should be able to gather tools/resources to continue exploring/harvesting. The problem I want to solve is that someone can find a way to ...
0
votes
0answers
19 views

most flexible way to implement a buff /debuff system for a RPG game [duplicate]

I'm making an RGP board game where I have different heros, each one of them belongs to some types for example ("Aatrox" is a Dragon and a Ninja hence he belong to these two types),and each player has ...
0
votes
0answers
14 views

Simple Orbital transfer and intercept equation

I'm working on a game which has a game board made up of objects orbiting the center of the board. You can think of it as our solar system, but greatly simplified in terms of physics. All objects ...
4
votes
4answers
373 views

What colour space or mixing algorithm should I use for “watercolor-like” colour mixing in-game?

I want to make a game where the player creates potions out of coloured ingredients, and I think the RGB or HSV colour spaces would be confusing for players expecting (red + yellow = orange, red + blue ...
22
votes
2answers
8k views

How to design context menus based on whatever the object is?

I'm looking for a solution for a "Right Click Options" behaviour. Basically any and every item in a game, when right clicked, can display a set of options based on whatever the object is. Right ...
4
votes
4answers
3k views

Interpolate and collisions

Lets take the simple example of a ball bouncing off a wall. The physics is separated from the display. The physics is set to run at say 20 frames per second and the display is running faster than this ...
1
vote
1answer
63 views

How to handle all the customization data for a Loot and Shooter?

Games like Borderlands, Fortnite, Destiny all have some sort of mechanic where your skills are modifiable by the equipment you carry. For example in Borderlands, you can equip a pistol with generic ...
0
votes
1answer
188 views

Web based poker on Phaser 3

Please can somebody help me as I'm a lil bit new to game dev and user interface designing. I am trying to create a simple Texas holdem poker using phaser3 for multiplayer application. I have a few ...
0
votes
0answers
36 views

Concept design-pattern for industry simulation required

I am making a mobile game simulating industry. A brief high level description is below. A hub could be thought of as a base/city, within which there are rooms/buildings which determine what is ...
0
votes
1answer
52 views

How to create a over world map with multiple sub maps

my game's idea is to use a open world map consisting of say 4096x4096 size, and multiple grids of 64x64 size. When I click on any grid, the map zooms in to show that grid(either creating in from ...
1
vote
2answers
84 views

Best way to do multiple choice in Unity 2D? [duplicate]

So I'm about to start development on a game in unity that is going to require multiple choice each choice having a some what unique function. I've thought of 2 ways of doing this but I'm unsure if ...
10
votes
3answers
2k views

Showing range on hexagonal grid

Here is the situation. I have hexagonal board,and a unit on it,with speed or move value 4.Diffrent terrain has a diffrent cost.When i click on the unit,game should show me a move range. My solution ...
0
votes
4answers
298 views

What is the best way to implement the story functionality (dialogue and cutscene management, etc.) in an RPG?

I would like to know what the best way to implement the story functionality of an RPG would be. I am writing the game in C++ using the SFML library for graphics, and I have implemented drawing tiles, ...
0
votes
0answers
32 views

object position handling for multiplayer a game

I am creating a multiplayer HTML game which focuses on manipulating planet trajectories with gravity points. I am creating bunch of planets with random initial velocity and random direction and i am ...
1
vote
2answers
165 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 % ...
1
vote
2answers
85 views

Moving an object to random points Unity3d c#

So here is the problem I want to change the position of gameObject to specific points that I declared with empty objects randomly but the problem is the moment the object reaches one of the points it ...
1
vote
0answers
88 views

some questions about game development [closed]

I'm a web developer, I also love games, but I really don't know anything about game development. Recently I've decided to write an outline document about an idea. I've got a few questions to get me ...
0
votes
0answers
42 views

Manage weapon special gear enhancements (buff, life steal, fire DoT, slow enemies, etc)

I plan to develop an RPG, and I struggle with my weapon damage calculation. I'd like to be able to attach modifiers to swords, like life steal, damage buff, fire damage over time, make the enemies ...
0
votes
3answers
76 views

How do I prevent players from flying too low in an infinite sky?

Let's say I have a game that allows the player completely free, open world flight, and the world itself is a bunch of floating islands. This creates some problems with flying too low, such as reaching ...
3
votes
2answers
98 views

Mimicking enemy boss movement of Wonderboy in Monster Land

I want to imitate the movement of the "Death" boss enemy in Wonderboy in Monster Land. At first, I thought it just moves with a sine wave, but it's not. The up and down movement is erratic. I ...
1
vote
1answer
93 views

How should I structure the layout and saving system of my game concept?

I am a huge fan of Minecraft and (to an extent) Terraria. I’ve always wanted to make my own version of that type of Creative sandbox game, and recently I’ve been thinking of so many things I could add ...
0
votes
0answers
62 views

Make suspension for Car using Matter.js

I'm attempting to recreate a Hill Climb Racing game through using matter.js. However, I'm stuck on the part of creating a realistic suspension using constraints. The main issue is that the constraint (...
16
votes
5answers
2k views

What kinds of conflict-resolution can be fun beyond combat in an RPG?

As someone who grew up on the single-digit Final Fantasy games and AD&D, there are few ways of solving an rpg problem as fun as a fight. Different streams of accomplishment (object acquisition/...
-1
votes
2answers
79 views

Problem making wave animation

I want to simple wave-like animation using mesh. I thought that it would look like a wave if there would be a point at the middle of the mesh and change z axis of that point, and after this I change ...
0
votes
0answers
39 views

How can I store “charges” on a player persistently between game sessions

I've got an idea for a gamemode for a Garrysmod RP server but I don't know if it's realistic within Lua. I specifically want to make my script apply variables to a person when they shoot another ...
0
votes
0answers
107 views

Unity Making a parry system where weapons collide (For honor style)

I've always been fascinated by games like For Honor and the way that when you parry an attack the weapons collide. Because of this, I wanted to implement such a feature in my own game. However, I ...

1
2 3 4 5
13