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.

73 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
0 answers
162 views

How can I connect multiple explorable regions into one large map?

I am planning a 2-D science fiction game involving spaceships. A major thing that I am having trouble figuring out is how to create a 2-d array of smaller maps that the player can explore. My ...
Kenny Williamson's user avatar
3 votes
0 answers
157 views

How can I implement slow motion for one player in multiplayer?

Special attacks in Mortal Kombat Mobile require slow motion i.e. delay in game play. On multiplayer mode, when the opponent uses special attacks, I don't observe any lag/delay. When I use special ...
Megidd's user avatar
  • 141
3 votes
1 answer
285 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: ...
Can's user avatar
  • 131
2 votes
1 answer
564 views

How to implement grapple hook and swing

I'm trying to make a retro style grapple hook / swing system that has a constant speed and is not based on real-life physics. Like the one in Axiom Verge, Bionic Commando (NES) and Super Metroid.
user2272675's user avatar
2 votes
0 answers
159 views

In UE4's Blueprints, how do I activate something when the player looks at it?

I want to make an object that activates when the player presses a button, then looks at it. How can I do this using Blueprints Visual Scripting?
user88107's user avatar
1 vote
0 answers
83 views

How to make entities fall through illuminated side of collider?

I'm trying to make a prototype, but I'm still new to Unity so not sure what's the best approach to take. Consider this arena: Essentially, I want the shadowed parts of the outer rectangles to behave ...
IronWaffleMan's user avatar
1 vote
1 answer
158 views

How to encourage players to fight nearby players instead of clustering into mega-factions?

My game is a location-based RTS game with roughly 150 players on 5 continents. Players can create and join alliances essentially at whim, and the players use discord for communication. There is a ...
TheBiscuit's user avatar
1 vote
0 answers
74 views

Node not disappearing when calling queue_free

I'm working on a game, and I'm trying to make an eating feature. I got the player's part down for the most part, but the food's script does not want to work it seems. I've tried many different ways to ...
Feara Smith's user avatar
1 vote
0 answers
64 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. ...
user3460324's user avatar
1 vote
0 answers
314 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 ...
KillerRobot.blend's user avatar
1 vote
0 answers
86 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 ...
TBG's user avatar
  • 25
1 vote
1 answer
99 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 ...
YouCanCallMe Syarif's user avatar
1 vote
0 answers
59 views

A system that figure out the fastest (not shortest) navigation method between points for 2D spaceship with 2 axes propulsion

I am working on a space themed game with space being a 2D pane. The player issue order by clicking on the coordinate for his/her ship to navigate to a certain point on the pane. The player ship can: ...
Saranpat Thanadsornsarn's user avatar
1 vote
0 answers
84 views

Why is my player falling through the Tiled map?

I am gassed. I have this game due very very soon. I made my player so that it doesn't fall through or go through tiles from Tiled that have the property "blocked". I do not know why but it is not ...
John Bob's user avatar
1 vote
0 answers
34 views

Android problem with onTouchEvent

I'm making some sort of clone for FlappyBird, but with some adjustments. I want to change from the FlappyBird's mechaninc of jumping to make the bird raise as long as the player is long-pressing the ...
Roy Raihenshtein's user avatar
1 vote
0 answers
161 views

C# 2D game collision detection huge problem

I'm making my first game using C# and Monogame and I have a huge problem with collision detection. The entire code is in a link below: My game code So, I use Vector2 to keep position and dimensions ...
Karol's user avatar
  • 121
1 vote
0 answers
104 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'...
user avatar
1 vote
0 answers
88 views

Trying to create a UE4 blueprint or script to recognize set shapes

I'm currently developing an indie game using Unreal Engine 4 and I've stopped developing it within the last week because I have hit a massive roadblock.. I am trying to figure out how to create a ...
Deygus's user avatar
  • 11
1 vote
0 answers
57 views

Make an object rotate from 0 to 360 degrees by using the trigger button on the htc vive controller

Hello I would like to be able to make a sphere that is attached to a cube rotate from 0 to 360 degrees by pressing the trigger on the vive controller. As the sphere rotates I want it to be able to ...
Rafman27's user avatar
1 vote
0 answers
653 views

How can I create click and drag for a 3D Jenga game in Unity?

Essentially, I am trying to create a game that mimics Jenga. Right now I have made it so that the blocks collide with each other and have gravity, everything works very well. The one thing that I am ...
Jordan Muller's user avatar
1 vote
0 answers
622 views

how do i make an object in gamemaker only overlap on one side?

I am making a small flash game in game maker 8.0 pro and I need some help. In my game, the character is in an office with cubicles. I need my character to be able to walk behind and in front of the ...
Austin's user avatar
  • 11
1 vote
0 answers
88 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 ...
OrangeHat's user avatar
  • 123
1 vote
0 answers
54 views

Weapon index sets index values to the same

i've got a question about my unreal blueprints. I've been trying to get this right for almost a month now, but i don't know how to fix this. These are my are down below and a small video to explain my ...
PVermillion's user avatar
1 vote
0 answers
542 views

LibGdx Triangle Collision

I'm back with another question. I'm trying to get a collision between an actor and a sprite. With the actor, which only moves upwards and downwards, I've got no problem since it's shape is a ...
user48352's user avatar
1 vote
0 answers
202 views

LibGDX polygon caching

I am developing an Android game using LibGDX and I have big world map made of polygons. I use PolygonSprite and PolygonSpriteBatch, when I render map, I get 30-35fps and it feels laggy. I wonder if ...
user41441's user avatar
0 votes
1 answer
717 views

Why does my unity Cinemachine camera that follows the mouse only rotate on the x axis not the y axis

I've recently started work on a 3rd person game and want the camera (cinemachine virtual camera) to rotate with the mouse while following the cinemachine camera, it would be best described as when ...
Colton Sullivan's user avatar
0 votes
0 answers
28 views

C++ Qt Game Dev: How to instantiate game objects at a specific positions read from a txt file?

I am trying to add a functionality to a game. First, here's a description of what was the initial version of the game like: What I Had at Hand I had at hand, a simple baloon popping game where the ...
Berk Tezcan's user avatar
0 votes
0 answers
155 views

Better Alternative than Sprite Masks in Unity?

I am have blank sqaure sprite as a Fog of war and I am spawning multiple sprites masks when the player starts moving, through this I am to get this effect where only places where the player has ...
Ashok kumar's user avatar
0 votes
1 answer
239 views

P2P + Authoritative server for Web based game, how to combine?

I'm working on an online Web RPG game (jRPG) with a map, that characters can go around. Also, an important part, is that each player has his own world and each player can invite his friends to play on ...
Sergey Sharpov's user avatar
0 votes
0 answers
73 views

How to automate strafe jumping?

I'm a complete noob when it comes to math so excuse my ignorance. I've trying to automate strafe jumping (from the quake engine) into another quake engine based game. I've tried a fair bit to get this ...
illtropic's user avatar
0 votes
0 answers
44 views

Close door after player has entered a room

I can't figure out how to make the triggered door open and then close again. I managed to open the door, but can't figure how to close it again once the player is inside the room. Here's my code so ...
Chloe Jung's user avatar
0 votes
0 answers
227 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 ...
Insomnia's user avatar
0 votes
1 answer
50 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 ...
Skourge's user avatar
0 votes
0 answers
123 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 ...
rsp's user avatar
  • 101
0 votes
0 answers
107 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, ...
Kristian D'Amato's user avatar
0 votes
1 answer
81 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 ...
Cross's user avatar
  • 1
0 votes
0 answers
78 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 ...
TBG's user avatar
  • 25
0 votes
0 answers
70 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 ...
Mrmooijman's user avatar
0 votes
0 answers
108 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 ...
Shakaama's user avatar
0 votes
1 answer
368 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 ...
Rajan's user avatar
  • 1
0 votes
0 answers
32 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 ...
Tasneem A.'s user avatar
0 votes
2 answers
64 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 ...
Shury's user avatar
  • 101
0 votes
0 answers
95 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 ...
Hypergardens's user avatar
0 votes
1 answer
96 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. ...
Jon White's user avatar
0 votes
1 answer
258 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 ...
matronator's user avatar
0 votes
0 answers
258 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 ...
VCoder12345's user avatar
0 votes
0 answers
50 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 ...
TheWorldSpins's user avatar
0 votes
0 answers
74 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 ...
ivan866's user avatar
  • 141
0 votes
0 answers
840 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 ...
downstroy's user avatar
  • 101
0 votes
0 answers
200 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 ...
Ishaan Masil's user avatar