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
0answers
5 views

In a visual novel game with optional sidequests, how to encourage the sidequests without requiring them?

Context I'm working on a small visual novel-style game, telling the story of a defense attorney and investigator. The story is split into chapters, with each chapter being a new case, and there are ...
1
vote
2answers
38 views

How do I calculate/weight a diminishing damage formula based on N targets?

I'm making a game and had a look at the questions about calculating damage/diminishing returns here and here but I haven't quite been able to come up with a logarithmic function that satisfies this ...
1
vote
1answer
28 views

How to fix stuck between sprite shape

I'm making hill climb racing type game but I have an issue here when climbing the car is so slow also there will be stuck between sprite shape like that I've tried configuring ...
0
votes
2answers
53 views

How to keep AI goalkeeper inside their bounds

I'm making a soccer-themed top-down 2D endless game, but I have a problem with the goalkeeper AI. My game looks like this: As you can see, the goalKeeper is moving out of bounds. I have tried to ...
0
votes
0answers
19 views

How to implement a system like the draft from NFL/NHL/NBA for an mmo?

I want to build a soccer manager mmo and I'm currently thinking about how to get young players into the game. The classic way would be to invest into the youth and produce better youth players each ...
-1
votes
0answers
45 views

Ask for character in game?

I have some question in 2D game (pac-man, bomberman, ..) : How to calculate velocity for character? When I move character between two wall (see picture below, I want to go right) , it so hard. How I ...
0
votes
1answer
69 views

Heat bar that always goes down but when near fire it goes up

For the fire I have this script on it. ...
0
votes
0answers
28 views

Whenever I grapple onto a RigidBody, the grappling/reeling mechanics glitch out in Unity. How can I fix this?

I'm trying to make a game in Unity 2020.1, the feature I'm trying to prototype and test is a grapple gun. The grapple gun should grapple onto walls, and platforms reel the player in. I've implemented ...
2
votes
1answer
218 views

Fully destructibility in 2D

I would like to create a small game about battles in the Middle Ages. Imagine a procedurally generated 2d map with rivers, fields, and a small castle. Two sides. One player will attack the castle, and ...
0
votes
1answer
68 views

2D Side-scrolling Strategy Game Pathfinding Help

Hey Guys,I am trying to implement dungeons into my 2d RTS ish game.The dungeons is made out of rooms, you start at the top, and you can unlock rooms with scouts.The picture is the unlocked version of ...
2
votes
1answer
73 views

How can I find a good fixed ratio between buying and selling prices for the player in an in-game market?

I'm developing a single player game containing gathering and crafting where I'm still struggling to find base values for the prices of gathered resources and crafted items. (But this is part of ...
0
votes
1answer
71 views

Preferred way of calculating run chances in Game of Cricket

For modelling a simple game of cricket, Considering a batsman has a single attribute rating. I can go about deciding run chances by weighted probabilities. ...
0
votes
0answers
22 views

Phaser 3 - How to make 2 object merging after collision (Like Claw Machine)

I'm new in Phaser 3. I use Matter.js for physics. I want to create something like Claw Machine : I have a claw (top) and prize (bottom) The claw will take a prize from bottom When claw hit the prize, ...
0
votes
1answer
51 views

How do I zoom in and out in a fully tiled based game

I am currently developing a tile based game in Java and trying to add the option of zooming. I do the zoom by reducing and enlarging the tiles, but the problem is that it creates spaces between the ...
0
votes
1answer
100 views

How can I create multi objects in modern OpenGL?

I am trying to do make a 3D game in modern OpenGL where the player throws a ball and when it hits a cube, the score will be increased by one. I created a 3D object and camera. Right now I'm stuck ...
1
vote
1answer
64 views

Reacting to button holds of different durations for an anxiety game

I am working on an interactive game to aid with anxiety management. In one of the gameplay options, the player has to press buttons for a certain amount of time. Only after the required time has ...
0
votes
1answer
69 views

How to make balls (water, or fluid) through pipe

I'm working on a project and get stuck for days. I want to make balls going through the pipe like this game: You can watch this Youtube video for more detail. How can i replicate this game machenis?
2
votes
2answers
136 views

Calculating complex D&D style interactions

So I don't even know if this is the right community to ask (as I imagine it's probably quite maths heavy) in but I figure it falls under the realm of game mechanics. I want to develop a game mechanic ...
0
votes
1answer
79 views

Understanding use of dot product in speed boost pad

I am trying to understand the dot product. I have found a website that gives you intuition about this topic and one of the examples involves a speed boost pad: Imagine the red vector is your speed (x ...
1
vote
1answer
37 views

Endless runner player detect player drop

Starting to learn/write my first game using Corona/Solar2d game engine. And have a very basic question on how do people handle a such this situation which I assume should be common to any game engine. ...
0
votes
0answers
21 views

Is it possible to use absolute input device like a pointer or VR headset for peeking(looking) in non VR FPS or 3rd person games?

Assume I have a VR headset, which has absolute orientation as output and this orientation is input to a game. In VR Games, your character looks wherever you look by using your headset's absolute ...
1
vote
0answers
45 views

A system that figure out the fastest (not shortest) navigation method between points for 2D spaceship with 2 axes propulsion

I am working on a space themed game with space being a 2D pane. The player issue order by clicking on the coordinate for his/her ship to navigate to a certain point on the pane. The player ship can: ...
1
vote
1answer
30 views

Problems with gravity and box colliders in Unity 3D

I have a game character that can jump or roll in order to avoid obstacles. He is able to roll while on the ground and he can also roll while he is in the air after jumping. Everything was working fine ...
0
votes
0answers
17 views

Trying to create a knockback effect between 2 squares (Code in Java)

I've been in trouble for weeks now and I don't understand why it doesn't work for me! I have tried so many things and I just can not understand. I try to get one player to get a knockback as soon as ...
0
votes
1answer
79 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
49 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
84 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 ...
3
votes
1answer
136 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
1answer
108 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
2answers
83 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
0answers
16 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
1answer
43 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 ...
0
votes
0answers
58 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
0answers
24 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
1answer
215 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
0answers
42 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
293 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) ...
0
votes
3answers
242 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
1answer
121 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
609 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
64 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
117 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
20 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
22 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
573 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 ...
1
vote
1answer
73 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
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 ...
3
votes
3answers
336 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
59 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
2 3 4 5
14