Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
20 views

Leading a target with edge casting

I am trying to write a movement prediction code. I have found the quadratic method with these topics: [1]: How to calculate shot angle and velocity to hit a moving target? [2]: http://...
0
votes
0answers
49 views

How do I add earning points to my game? [closed]

I'm new to creating games and I'm working on making a simple game to be played with friends on our website. Pretty much we're trying to figure out how to let the user submit a score and receive a "...
0
votes
1answer
39 views

How do i prevent IAP abuse using restoring purchases in an online game?

Lets say i have a mobile mmorpg (ios/android) where you can purchase premium currency using IAP's... how do i actually prevent the following case : Player purchases premium currency Server side ...
0
votes
1answer
44 views

RTS Attack Formation

If i select a group of units and send them somewhere i form them like the following; If i select them and order an attack, i want three things to happen: High range units should keep the distance ...
1
vote
0answers
36 views

What are the ways to deal with elevated tile blocking the view of the tile behind it?

I'm trying to make an isometric tactical rpg type of game. One issue I encountered is that if I elevate an tile, then it starts to block the view behind it. The game is 2D, so there is no freely ...
0
votes
1answer
72 views

Unity3D C# Drag object smoothly on it's x axis that's already bouncing

In my scene, I have a bouncing ball that collides with a cube. On each collision the ball returns to the same height. How can I get the ball to smoothly move along the x-axis by dragging my finger ...
3
votes
5answers
315 views

What are the cons of a 3 team FPS?

In creating a video game concept, there are very little video games that offer a 3 team multiplayer FPS (think like Overwatch/Call of Duty but with 3 teams instead of 2). The only 'mainstream' games ...
1
vote
1answer
99 views

Game mechanics for a persistent real-time strategic/tactical game

I am designing a game based around a fairly realistic simulation of 'Age of sail'-like trading and combat, and I am currently trying to decide whether to make the game a limited on-line application, ...
1
vote
1answer
38 views

Automated LAN Matchmaking

I'm looking to build an automated LAN matchmaking system for games and wondering if/how it would differ from the online applications (like FaceIt, ESEA) that serve a similar function. Ideally, a user ...
0
votes
0answers
38 views

randomly switching between animations - Unity

I'm trying to add some hit/punch animations to my character, but I can't resolve some issues, first I don't know what's better for my case, bool or trigger, second I dont know how to switch between ...
1
vote
0answers
95 views

Specialisation in game roles: Getting better by learning vs leveling [closed]

Many games have some sort of role for the players, especially in multiplayer games. Medic, Sniper, Rifleman, AT Specialist in Battlefield, Healer, Tanks, DDs in MMOs, etc. Now, in many games, there ...
1
vote
2answers
168 views

Pros and cons of randomised item stats?

I'm working on an old-style isometric RPG like the early Diablo or Fallout games. It has a central story with branching paths, and a lot of player freedom to explore the open world. The combat system ...
3
votes
1answer
268 views

Would it be worth designing games in which the fighting is suspended so your enemies can get some sleep?

I think one way to motivate kids to get more sleep at night would be to design a series of video games in which the monsters/creatures/aliens, etc., will automatically stop attacking your character ...
0
votes
2answers
88 views

How Can I Fix Spawning The Tiles?

I am making a 3D infinite runner game in Unity in C#. When the player has reached the end of the tile it should spawn another tile and then delete the previous tile. When the player reached the end of ...
0
votes
1answer
77 views

How Can I Fix Where The Tile Spawns?

I am making a 3D game in Unity and C#. I want to spawn another tile when the player is at the end of the current tile. But when I spawn the next tile it doesn't spawn at the right place(just after the ...
2
votes
1answer
89 views

Logic for npc/customer for cafe simulator game

I need help for logic or pseudo code on how to implement a rules/formula for customer in how they choose drinks(& the toppings). I have more than 10 types of customer and I want to set preferences ...
1
vote
1answer
66 views

How can i reproduce the bird to catapult animation in angry birds?

I've seen tutorials on producing an angry birds like game but non of them explain how to get the next bird on the catapult after the current bird is shot. Also how would i go about doing this if the ...
1
vote
0answers
70 views

Making games on Structure programming language c or c++ [closed]

I am learning structured programming language C. I know about data type, control statements, loops, arrays, strings, functions, pointers, structures and STL. My question is, if I want to make game ...
3
votes
1answer
315 views

Adding character stats/traits in Ren'py

I'm coding a relatively simple VN with RPG elements in Ren'py, with little prior programming knowledge. There's one aspect that I can't simplify further because it's important to the game's branches, ...
4
votes
2answers
364 views

I am struggling with a combo system for a game of mine

I am currently trying to make a game with a friend but at the moment I am having a few problems with finding a combo system. Until we progressed I copied this code from a video where I use our first ...
2
votes
2answers
69 views

Unity 3D: how to hide/unhide objects as player collides with them without flickering?

I have a maze grid of cubes that my player navigates through. I'm trying to make it so that each cube is only visible when the player is near it (so the player can only see the 4 cubes immediately ...
0
votes
0answers
44 views

Is it possible to offset the Vsync timing of Android on hardware level?

To clarify, I would like to offset the actual timing of when the next screen refresh happens. I am creating a multiplayer game where the server sends packets to clients at 60Hz and I would like these ...
0
votes
3answers
105 views

What are the differences between random encounters and permanent mobile enemies?

Random Encounter: A player has a 10% chance to encounter an enemy. while moving through a 5x5 grid. Permanent Mobile Enemies: There is one enemy that constantly moves through the 5x5 grid and only ...
1
vote
2answers
108 views

Help creating combat for collection type game

sorry for my odd terminology, I am rather new to all this I'm creating a collection/pokemon type game. as of right now I have created a separate GameObject prefab for every monster/character in the ...
3
votes
3answers
165 views

At what stage of game development is it a good time to ask for feedback?

I'm making a 2D top-down fantasy "Nuclear Throne"-like game. I'm at the point where a player can walk around, pick up weapons and kill some enemies. I'm not an artist, so it looks pretty rough and its ...
0
votes
1answer
363 views

Isometric Map with different Z-axis values

I want to create a isometric tile map editor just like the one shown in the images ( pictures are from the game Zoo Tycoon ). I know how to render the tiles when there is only one Z value ( zero ), ...
0
votes
0answers
51 views

Cocos2dx Follow action is not working

I am making a 2D platformer game and I want my camera to move with the player sprite. There's a Follow action in cocos2dx which I used but Its not moving the scene as expected. Please take a look at ...
1
vote
1answer
66 views

Is it feasible to create a blockchain to use as a market place game mechanic without extreme inflation?

After watching a fascinating video about block chains, the narrator brought up the idea of using block chains in video games. The example he used was in an MMO type of situation where the player used ...
1
vote
1answer
167 views

Getting multiple inputs in C++ simultaneously using kbhit() function

I am using Turbo C++ to make a game using the graphics.h library (I know it's a bit old). In this game, the player can move left, right and they can jump using A, D ...
0
votes
1answer
46 views
0
votes
0answers
25 views

Anyone know anything about users being able to modify levels?

Ok so I have been developing some ideas to get to work on and I have one specifically that I need some assistance with. The App will be called “A Walk On the Beach.” It’s somewhat of a 3D ...
0
votes
0answers
105 views

LibGdx- Sprites moving alongside camera

I am trying to render some entities in random positions on the screen. The spawning positions are okay however when I move the player entity (which the camera is focused on) and pass the middle of the ...
0
votes
1answer
224 views

How can I respawn enemies in Gamemaker Studio 2?

I know this may have been asked before but I would like an updated answer. So how do I respawn enemies in Gamemaker Studio 2? Say I have an object called objBullet ...
0
votes
3answers
66 views

Help generating clues in a treasure finding game

I am a high school student creating a small game in unity for fun and would greatly appreciate your opinions on this game mechanic. I have a treasure finding game that takes place in a randomly ...
0
votes
0answers
51 views

Build it from a solution Match 3 Java Game

I'm Starting a Project to developing a Click-Match 3 game, at this point I search about How to Fill the board, and I think the best way to fill it, is build from a solution. What this it means? Every ...
-1
votes
1answer
126 views

What is “storage” in MMOs with vehicles good for, where all equipped items get removed?

Many games, for example Star Trek Online (Dry Dock) and Battletech (Storage) have a concept of placing a vehicle in storage. It is not ready for use, you're not destroying unused vehicles, but rather ...
7
votes
2answers
517 views

Game AI move towards player while avoiding an obstacle

I'm trying to move enemy towards player, while enemy also tries to avoid an obstacle if it's in its path. Here's a simple illustration of what I want to do: What I've tried: Making circular ...
0
votes
3answers
152 views

Touchscreen controls for a game

I made a pc game recently (uni project) and now I want to put it on google market but I am having troubles changing original controls to touchscreen. The problem is that I don't really know what I can ...
1
vote
1answer
399 views

How to design simple turn based combat system with multiple difficulties?

I am developing a small, turn-based game with spaceships. The user-controlled spaceship has two modes, let's call them offense and defense mode. The user can freely switch between modes. There are ...
12
votes
5answers
779 views

What kinds of conflict-resolution can be fun beyond combat in an RPG?

As someone who grew up on the single-digit Final Fantasy games and AD&D, there are few ways of solving an rpg problem as fun as a fight. Different streams of accomplishment (object acquisition/...
1
vote
1answer
318 views

How do I prevent tile tearing effects when using pixel art in XNA/MonoGame while keeping the low velocity of the player?

Most of my Texture2D are pixel art, meaning they're rather small, so my player/character's position has to change using decimal points to keep a realistic movement that matches its walking animation. ...
0
votes
2answers
136 views

player keeps on firing (Javascript + Canvas)

I'm brand new to game development (with Javascript)... I'm pretty sure my question is very simple, but I have a hard time to figure out myself... I'm starting at the very beginning, so this is pretty ...
0
votes
2answers
340 views

How are Roguelike/Bullet Hell mechanics stored in Unity?

I'm going to be creating a roguelike bullet hell game wherein the play will be a bullet hell game, but you will be traveling between "rooms" wherein the action takes place. The "rooms" will be ...
-1
votes
1answer
1k views

How to change fps character's movement speed and mouse sensitivity in UE4?

As the title says, I'm using the default fps template from UE4 (blueprint template) and the movement speed is very high, also I want to adjust the mouse sensitivity, but I don't know where are those ...
1
vote
2answers
107 views

Establishing if a tile is available to move into

I'm working on a grid-based game as a hobby project. Think of an ANSI game like ZZT. The grid is represented by a two-dimensional array of objects which contain both the UI element which takes care of ...
0
votes
1answer
76 views

Reduce Blur and headache during gameplay

I am implementing a browser based Javascript game here. On tougher levels when the speed of the game increases, what we observe is that the user will experience headaches and the view will start to ...
0
votes
0answers
33 views

Optimise pathfinding failure - can I reduce the number of sweeps? [duplicate]

I've got pathfinding working on a simple 2D grid map. NPCs can now move around the board and avoid areas they cannot travel. This works well, and is carried out by a single sweep of the board to ...
1
vote
1answer
59 views

Detecting when pathfinding has failed

I have successfully implemented a simple pathfinding routine as described in this Wikipedia article: https://en.wikipedia.org/wiki/Pathfinding#Sample_algorithm I used the "sample algorithm", which ...
1
vote
1answer
173 views

Parallel Storylines - Underused Francise Characters

One Hero Rule: Video games have only one protagonist. Example: in an rpg, party members are not seen in a field map, or they just follow you. Their role is "cannon fodder" tier, meaning who the hell ...
2
votes
0answers
218 views

How does lag compensation really work?

I am curious about the details of lag compensation in games. I have read a lot of articles about it, for example: 1: Source Engine Multiplayer Networking 2: Fast-Paced Multiplayer - Gabriel Gambetta ...