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
1 answer
83 views

How to encourage players to fight nearby players instead of clustering into mega-factions?

My game is a location-based RTS game with roughly 150 players on 5 continents. Players can create and join alliances essentially at whim, and the players use discord for communication. There is a ...
0 votes
1 answer
62 views

Should a swinging sword be part of the player sprite, or its own separate sprite?

Should the sword be part of the player sprite and therefore share the same hitbox that is widened when attacking? or Should the attack animation be separate from the player sprite therefore having its ...
0 votes
0 answers
28 views

node not disappearing when calling queue_free

I'm working on a game, and I'm trying to make a eating feature, I got the player's part down for the most part, but the food's script does not want to work it seems. I've tried so many different ways ...
19 votes
9 answers
7k views

How to prevent players from brute forcing puzzles?

I'm making a classic Resident Evil / Silent Hill type game, so am currently in progress of writing a few puzzles. Currently, I have a combination lock - 4 digits 0-9. Each digit of the combination is ...
  • 299
0 votes
1 answer
45 views

P2P + Authoritative server for Web based game, how to combine?

I'm working on an online Web RPG game (jRPG) with a map, that characters can go around. Also, an important part, is that each player has his own world and each player can invite his friends to play on ...
0 votes
0 answers
42 views

Is there any game that can I make as a project of programming fundamentals in java under 500-1000 lines? [duplicate]

I'll be having my semester project of programming fundamentals in java. I'm a complete beginner and don't have much ideas. Since I'm fond of game dev I am thinking of making any logical and text based ...
0 votes
1 answer
52 views

Gap between two 3D objects in Unity

Quick question related to Unity: if I have two objects (A and B) to create some tunnel, how can I make a constant gap? I thought of having A and B instantiated with a random value to start with; ...
0 votes
0 answers
41 views

How to automate strafe jumping?

I'm a complete noob when it comes to math so excuse my ignorance. I've trying to automate strafe jumping (from the quake engine) into another quake engine based game. I've tried a fair bit to get this ...
0 votes
0 answers
35 views

Close door after player has entered a room

I can't figure out how to make the triggered door open and then close again. I managed to open the door, but can't figure how to close it again once the player is inside the room. Here's my code so ...
2 votes
2 answers
407 views

Formula to assign star rating based on cooking time over/under target

I'm making a cooking game and one of the minigames in the game is to put ingredients on a barbeque. As it's being cooked, a progress bar is displayed, with a range between 0-1. The goal is to take it ...
2 votes
1 answer
142 views

How to make equipment of unique characters relevant in a turn-based RPG with large armies?

I'm developing a turn-based RPG with Pygame as a hobby to better learn Python. I am inspired by NEO Scavenger, Fallout and Mount & Blade. I like the idea of equiping the character with the stuff ...
0 votes
3 answers
2k views

Are thresholds for levelling considered an open problem and each game solves it differently or is there some standard design?

Player gathers points/XP and levels up based on this. Is there some standard researched system which thresholds work well for level 2, level 3 and so on? Or is each game basically solving it on its ...
0 votes
0 answers
79 views

Unity top down character movement animation goes sideways

I am struggling with the animation handling for my top down character movement. The game is a 3D top down game. The character is always facing in the same direction as the pointer and I have ...
1 vote
1 answer
126 views

How were the invaders programmed to shoot in the original arcade version of Space Invaders?

I'm trying to make a clone of the original classic and mimic its game mechanics as closely as possible, but am stuck on making the invaders shoot. From playing online versions of the game, it seems as ...
  • 125
0 votes
0 answers
30 views

Can I use bomb mechanic like in a bomberman in my game? [duplicate]

Can I use bomb mechanics like in a Bomberman in my game? Or there are any obstacles.
0 votes
1 answer
45 views

Scalable way to have interaction button place item on campfire

I have been wondering how I can place a bowl on a campfire in Unity using C#, similar to how it is done on Green Hell. I currently have an inventory system set up where you can equip the item in your ...
0 votes
0 answers
109 views

How to implement an attack with a real-world duration like in Clash of Clans?

I wanted to understand how a strategy game like Clash of Clans would implement the attack. Clash of clans is just an example I am taking but I am interested in understadning logic of attack in any ...
  • 101
0 votes
0 answers
99 views

Simplifying game mechanics in "unseen" battles

I am writing a grand strategy game that is generally played from a zoomed-out, "strategic" perspective. With battle encounters, I want players to be able to zoom in, if they choose to, ...
1 vote
0 answers
52 views

Click & Drag: Move the Camera vs. the World

I've been tasked with finding out more information as it pertains to "Click & Drag" to change the users viewpoint in a scene, but I'm having troubles finding any definitive information. ...
0 votes
1 answer
193 views

Does game design (numerical value planning such as attack/defense/ rates of critical hit) need a strong mathematical background?

I will go to college very soon and I want to choose math major. I want to know if being graduate with a strong mathematical background will help me success in game design. For example if I want to be ...
0 votes
1 answer
83 views

What kind of game is best to learn the basics [closed]

I am interested in learning Unreal Engine. What kind of game should I aim to build as a beginner which will teach me the most? Thanks.
0 votes
1 answer
36 views

Skipped function calls on Integer based frame data

I'm creating a basic animation system, where I call functions to change the rendered sprite and turn on hitboxes based on the current frame of the animation. For example, if (current_frame == 8), I ...
12 votes
4 answers
5k views

What is the function or benefit of including juggling mechanics in a fighting game?

I am putting together the initial design ideas for a 3D fighting game. Overall the style of the combat I would like to be something between UFC and DOA games, so focused on realism but the pacing more ...
  • 1,687
0 votes
1 answer
57 views

How to build a system for ammunition being fired out of cannons when player characters and crewmates can also be ammunition?

I'm currently working in Unity building a game inspired by the niche DS game, Dragon Quest Rocket Slime. It's a Zelda-like forced-perspective top-down game where the primary combat mode is you ...
  • 1
0 votes
0 answers
49 views

Using different hurt animations for different Melee attacks

I am currently trying to make a beat them up 2d game for learning purpose and was trying implement a combat system where if player hits with slash attack then enemy will be playing let's say "...
  • 1
0 votes
1 answer
279 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 ...
0 votes
0 answers
36 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 ...
  • 25
0 votes
0 answers
60 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 ...
-1 votes
1 answer
89 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 ...
1 vote
0 answers
51 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 ...
1 vote
3 answers
241 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, ...
  • 1,422
4 votes
1 answer
119 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. ...
  • 114
0 votes
0 answers
64 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 ...
0 votes
0 answers
68 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 ...
  • 141
0 votes
1 answer
131 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 ...
  • 1
0 votes
1 answer
72 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 ...
2 votes
2 answers
150 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, ...
0 votes
1 answer
68 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, ...
0 votes
0 answers
31 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 ...
0 votes
2 answers
60 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 ...
  • 101
0 votes
1 answer
85 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 ...
6 votes
1 answer
184 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 ...
  • 584
0 votes
0 answers
87 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 ...
1 vote
2 answers
336 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 ...
20 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 ...
3 votes
2 answers
219 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 ...
  • 561
1 vote
0 answers
48 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 ...
  • 25
7 votes
2 answers
208 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, ...
0 votes
2 answers
131 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 ...
0 votes
2 answers
179 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 ...
  • 25

1
2 3 4 5
15