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.

50 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
0answers
138 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 ...
3
votes
0answers
112 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 ...
2
votes
0answers
147 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?
1
vote
1answer
31 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 ...
1
vote
0answers
45 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: ...
1
vote
0answers
64 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 ...
1
vote
0answers
21 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 ...
1
vote
0answers
116 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 ...
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'...
1
vote
0answers
66 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 ...
1
vote
0answers
52 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 ...
1
vote
0answers
510 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 ...
1
vote
0answers
454 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 ...
1
vote
0answers
79 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
0answers
49 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 ...
1
vote
0answers
490 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 ...
1
vote
0answers
191 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 ...
0
votes
0answers
20 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
0answers
28 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 ...
0
votes
0answers
24 views

Phaser 3 - How to make 2 object merging after collision (Like Claw Machine)

I'm new in Phaser 3. I use Matter.js for physics. I want to create something like Claw Machine : I have a claw (top) and prize (bottom) The claw will take a prize from bottom When claw hit the prize, ...
0
votes
1answer
69 views

How to make balls (water, or fluid) through pipe

I'm working on a project and get stuck for days. I want to make balls going through the pipe like this game: You can watch this Youtube video for more detail. How can i replicate this game machenis?
0
votes
1answer
79 views

Understanding use of dot product in speed boost pad

I am trying to understand the dot product. I have found a website that gives you intuition about this topic and one of the examples involves a speed boost pad: Imagine the red vector is your speed (x ...
0
votes
0answers
21 views

Is it possible to use absolute input device like a pointer or VR headset for peeking(looking) in non VR FPS or 3rd person games?

Assume I have a VR headset, which has absolute orientation as output and this orientation is input to a game. In VR Games, your character looks wherever you look by using your headset's absolute ...
0
votes
0answers
17 views

Trying to create a knockback effect between 2 squares (Code in Java)

I've been in trouble for weeks now and I don't understand why it doesn't work for me! I have tried so many things and I just can not understand. I try to get one player to get a knockback as soon as ...
0
votes
1answer
81 views

Move camera closer (Zoom In-Out) to object that is being followed (Unity)

I have implemented a main camera that follows and orbits around an object (player). Now I would like to implement a Zoom In-Out mechanic. This functionality would allows the camera to approach the ...
0
votes
0answers
16 views

Unity2D: Colliding with Edges Issue

I am using Unity (in 2D). I have force being applied to the rigidbody2D when the player moves left/right. For some reason, when the player hits the edges of the tiles, it just pushes up and forward. ...
0
votes
0answers
60 views

How do I create a tile-based footprint trail?

Currently I am working on a quick game for some friends, but I don't know the proper name for this type of game, so here is an example of the mechanic in The Lion King II: To unlock the exit, you ...
0
votes
0answers
24 views

conversion between world space and screen space

I am making a multiplayer game with gravity mechanics and planetary motion. I started by hard coding coordinates according to canvas size but now I am realizing that for different resolution planet ...
0
votes
0answers
42 views

Implementing beat detection algorithm on mobile

So, I've been looking for a way to detect beats on a streamed song on mobile(like listening on Spotify or Youtube etc.) I've found the most used methods are either using already known songs or using ...
0
votes
0answers
24 views

How do I make match 3 blockers bigger than a 1x1 cell?

How do I implement blockers in a match 3 game that are bigger than the normal 1x1 cell size? Here is a short example clip from the game Genies & Gems level 181. It shows a circle blocker of size ...
0
votes
0answers
22 views

Simple Orbital transfer and intercept equation

I'm working on a game which has a game board made up of objects orbiting the center of the board. You can think of it as our solar system, but greatly simplified in terms of physics. All objects ...
0
votes
0answers
36 views

Concept design-pattern for industry simulation required

I am making a mobile game simulating industry. A brief high level description is below. A hub could be thought of as a base/city, within which there are rooms/buildings which determine what is ...
0
votes
0answers
38 views

object position handling for multiplayer a game

I am creating a multiplayer HTML game which focuses on manipulating planet trajectories with gravity points. I am creating bunch of planets with random initial velocity and random direction and i am ...
0
votes
1answer
170 views

Snake game steering with Java FX

I am currently trying to make a snake game with Java FX, I read several posts about it and I understand on theory how to move the snake body (for each part of the snake reference the previous one and ...
0
votes
0answers
43 views

Unity 2d Player Glow like on off

I want my player to glow like in a loop of on and off for light it emitting and when he touches certain material with different light it should glow with that color
0
votes
0answers
40 views

Weapon Reloading Bug

I'm developing a top-down shooter in Java with Slick2D, and I've been ignoring this bug for a while because I'm not sure what causes it. I have numerous weapons that you can buy from the shop and ...
0
votes
0answers
69 views

Help to Code Bowling Like Feature in Unity for Mobile

I need Code or Guidelines for Touch Feature. When We Drag ball back and Send it Forward. I am Making feature like bowling, and I need Player to add force while dragging back and also curve the path of ...
0
votes
0answers
53 views

How to implement Microwave Signals in Unity?

I need to implement microwave signals for object detection in Unity. I know there are raycast sensors in Unity, but can microwave signals be simulated or can a proxy of microwave signals be created ...
0
votes
0answers
64 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
250 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
3answers
188 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 ...
0
votes
0answers
83 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 ...
0
votes
0answers
82 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 ...
0
votes
1answer
208 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 ...
0
votes
0answers
156 views

Collision detection problem in Java

I have a problem in my game. My player cannot move after I put collision detection from this video: https://www.youtube.com/watch?v=DadImcUt9Nk&index=22&list=PLah6faXAgguMnTBs3JnEJY0shAc18XYQZ ...
-1
votes
0answers
46 views

Ask for character in game?

I have some question in 2D game (pac-man, bomberman, ..) : How to calculate velocity for character? When I move character between two wall (see picture below, I want to go right) , it so hard. How I ...
-1
votes
2answers
82 views

Problem making wave animation

I want to simple wave-like animation using mesh. I thought that it would look like a wave if there would be a point at the middle of the mesh and change z axis of that point, and after this I change ...
-1
votes
1answer
4k 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
votes
2answers
140 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 ...
-1
votes
1answer
567 views

Get stick analogue XY position using Jinput in lwjgl

I want to capture the movement of the analogue stick of the gamePad. is there any equivalent function to this? ...