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
2 votes
1 answer
99 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
37 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
106 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
42 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
99 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
92 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
48 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
129 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
70 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
35 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
49 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
43 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
158 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
22 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
54 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
78 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
36 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
193 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,382
3 votes
1 answer
104 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. ...
  • 104
0 votes
0 answers
49 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
52 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
70 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
61 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
120 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
65 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
29 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
53 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
75 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
170 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 ...
  • 544
0 votes
0 answers
86 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
235 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
208 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 ...
1 vote
0 answers
36 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
199 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
118 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
139 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
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 ...
2 votes
2 answers
149 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 ...
  • 21
0 votes
1 answer
61 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. ...
1 vote
1 answer
87 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 ...
0 votes
1 answer
86 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 ...
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 ...
  • 1,048
0 votes
0 answers
109 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 ...
2 votes
1 answer
142 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'...
1 vote
1 answer
112 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 ...
3 votes
2 answers
198 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 ...
  • 1,207

1
2 3 4 5
15