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
votes
0answers
37 views

Bot Development in 2D games and implementing an effective flee behaviour

I am currently working with a team. Our project is to create a game. We are creating a 2d game using p5.js and node.js. Our current architecture includes a server side and a client side, we want to be ...
0
votes
0answers
50 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
votes
0answers
36 views

Making Player Movement Feel Responsive [closed]

I've created a third-person controller for a prototype I've been working on. I was adding coyote time and jump buffers to make the controls feel more responsive. After implementing these 'features' I ...
1
vote
2answers
100 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 ...
19
votes
5answers
5k 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 ...
2
votes
2answers
134 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
0answers
21 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 ...
6
votes
2answers
131 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
2answers
65 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
2answers
59 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 ...
19
votes
9answers
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
2answers
128 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 ...
0
votes
1answer
43 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. ...
0
votes
0answers
30 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/...
0
votes
0answers
18 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 ...
1
vote
1answer
60 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
1answer
54 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
4answers
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 ...
0
votes
0answers
56 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
1answer
84 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
1answer
61 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
2answers
153 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 ...
0
votes
1answer
62 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 ...
22
votes
8answers
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 ...
1
vote
0answers
74 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 ...
0
votes
0answers
23 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 ...
2
votes
1answer
129 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 ...
3
votes
1answer
149 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 ...
2
votes
1answer
107 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 ...
13
votes
4answers
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 ...
0
votes
2answers
111 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 ...
0
votes
2answers
213 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 ...
0
votes
1answer
54 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. ...
0
votes
0answers
60 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 ...
1
vote
1answer
66 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 ...
2
votes
2answers
150 views

How would a turn based RPG game store move information in a reusable way?

Suppose I create a turn based RPG in the veins of Pokémon, with a lot of moves and abilities, that would have elements of hand made code, in cases for special effects after a successful attack or ...
34
votes
11answers
7k views

How can I prevent cheating in my collecting and trading game?

I develop and manage an online game where users collect and trade virtual pets (it is entirely online). It's a simple game, we periodically release new pets, users collect them and get random ones, ...
0
votes
0answers
81 views

How to implement special abilities in turn based card game (and in games in general)?

I am wondering how games like dota, or Magic Arena implements their hero/ card special ability system, and more specifically how do they "Hook" their special ability triggers to the game ...
0
votes
1answer
27 views

How do you register two or more keys properly?

I am experimenting with KeyListeners and I thought about how do I register two or more keys, this is my code so far: ...
0
votes
2answers
65 views

How do I load Player position as new gameobject?

I want to make game-like time travel, the player has the ability to go to the future by limited time, for that, I want to add some game mechanic like save the player position. Additional information: ...
14
votes
5answers
4k 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
136 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
46 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
116 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
30 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 ...
0
votes
1answer
86 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
93 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
237 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
94 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
147 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 ...

1
2 3 4 5
14