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.

learn more… | top users | synonyms

0
votes
2answers
1k views

How to make a gameobject Scale up from another GameObject script

I'm trying to make a GameObject grow in scale from touching this one, and when a set amount of scale is reached destroy this GameObject ( the one who scales up the other). My problem so far is that ...
-1
votes
2answers
55 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 ...
3
votes
1answer
458 views

Verify which bubble is connected to top using DFS

I am working on a bubble shooter game in this game i have implemented searching using DFS as suggested in this link, and this is working fine. Update Here is my code for DFS -(void)callDfs:(int)...
2
votes
1answer
75 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: for each unit: n = compute next position if n is empty then move to n If I start the loop ...
0
votes
1answer
234 views

Moving CCNode with constant speed in cocos2d

I want to move the object (CCNODE) with constant speed in any direction , what i have did till now is applied a force to object at start to get it moving and set elasticity as 1 and friction as 0 to ...
-1
votes
1answer
256 views

How to use custom font in Phaser ?

I am trying to load webfont in Phaser, I have seen the Phaser example but I cant understand, what asset do I need,what function I have to call....,what exactly look like the javascript file?. I am new ...
-1
votes
1answer
267 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? public void mouseMoved(MouseEvent mouseEvent) { mouseEvent.getX(); //return the X ...
4
votes
0answers
92 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
61 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 ...
1
vote
0answers
83 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
0answers
53 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
117 views

How to add 3D Sprite on tmx file background using Cocos-2dx?

We have been working on sample game, wherein we want to show 3D sprite on .tmx file(background). But 3D sprite is never shown up, though we tried setting tileMap->setGlobalZOrder(-1). Following is ...
1
vote
0answers
38 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
261 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
154 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
39 views

Create a collision detection system

Public Class Game 'NORTH = 1, EAST = 2, SOUTH = 3, WEST = 4 Dim myFont As Font = New Font(New FontFamily("Microsoft Sans Serif"), 16) 'CONSTANT VARIABLES Const RESOLUTION_WIDTH As Integer = 800 '...
0
votes
0answers
48 views

I Need help with Match-3 mechanics in Gamemaker

Engine used: Gamemaker Studio, Professional Edition Note: I just saw a suggestion to use an array/matrix, and that's probably infinitely more useful and easier than what I'm doing right now (free-...
0
votes
0answers
33 views

Doing collisions on both axis with java overlap

I'm making a top down game from scratch and just found out about the java rectangle overlap method that would work great for collisions. However, after the overlap happens, I need to check for which ...
0
votes
0answers
35 views

“following” Object not Interacting with the game world correctly

So I finally have my object detecting the distance between itself and the player. If within range, the following enemy will chase the player down and touch it. (This will kill the player) However, ...
0
votes
0answers
68 views

Goal keeper AI with animation

I'm working on football simulation game. I am trying to implement Goal keeper AI. I did calculated ball trajectory and intersect point. I wanted to Goal keeper to dive to the interaction point and ...
0
votes
0answers
40 views

Implement Special Effects triggered at certain moments in game

In my turn based RPG/Puzzle game I planned to have different Special effects, which enemies, weapons and armory can have. So for example an enemy can have a "poison" effect, which has a certain ...