Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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

How to implement a directional attacking/blocking system?

I'm working on implementing a directional attacking / blocking system in Unity à la Elder Scrolls: Arena or more recently, Mount & Blade - where moving the mouse in a certain direction signals a ...
user avatar
0 votes
0 answers
14 views

RayCastHit2D returning value only once, then stops

I am trying to do a check to make sure the player is not on a wall, so that he doesn't not continue jumping upwards when hitting it, as it returns him as being grounded. I am using a RayCast2D coming ...
user avatar
  • 25
0 votes
0 answers
33 views

Mitigate exploit where players maximize score multiplier before starting race

I am making a single player race game set in space (no actual roads, just checkpoints) where the player's score is defined by how fast they complete the track. There are pickups around the track that ...
user avatar
-1 votes
1 answer
64 views

Would programming a feature similar to another game be copying? [duplicate]

I've been, very slowly, working on a game similar to Minecraft and Hytale, and when I am at the point, include features similar to these mods: Dynamic Trees Dynamic Surroundings Tough As Nails Better ...
user avatar
1 vote
0 answers
28 views

How can I instantiate an object at a certain position?

In my game, the player drives a car and when the car reaches the end of the road, I want a different road prefab to be spawned. I have multiple road prefabs, and want to be able to spawn one when the ...
user avatar
1 vote
3 answers
159 views

What can help make my Resource-Management game into a FUN game?

I am working on a "life simulator" resource-management game where the player has to go to work, go studying, pay rent,... and basically increase his resources and use them to unlock perks, ...
user avatar
  • 1,352
2 votes
1 answer
71 views

Why are some gameplay systems set up to `exist in the world`, with full collision and kinematics, whereas others seem like `complex event timelines`

I wanted to ask a question I've always wondered about to the larger crowd of gamedevs out there: Why is there often a disconnect between the locomotion / kinematic systems that a player controls vs. ...
user avatar
0 votes
0 answers
33 views

Unreal Engine How would I make a one way physics door, that takes both walking into it, and mouse move it

Horror game. In the bathroom stalls I want the doors that opens 45 degrees you can walk into to open it or slowly use the mouse to open it while standing still and "lock" it, once inside ...
user avatar
0 votes
0 answers
38 views

Is there a better way to implement a 2D Rail System?

Hello I wanted to ask how do I implement a functioning grinding system on rails in a 2D Game. I had the Idea of jumping onto a box collider and using the trigger position as the starting position and ...
user avatar
  • 141
0 votes
1 answer
31 views

Facing Arrow on right direction while launch

Hey guys I've been making a bow and arrow system. I'm stuck on making an arrow facing the right direction before its launch. I've attached 3 arrow prefabs in the right position of the player's hand ...
user avatar
  • 1
0 votes
1 answer
52 views

How to add feature to save game at any location during gameplay?

recently I was playing Cold War a game released in 2005 ( please refer wikipedia link > https://en.wikipedia.org/wiki/Cold_War_(video_game) ). This game has feature where player can save game at ...
user avatar
2 votes
2 answers
96 views

Population growth equation

I'm at the very early stages of designing a game in which the population increases / decreases according to other factors (eg. crop yield / food scarcity, industrialization, global warming?, wars, ...
user avatar
0 votes
1 answer
62 views

Alternative to using the user's camera for strength-training minigame

I want to make an action RPG with combat similar to that of monster hunter, simply because I really dislike tab target or turn-based combat. I want the playable characters to have stats like strength, ...
user avatar
0 votes
0 answers
28 views

How to unlock a level using a textbox question (with one correct answer)?

I'm currently working on a 3D Unity game that has 3 levels, but each level has to be unlocked by answering a question to walk through the door leading to the next level. I have a next level trigger ...
user avatar
0 votes
2 answers
49 views

How to make windows that pick up what appears in the other

Basically there are 2 windows that you can drag and drop around the screen. Whatever appears in one window will also appear in the other. The two windows cannot go one over the other. This is a demo ...
user avatar
  • 101
0 votes
1 answer
55 views

How to detect if player want to do a wall run?

I have a third person character and I want to make it wall run. However since there will be a wall run animation, I don't want the player to do the Inputs for a wallrun and at the end change ...
user avatar
6 votes
1 answer
152 views

How to creatively justify world limits to the player and challenge them to go there?

(This question is a bit similar to this question, but that question specifically asks how to implement a height ceiling/collision mechanically, and this is more of a design question rather than a ...
user avatar
  • 534
0 votes
0 answers
80 views

What would be the effect of making Wealth a diminishing-returns variable?

I've been playing a bunch of Fallen London lately, and I find it interesting how they do "pyramid qualities": Achieving level X in something requires +X points.. 1 for level 1, 2 more for ...
user avatar
1 vote
2 answers
172 views

Formula for stacking percentages to keep them from getting out of control

I have a game that has a mechanic, where a specific class can stack what are called "life stealing enchantments" to steal greater amounts of health from the enemy depending on the type of ...
user avatar
19 votes
5 answers
6k views

How can I make a tracing game mechanic more engaging?

I'm working on a puzzle game where you build a model airplane from a box of parts. I'm working on a feature where you actually cut frames out of a sheet of material, which later become building blocks ...
user avatar
3 votes
2 answers
191 views

Should in-game events (raids) be announced?

Many survival games such as Rimworld will announce when significant events happen in-game. For example, when a raid, a disaster or a significant event occurs, the game will send a notification and ...
user avatar
1 vote
0 answers
30 views

Handling Multiple Collisions for 2d Platformer

I am looking for ideas on how to handle multiple collisions. For example: currently if my player character lands on an enemy tagged object, a raycast handles collision detection for a seamless kill. I ...
user avatar
  • 25
7 votes
2 answers
185 views

Way to mechanically justify not allowing players to just fly from location to location when playing as a winged insect

The System The game itself is an action rpg where the player can play as a wide variety of insects, and each insect is mechanically different and allows you to take a different role in combat, ...
user avatar
0 votes
2 answers
98 views

Help with multiple powerup types

I am trying to have a single class that handles multiple powerups types and using enum for the types of power-ups and switching the powers based on enum however when there are multiple power-ups in ...
user avatar
0 votes
2 answers
98 views

Destroy gameobject that is returning a RaycastHit2D?

As the title suggests I would like to destroy the game object that my raycast hits. I have a movement script attached to my player object. A raycast2d is continuously shot downward, and when it ...
user avatar
  • 25
24 votes
10 answers
5k views

How can I discourage players from attacking everything they encounter?

Setting A game I'm currently developing is in a dark, hostile setting full of otherworldly creatures. The world is set in an unusual series of castles, towers, and other enormous types of medieval ...
user avatar
2 votes
2 answers
140 views

How to handle two player-programmed robots attempting to enter the same discrete grid cell in one game tick

I am making a game with discrete block positions (something like minecraft) where you can program robots with instructions to move around, the robots are the size of one block, and they can execute ...
user avatar
  • 21
0 votes
1 answer
49 views

3D AxisAngle spins at 180 degrees

I am using the Axis Angle technique on objects so that they are oriented away from a planet surface like in Super Mario Galaxy. I am using two unit vectors [0,1,0] and a normal vector from the planet. ...
user avatar
0 votes
0 answers
34 views

effect and ability activation in state system?

First time that i am making a text based card game, the main code here is starting to feel a bit clunky.This is a turn-based/phase based system where an effect/ability activates in a specific state/...
user avatar
0 votes
0 answers
22 views

Animation is inconsistent when firing

When the joystick value is 0.7 and above, it is constantly firing and animation plays at the same time. (Gun recoil) It's okay. However, when I fire only once, the animation plays 2 times. (until ...
user avatar
  • 13
1 vote
1 answer
69 views

How do I create an event trigger system for a Discord bot?

I am making a card game and I am having issues implementing "effects" and effects that are continuous. How can I get effects to activate at the right times, before and after an attack does ...
user avatar
0 votes
1 answer
75 views

Slots - Reel with a predefined symbol positions or make each symbol change independently on the others

I'm making a slot machine game and I need some advice on how to implement the spinning reels or how it's usually done. Right now, I'm thinking about two different approaches that would make sense - if ...
user avatar
8 votes
4 answers
4k views

How to determine if a 2D image represents what player sees in 3D game world?

I'm working on a game idea where the player is shown a 2D image (say, a "photo") and the player must find a spot in a 3D world where the view is about equivalent to that photo - not ...
user avatar
  • 1,048
0 votes
0 answers
79 views

Simple racing car steering?

I want to make a simple 2d top-down racing game, something like Mario Kart in 2d, but I am really struggling with the car steering. The only resources I find are complicated and involve a lot of ...
user avatar
2 votes
1 answer
118 views

How can I solve interactions between game environment and Entities like player or NPC on the code level?

I want to figure out how objects in a game environment like these: A reward Chest A mana depleting/replenishing zone sudden stormy winds in a certain direction should affect other entities' (player'...
user avatar
1 vote
1 answer
69 views

How can I set up enemies spawning in set locations in every level in my Unity game?

I'm new to Unity and I've made a game in which I can make the levels using prefabs quickly, but I found that making Enemies in prefabs isn't a good idea because they can't follow or interact with the ...
user avatar
3 votes
2 answers
177 views

Why do RPGs require you to "use" items instead of unlocking them on drop?

Many RPGs have you collecting items (like books, or cosmetics) as inventory items, which you then have to "use" to actually unlock their benefits (say a higher knowledge stat, or being able ...
user avatar
  • 1,207
0 votes
1 answer
82 views

add force to object that has 2 different rigid bodies

I need add force to object that has 2 different rigid bodies and someone said that the best way of this is using fixed joint. The case is this ; I have player object and it has a pusher object that ...
user avatar
22 votes
8 answers
6k views

Are there ways to limit players other than a conventional currency system or a resource system?

I'm making a 2D strategy game. I want to create something unlike the current resource management type games I regularly see tagged as strategy. My goals are: To force the player to think about their ...
user avatar
1 vote
0 answers
81 views

Alternatives to 'collecting coins' [closed]

In the generic mario style game you collect coins as you go along your primary adventure (i.e. get to other side of the map). They usually offer generic additions like the ability to get extra lives ...
user avatar
  • 197
0 votes
0 answers
26 views

"Acrobatic" and "fluid" combat system (i.e. Spider-Man 2018)

Like it says in the title, I like the way that Spider-Man Has a dynamic and fluid feeling combat system. I can't exactly put my finger on a few key aspects, though, and I don't have any way I can ...
user avatar
2 votes
1 answer
163 views

Formula for attack range using hexagons

I need a little help with a formula to calculate the attack range for my turn-based strat game. Since it's a hexagon grid, I'm having trouble coming up with a formula that would pick the character ...
user avatar
3 votes
1 answer
166 views

How many choices for attacks should a player be given?

If you remember the old Fallout 1 + 2 games, there you could select where to shoot/hit the enemy. But of all the choices, only chest or head made sense. Chest to maximize hit probability or, if a hit ...
user avatar
  • 133
2 votes
1 answer
166 views

What would be the best way to implement a multi-directional "board game" movement system?

I'm pretty new to game dev, and can't figure out how to do this, even though it is probably really easy. If you need more reference, look up some gameplay of the Wii game Dokapon Kingdom, that's the ...
user avatar
13 votes
4 answers
9k views

Why don't beat 'em ups allow player character sprites to face toward or away from the screen?

Most beat 'em up games don't allow player character sprites to face away or towards the screen. For example, in Streets of Rage, when you press up, the character moves up, but it is still facing ...
user avatar
  • 339
0 votes
2 answers
118 views

How do I create an infinite tower

So I had this idea of creating a 2D game where the player would just climb a tower the furthest he could. I do already have a camera and a scene class somewhat ready, but I'm not sure how I would add ...
user avatar
0 votes
2 answers
257 views

Optimizing the economy of a resource management game

I am an amateur game designer. I am designing a resource management game involving real money. This is my first time designing such a game. I explain the design and mechanics below. I need feedback ...
user avatar
0 votes
1 answer
56 views

How do you call game mode where the time is running out and player can increase time by collecting coins

I am working on an arcade game and I want to make a game mode, where the player has some time to collect coins. When a coin is collected player gets extra time, so the game can continue infinitely. ...
user avatar
0 votes
0 answers
63 views

Do developers watch player match recordings for their online games?

When developers plan and decide on new buffs and nerfs, do they gather information from online game matches, recorded secretly from their servers' data feeds and reconstructed / analyzed offline - for ...
user avatar
  • 141
1 vote
1 answer
80 views

Java Game: A* Algorithm (searching only cells in front of character)

Game Type: grid tile map that is turned based Directions allowed: Left, Forward, Right (to reverse directions you must either use two lefts or two rights) - both left and right moves diagonal but ...
user avatar
  • 17

1
2 3 4 5
15