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

How to improve my battle system?

Hey I'm coding this little game and I need help with my battle system. I don't have any idea how to improve my system. I made it like RANDOM_VALUE VS RANDOM_VALUE. It's a console game, so I need ...
3
votes
0answers
75 views

What can make a character better in combat when overwhelmed? [closed]

I am designing a medieval themed RTS game and want a unit that performs better than a regular unit would when outnumbered or against better units making them slightly resistant to good enemy tactics. ...
50
votes
6answers
15k views

You've killed the enemy you needed to get across. Now you have to die and retry?

I am designing enemies for a platformer, and want to have enemies which the player utilises to get through levels. I like the idea of jumping on enemies to platform across gaps, but it's problematic ...
106
votes
4answers
20k views

What is actually moving in an endless runner?

For example the famous Flappy Bird game, or anything that sort really, is the player(in this case the bird, or the camera whichever you prefer) moving forward or is the whole world moving backwards(...
13
votes
3answers
842 views

How to create a non-inflationary player progress system (RPG)?

As an ambitious RPG gamer, I've often came to the conclusion that something's off. You're fighting your way through a dungeon, loot some chests, fullfill some side quests to get the rewards and start ...
105
votes
13answers
28k views

What are the advantages of putting cheat codes into a game?

Some games have cheat codes in them, but I'm not sure I want to add some to mine because I fear they'll ruin the game by making it too easy to beat. What would be the advantages of putting cheat ...
-3
votes
2answers
232 views

Would an unbeatable opponent ethical for a game?

Would it be unethical to create an A.I. bot that has full advantage of ALL of the game mechanics? Would it be better if it was optional and gave full disclosure before it let you face this opponent?
18
votes
4answers
1k views

How do I build interesting mechanics-driven puzzles for my stealth game?

I'm currently working on a turn-by-turn puzzle stealth game (as a student group project), inspired by Tiny Heist. The basic mechanic is that every time the player moves a square / does a thing, every ...
6
votes
1answer
233 views

How to make sure that the set of randomly spawning obstacles is passable?

Prompt Suppose we have a little mini-game where you have to avoid incoming obstacles by moving the blob up and down at a constant speed. The blob's x coordinate is fixed and the obstacles will spawn ...
3
votes
2answers
706 views

How to achieve “Perfect Imbalance”

I've heard the term "perfect imbalance" thrown around a lot, which seems to imply that it is okay for different game options to be strictly superior to others as long as the 'better' options require ...
2
votes
1answer
528 views

Game AI architecture for a RTS game

I am developing a RTS (real-time strategy) game involving robber and cops. I have designed a simple rule based AI system for the robber. Goals of the robber AI: Escape from the cops (robber should ...
0
votes
0answers
69 views

Unity: Change scene by drag

How do I change the scene like you do on common android home screens? I know i could detect if the player swipes to the right and then change the scene but this would not look as smooth as android ...
25
votes
8answers
5k views

Is it worth to implement game mechanics/rules separately from the main code?

Not sure whether it fits the scope of this community, or should go to Stackoverflow instead. Let's suppose that I want my game be easily extendable in its core, i.e. I want that a lot of people, even ...
4
votes
3answers
1k views

How can I design loot to be enjoyable to acquire and neither a chore nor frustrating?

I am currently working on an ARPG and I am trying to figure out which elements of the game influence each other and one example is that endgame activities inherently influence loot drops/handling and ...
0
votes
0answers
81 views

algorithm advice for game background ambiance - animals living in forest

In the game, there is a forest and animals living in it. The interaction of the animals is just a background ambiance. When googling I found Goal-Oriented Action Planning pattern. And this pattern ...
1
vote
1answer
377 views

Chaining Melee Attacks

I am working on an action platformer using Pygame. My player sprite has three melee attacks. Let's call them SLASH_1, SLASH_2, and SLASH_3. Each of these attacks has, let's say, 2 animation frames, ...
0
votes
1answer
565 views

Looking for collision detection algorithms for broad and narrow phases between non-convex polyhedrons

I have some experiences on particle system simulation (namely DEM - Discrete element method), in which an individual particle with realistic shape (convex and non-convex) is approximated by gluing 3D ...
9
votes
6answers
739 views

How can procedural generation be used to support exploration mechanics?

It would seem that procedural generation would be a great tool for open adventure games, since it would provide an almost limitless world. However, I notice most successful procedural generation games ...
1
vote
2answers
139 views

Help developing a scoring system for a tech tree based game

I'm working on a tech tree based project in which the player would select "advancements" to effect several measurement stats, or "basic stats". I have a working excel model that will calculate the "...
3
votes
0answers
48 views

How to calculate the sound volume for the left ear and right ear based on the object position & velocity, player position & forward vector? (3D sound) [closed]

Please assume: Minimum distance for 3D volume = 1.0; Maximum distance for 3D volume = 100.0; This is the declaration of the function: An object can be a ball moving closer to the player. ...
0
votes
1answer
105 views

Character jumping but not returning to ground platform game AS3

I am making a platform game where the main character moves right and left and jumps however my character jumps and does not return to the ground but stays on top of the stage.My characters movie-clip ...
1
vote
2answers
279 views

Strange issue with bool comparing ToString always false - unity c#

I have another problem with my code that I can't fix :\ Basically i have an enum called 'type' in my Item class, which tells me if the item is consumable, or equipment, etc. In the database script I ...
9
votes
5answers
931 views

How to balance experience gain with player collaboration?

I'm developing an online game with friends, and we're currently blocked by a overall game design issue: how do you reward players with experience points and loot/gold yet still encourage them to play ...
0
votes
1answer
994 views

What game mechanics work best on mobile phones? [closed]

I teach Swift 3 and Android Studio. My students are always asking why I'm not in the mobile market yet; frankly, I'm migrating my 88 games from flash into native mobile apps ... it takes time. My ...
1
vote
0answers
97 views

TBS Shooter targeting AI

I have some experience in developing all sorts of (small) games using Unity3D, I have a few personal game projects and I also work for a small game studio. The only subject in game development that I'...
13
votes
1answer
382 views

How to implement stress/strain mechanics in voxel terrain?

I am in the process of developing a Minecraft-like world where the terrain is divided into voxels. However, I would also like for unstable configurations of landscapes to collapse predictably. For ...
1
vote
3answers
500 views

How to avoid player base schisms created by levelling gaps in MMO games?

In WoW, players are split into strata (Pvp Tiers) 10-20 / 20-30 / 40-50 / 50-60... This causes the playerbase to split. It creates a rift, players of uneven levels cannot be matched together for ...
9
votes
3answers
977 views

How to build repetition into a game that won't ruin the experience

I am building an Educational technology (Edtech) game that attempts to follow the format of an adventure RPG while teaching foreign languages. Obviously, EdTech games must actually teach, which ...
0
votes
1answer
189 views

Offset on camera following object that accelerates

I have camera a that is actively following an object (a plane) from behind. This object can accelerate or decelerate. I would like to have a camera offset when I move the plane, so it doesn't look so ...
1
vote
2answers
193 views

I have a game based on combining 2 ingredients to create a product. What is the best way to code this? (Unity)

So to go a bit more in depth, in my game, you can combine a variety of ingredients to make a product. For example, you could combine water and dirt to make mud. What I am currently doing to achieve ...
4
votes
2answers
484 views

2D Skier physics looks very artificial

I am creating a ski slalom game and I coded a new physics routine, because I was told the rigidbodies are pure "not overly good thing" to use by my boss. With my physics routine it indeed looks much ...
7
votes
1answer
2k views

Modern Loot Table Concepts

First, allow me to apologize, because this is going to be a fairly long post. I've given this topic a lot of thought, and even experimented with concepts and previous implementations. When I imagine ...
-1
votes
1answer
198 views

Browser RPG mechanic from tabletop RPG [closed]

The GURPS "you have 100 point to buy attributes, advantages and skills, but you can get disadvantages for bonus points" mechanic can work in browser based RPG's?
8
votes
2answers
1k views

Adapting pen & paper RPG rule system for use in a video game [closed]

I want to make a browser based RPG. I am considering to use an existing pen & paper rule system (like FATE or GURPS) instead of developing my own rule system from scratch. What pitfalls should I ...
0
votes
1answer
17 views

How to make the image move forward properly when rotated in my HTML5 game?

I am just trying to make a simple 2D racing game using canvas. It uses the W,S,A, D keys to move the car. The W key should take me forward and the A and D keys will turn each way. I want the car to ...
3
votes
3answers
568 views

Could neural networks be used in order to build a better AI system? [closed]

Currently, I am researching both about Finite State Machines and Neural Networks in order to design AI for my game. I have searched a lot and I see that people usually use FSM because they are ...
2
votes
2answers
194 views

How can I dissuade alliances?

I'm designing a game where players are able to form alliances with each other. The game has two winning conditions: When all other players are eliminated, the remaining player wins; or if all the ...
0
votes
2answers
443 views

AI Algorithm to make enemy smarter from level to level in Runner game

I am designing a City-Runner game in Unity 3D Engine.I am a beginner in game development (not in programming). The idea is really simple, the Runner will be followed by AI enemies, and if caught by ...
19
votes
5answers
5k views

Is there any term for reverse gamification?

Gamification is a process of applying game mechanics to non-game contexts. Reverse gamification is a process of using non-game context or non-game mechanics in games. For example: Gamification - ...
0
votes
1answer
307 views

How do I handle resolution change in OpenGL and SDL2, in combination? [duplicate]

How do I handle resolution change in OpenGL and SDL2, in combination? Let´s assume I have a GUI window with a fixed position, so it will be on the right corner of the window, and after resolution ...
0
votes
1answer
41 views

How to reference a GameObject that shares position with gameObject in Unity C#

Well, thats a weird title. What i am trying to do is identify the object which position matches the gameObjects position that the script is attached to. Hell, that didn't make it better. Here's my ...
2
votes
1answer
303 views

How would I create colouring such as in Splatoon?

For those who don't know, Splatoon is a game where you color ground with your teams, and other team tries to color more area in their color. It looks like the whole ground is color-able, which makes ...
6
votes
4answers
811 views

Are random events beyond players' control necessary for “strategy” games?

By "random event" I mean critical hits, misses, random variation in some kind of result etc. Examples of these include the accuracy mechanic in XCom; critical hits and accuracy chance in Darkest ...
0
votes
2answers
62 views

Pressed key doesn't run out of special powerups

So I'm making a game in Lua/Love2D and have a problem with my game logic. Mainly I have a spaceship that can use boost and stuff. That part is fine, I click space and it boosts up to speed quickly. ...
-3
votes
1answer
86 views

How do I set the truck to run on the road, recognizing the black edge as the road?

I am rewriting the Bad Roads game with pygame, for AI research, having extracted the assets from the APK file. I have the truck images and the background: How do I set the truck to run on the road, ...
1
vote
2answers
5k views

Pokemon Artificial Intelligence [closed]

I'm working on a thesis about programming an AI combat system for Pokemon (To be implemented in Showdown!). However, I would like to include historical information about the existing implementations ...
1
vote
2answers
219 views

Movement of an object based on thrust and gravity force in 2d scrolling game, need help

I want to make a box "fly" so while user press D it's add thrust then on A it decrese untill 0, W and S control the direction of my box. I have problems after I add the gravity to update correctly my ...
-1
votes
2answers
203 views

What are the alternatives to additive damage?

By additive damage I do not mean additive damage bonuses. I mean damage that adds up over time: New HP = Old HP - Damage Additive damage has the following ...
1
vote
2answers
1k views

Breakout angle calculation

I am making my first game in python and I am really stuck at with a physics problem. The game I am trying to make is a copy of the game Breakout. In Breakout, the player controls a "paddle" at the ...
1
vote
1answer
455 views

How to use Libgdx Accelerometer?

I am developing a game with libgdx for android.I want use accelerometer for motion control.I am controlling a coin within screen bounds. I want to apply gravity according to device orientation as you ...