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
4
votes
4answers
20k views

LibGDX simple button with image

I want to make two image buttons (play, restart) in my main menu screen but I dont know how to do it. I tried this: ...
1
vote
1answer
123 views

Most effective approach when creating % chance of something

When dealing with % chance in a game what are the most effective ways to achieve this? When I use random.random()[python] or Math.random()[javascript] and use an if/elif/else conditional it seems like ...
7
votes
2answers
2k views

Why have the player pick up loot manually?

From a game-design perspective, I was wondering what the mechanic of manually picking up items off the ground does for the player. Keep in mind that items that fall on the ground can most likely be ...
0
votes
1answer
52 views

Canvas/Paint Mechanic

I'm currently working on an idea for a Unity game app with a canvas mechanic. I understand I may have to use particles for the brush/paint f/x however I can not think of a way to add collision ...
31
votes
8answers
11k views

How can a game handle all characters at once?

This question is just to gain knowledge about how a game can handle so many characters at once. I am new to gaming so I beg your pardon in advance. Example I am creating a tower defense game in ...
4
votes
1answer
858 views

What do you call the Call-of-Duty-style health system?

In games like Call of Duty (and many, many other FPSs), there is no visible health bar; instead, as the player takes damage, their vision is slowly obscured by blood that seeps in from the edges. As ...
3
votes
1answer
163 views

Correct order of entity updates and collision detection

I'm trying to simulate a number of units walking in a single file. My update loop looks like this: ...
4
votes
4answers
1k views

How to design a turn-based game which is easy for humans but difficult for AI?

Until recently, Go used to be of the last bastions of turn-based no information-hiding games where world-class human players could not be defeated by computers. But now this bastion has fallen, as the ...
80
votes
28answers
18k views

How can I discourage camping while still supporting a “sniper” style of play?

I am trying to add features into a third person shooter that suit a sniper style of play, in addition to the current rush/deathmatch style it was designed for. The current gameplay is similar in style ...
0
votes
1answer
201 views

What technique should I use to implement the following type of “diggable” terrain?

I'm trying to replicate a certain game mechanic from the game Diggles. This game takes place in a vertical cross-section of the earth and allows the player to dig tunnels and caves into the ...
0
votes
1answer
144 views

How to start encouraging team collaboration?

I am working on converting a single player game to multiplayer, but I am concerned that if I simply do a 1-1 conversion, even in modes with "multiple players" there won't be any incentive for team ...
2
votes
3answers
833 views

What is the difference between “stealth” and “social stealth?”

I was recently researching the stealth mechanics of several games and I stumbled across the distinction of "stealth" (eg. Splinter Cell series) vs "social stealth" (eg. Assassin's Creed series). What ...
0
votes
2answers
210 views

Adversarial Search AI having problems with too many choices

I'm a game designer working with a set of coders trying to create a card game. Currently we're trying to implement a drawing mechanic in which you choose which card you draw, but the Adversarial ...
-1
votes
1answer
247 views

Open-World objective/goal idea [closed]

My game is an open-world. But i'm stuck on the goal/objective. Is there a list of goals/objective for an open-world games?
2
votes
1answer
114 views

Resolving A counters B, who is countered by C, who could be… in an ATB

There are 4 player character slots and 8 enemy slots. I'm using a combat system that's similar to ATB from FF4; You select a move, there's a waiting period depending upon the move, during which other ...
12
votes
3answers
4k views

Attack vs Defence and who is the winner? [closed]

I am in the process of creating a new simple game in mobile and I've spent several days on the following part. For simplicity, let's say that I have two fighters. The only attribute of them is ...
0
votes
2answers
682 views

Is it legal to use the game mechanics of risk if I don't use their name? [duplicate]

I'm currently developing an idea for a conquest-style board game similar to Risk. I was wondering if I would be legally entitles to use some game mechanics that appear in that game so long as I don't ...
-1
votes
2answers
61 views

How can I get information from a function

Okay, so if I use this code to randomly spawn balls at the top of the screen, how do i get them to move down: ...
0
votes
2answers
128 views

How can i call a thing a lot of times (game: dodger)

Hey I am new to coding and i want to know how to get the same thing to hapen until i "say" stop. The game is that you need to dodge stuff that is falling, i was thinking that i could use a while loop ...
12
votes
4answers
3k views

Games where the story continues via progeny [closed]

In Phantasy Star III: Generations of Doom for the Sega Genesis you periodically marry and then the story carries on through your sons/daughters. In Rogue Legacy when you die you again play on through ...
0
votes
1answer
50 views

“Following” Object is acting Strangely?

So I recently designed an enemy that will follow the player when he comes within a certain distance of the object. However, there are times when the player comes in range, only for the "follower" ...
6
votes
2answers
403 views

Decoupling input from game states / entity behavior

I'm looking for a way or general best practice advices for decoupling the architecture of my game, in the example below the input from the current game state workflow / entity behavior. While I'm all ...
2
votes
1answer
9k views

Is flowchart correct way to visualize gameplay?

I made the following flowchart in draw.io. it's just a simple arcade shooter. cardboard zombie pops up, bang, or not. I don't have any official education in game production. So, are there other ...
5
votes
2answers
316 views

RPG Factions - Friendly/Hostile check

I'm having some trouble checking if one faction is hostile to another faction in my RPG. I'm using enums for my factions and relations but I feel like there's a better way to approach this. Currently ...
2
votes
2answers
811 views

Should I compute impact damage with energy or momentum?

My game uses physics (Box2D in particular). Just about every object in the game can be destroyed, and the primary method of combat is by slamming objects into one another at high speed. It makes ...
1
vote
1answer
932 views

How Can I Find a Shape on 2D Array?

For the code in my test project, I want to find 2D[,] array shape on the char[][] list. I created an actual map with '...
-1
votes
1answer
88 views

How are pocket dimensions created in multiplayer games programming-wise? [closed]

How do multiplayer games deal with multiple instances/dungeons/regions? I'm familiar with server clustering which is what larger games use such as Eve and World of Warcraft. How do games such as ...
31
votes
10answers
5k views

What makes a good jump scare?

I am working on a game and would like to include a few jump scares. So here is a rather simple question — What makes a good jump scare and when and how should they happen?
2
votes
2answers
250 views

Should I be returning weak/shared_ptrs or unique_ptr's to my resources?

A friend of mine told me instead of normal pointers, I should use unique_ptr, i asked him why unique_ptr's if some resources are going to be shares, like multiple grass tiles, or enemies. I currently ...
0
votes
1answer
377 views

How to Implement a Timer for my Prefab for Roll-a-Ball Game (C# in Unity)

I am trying to create a public float timer that senses when the particular prefab has not been there for a certain amount of time. Then, it will replace that particular object. The goal is to ...
7
votes
1answer
2k views

Orbital mechanics: orbit as a function of time. Universal variable formulation?

I am trying to model a two dimensional orbit for a two body Kepler problem but have gotten stuck when introducing the time variable. For a satellite with known semi major axis (a), eccentricity (e), ...
1
vote
1answer
637 views

Click counting and actions based off count

So I have a button that is the 'mine' for my incremental game. I would like to track the number of times that it is clicked and be able to do two things: Have events happen say every 5 clicks. ...
0
votes
3answers
198 views

How to model an Attack( ) action? How to model combat? In general, how objects communicate?

I never understood how would you elegantly describe two people talking in OO. I think this question extends to how similar objects communicate in general. I am designing a game now and Units have to ...
1
vote
0answers
78 views

How can I detect sprite collisions out of screen?

I am creating an Android game using andEngine library. I have enemies coming from out of the screen into the screen. I already know how to detect collisions, but is there any method I can use to ...
1
vote
2answers
250 views

How can I exclude my enemies from spawning in certain zones generated at random?

I have a code where I randomly generate enemy spawn position, but I want to exclude some areas since it's colliding with some sprites it shouldn't collide with. This is the code where I generate the ...
7
votes
1answer
171 views

Conceptual question regarding Belief-Desire-Intent agent

I've been researching the Belief-Desire-Intent model and the way they used it in the original Black and White Game(which is the same, but they also defined decision trees as opinions). I have a ...
2
votes
0answers
195 views

More realistic currency for spaceship battle game [closed]

This is slightly related to real development but as you know hardest thing to do for developer is naming things. So now I can't figure out what specific currency to use in my spaceship battle game. ...
4
votes
1answer
367 views

Setting 4 different enemy spawn zones off screen

This is my first game, so I really appreciate all the help. I want to create four enemy spawn zones for enemies and this areas are off screen. The enemies are coming from left, right, up and down, ...
2
votes
2answers
111 views

Algorithm for spending x points on y things divided by n people

I'm trying to devise an algorithm to spend a given amount of points on a randomly generated list of items each with their own cost in a way that results in having a number of items that is divisible ...
3
votes
2answers
863 views

Implementing a 4x4 Game Board

I struggle with efficiency in code, and I want to start my game off on the right foot. I have a game that I'm making a 4 x 4 map of 'tiles' that a user can build their 'town' on. To keep track of ...
0
votes
2answers
670 views

Why do FPS games often automatically reload? [closed]

Was pointed here by Arqade's Meta On every first-person-shooter game I've played I've noticed that the 'automatically reload when empty' game mechanic is always used: I've always found it annoying, ...
0
votes
2answers
159 views

Game Mechanics Suitable for a Game about Issues of Immigrations [closed]

So, I'm working on a video game design concept, dealing with the problems of an immigrant family and how they will try to blend in the society. The universe is a fictional universe. I was wondering ...
1
vote
1answer
125 views

Calculating ln (natural logarithm) in games

I am developing a game for tablets using the Marmalade SDK and Cocos 2dX. In my game I have implemented a separation steering behavior in order to keep some of my characters separated from eachother. ...
0
votes
1answer
197 views

How do I create a playing field of collapsing bubbles, as in Tsum Tsum?

Tsum Tsum App is a pretty interesting game and I am wondering how the main play area's data structure is, erm, structured? Characters are stacked, disappear as the player swipes over matching ones, ...
4
votes
2answers
868 views

What would a good hacking gameplay look/feel like?

In real life, 'hacking' (that is, using brute-force attacks to guess a password) is not very interactive. In fact, it works pretty much independent of any user from the moment you press Return until ...
4
votes
3answers
540 views

Game Design - Challenging a player in an RPG-like game without removing easy cards

I'm designing a card game that I'm implementing on the computer that mirrors some gameplay aspects of dungeon crawlers and RPGs. The player's object is to survive as long as possible from the ...
21
votes
2answers
7k views

How to design context menus based on whatever the object is?

I'm looking for a solution for a "Right Click Options" behaviour. Basically any and every item in a game, when right clicked, can display a set of options based on whatever the object is. Right ...
0
votes
1answer
18 views

libgdx: 2nd var of myClass()'s values saving to/overriding 1st var of myClass()

I'm using libgdx with Eclipse. PROBLEM: In the class inputHandler I have a list of buttons, menuButtons, composed of 2 buttons: playButton and retryButton. They both belong to the class ...
-1
votes
2answers
126 views

Before I change position I want to check if the gameobjects are collinding

For starters I'm new to Unity3d. So my question is when I click on an object I want to change its position but without collinding with the other objects and I need a function to check that. I already ...
8
votes
2answers
10k views

How to create rope?

I'd like to re-create this game, but I have no idea how to create the rope, or its influences on the ball. Basically, there is a rope, "attached", at one end, to the mouse pointer, and at the other ...