0
votes
1answer
1k views

theoretical solution for “drawing” with mask

So am trying to create a make-up game and i need to have a basic drawing solution, and so far i have made a good progress with the help of the DepthMask solution My approach was like this : suppose ...
0
votes
1answer
546 views

libgdx ActorGestureListener.pan() parameters not moving actor in smooth line

I override the pan method in ActorGestureListener to implement dragging actors in libgdx (scene2d). When I move individual pieces on a board they move smoothly, but when moving the whole board, the ...
0
votes
1answer
155 views

Java 2d game cross-platform compatability

I need to make a few small, simple 2d educational games primarily to help kids improve their reading. Drag & drop/matching words with pictures, spelling out words as well as maybe a scrolling ...
0
votes
1answer
121 views

Storing attributes in static geometry

I have a Minecraft like world where I statically create one instance of each tile type, and then place it around the world. However, I don't know how to actually change individual attributes for each ...
0
votes
1answer
363 views

Problems about oriented bounding boxes collision detection

I get a question for the following code which detects if two OOBs collide by SAT. The OBBs struct is also listed below. struct OBB { Point c; // OBB center point Vector u[3]; // Local x-, y-, and ...
0
votes
1answer
348 views

Version number not supported by gl2 in andengine

I am new to andengine. From various forums, i got to know that my system should support hardware virtulisation. I have installed "Intel X86" and my system didn't throw any problem regarding "HAX" now. ...
0
votes
1answer
494 views

3d Wall sliding collision

I'm working on collision for walls in my game and the way I currently have it I get stuck walking into a wall. I'm trying to make my character slide on the walls but still collide. My character moves ...
0
votes
1answer
3k views

Normal mapping for Android and iOS

I'm making a mobile game for Android and iOS on Unity. At the moment I am researching and designing the technical aspects of the game. Since it is not plausible to use highly detailed models for ...
0
votes
1answer
675 views

Drawing the same scene with perspective then orthographic projections

I have a scene that I'm rendering first with a perspective matrix. I then want to rerender it in a different viewport using an orthographic matrix for a top-down 2D view of the scene. I think I may be ...
0
votes
1answer
68 views

How can I access the translation part of a skinned Model object's bone transformation?

I have an animated Model, which I process with the SkinnedEffectProcessor. How I can access translations of that model during animation? It's always a BoneTransform I am working with, but I'd like to ...
0
votes
1answer
813 views

VBO GL_STREAM_DRAW double buffer or new buffer?

There is some conflicting information on the STREAM usage specifier. Apple's documentation states you should use double buffering and update the stream buffer that is not being read by the GPU. ...
0
votes
1answer
468 views

How to update “dynamicVertexBuffer” correctly with “setdata” on XNA?

I developed a small 3d games xna and uses a "DynamicVertexBuffer" and "DynamicIndexBuffer" to store and draw my vertices. Everything works fine, but my problem is the "Update" function where I update ...
0
votes
1answer
400 views

Should I render all of my HUD views to a single SurfaceView?

I'm using a SurfaceView and canvas to implement a game HUD, title screens etc., by overlaying standard Android view widgets over my SurfaceView. This works reasonably well and maintains an acceptable ...
0
votes
1answer
972 views

How to attach a sprite to a TMXTiledMap at a particular coordinate, in AndEngine?

I am trying to add a sprite at a "grid" location on the tiled map. The TMX tiled Map is like a grid, and you can access the size of the grid by calling mTMXtiledMap.getTileRows() and ...
0
votes
1answer
373 views

problem adding bumpmap to textured gluSphere in JOGL

I currently have one texture on a gluSphere that represents the Earth being displayed perfectly, but having trouble figuring out how to implement a bumpmap as well. The bumpmap resides in ...
0
votes
1answer
260 views

Collision with Two Angled Platforms

I've encountered a problem in my attempt to implement Collision Handling for a game I'm creating, involving a collision with two angled platforms. I'm using GJK-EPA for detecting/handling collisions ...
0
votes
1answer
425 views

Collision in PyGame for spinning rectangular object.touching circles

I'm creating a variation of Pong. One of the differences is that I use a rectangular structure as the object which is being bounced around, and I use circles as paddles. So far, all the collision ...
0
votes
1answer
726 views

How do I constrain a specific area of an actor to mouse X and Y?

I recently watched this tutorial "Actor Constraints in GameSalad" detailing how to constrain the center of an actor to the mouse X and Y, but I would like to constrain the relative clicked pixel of ...
0
votes
1answer
1k views

How handle nifty initialization in a Slick2D state based game?

I'm using Slick2D and Nifty GUI. I decided to use a state based approach for my game and since i want to use Nifty GUI, i use the classes NiftyStateBasedGame for the main and ...
0
votes
1answer
604 views

Collision Detection fails with AI cars

I am making a car parking game in flash and AS3 wherein I drive my car along with other AI traffic cars moving along a specified path using Guidelines. I am using CDK for collision detection. The ...
0
votes
1answer
740 views

How to make and correctly use progress bar in cocos2d-iphone?

I have a game that uses a progress bar to inform player of level of certain stats of the player. For example hunger, when it starts at zero and slowly adds up to maximum bar. When he eats the hunger ...
0
votes
1answer
533 views

How do I use setFilmSize in panda3d to achieve the correct view?

I'm working with Panda3d and recently switched my game to isometric rendering. I moved the virtual camera accordingly and set an orthographic lens. Then I implemented the classes "Map" and "Canvas". ...
-1
votes
1answer
19 views

Gamemaker studio - Rooms Object doesn't stick inside the square grid

I keep trying to put an object into the square of the grid but the object keeps going to the top corner of the square; also I can't place multiple objects by grabbing the 4 point on the vertex of the ...
-1
votes
1answer
19 views

capitalizing initial character in game maker studio

The value "V_Output" is the string of letters that I wish to capitalize the initial of. The following code is run in the step event. V_InitL=string_char_at(V_Output,1) ...
-1
votes
1answer
56 views

Game Maker Studio - Check Collision With Subimages

I have an obj_roulette, which contains 4 subimages, with value 2-5 and image_number 0-3. The value result from roulette stored as var global.roulette. Then, I make many obj_meteorite, which contains ...
-1
votes
1answer
40 views

GetComponent doesn't works

I have a Halo component on an object, on the same object I have a script, in the script I tried to get the Halo component, but the GetComponent< Halo >() doesn't work, it says that it can't be ...
-1
votes
1answer
38 views

Obtain jump vector given time, distance and gravity

I tried for several days to solve my problem , but in the end I just gave up and I decided to ask , since the solution is beyond my knowledge I'm writing a 2d top-down game, in order to simulate the ...
-1
votes
1answer
32 views

Why I'm not getting any kind of output in SDL?

Here's the code that supposed to display the texture: SDL_RenderClear(renderer); SDL_RenderCopy(renderer, mainRaster.getOutput,null,null); SDL_RenderPresent(renderer); The code that runs the update ...
-1
votes
1answer
62 views

Unity syntax highlighting with VSCode

I'm using VSCode, not VisualStudio for Unity scripting. VSCode has syntax highlighting for C#, which works fine, but all the Unity related stuff like Vector3 doesn't get any highlights. I know, that ...
-1
votes
1answer
28 views

Sprite Animation Problem For Enemy

I have a problem regarding the attack animation for the enemy. The problem is that the attack animation sprite stops at the first index.It doesn't play the animation.It stops at the first index. Why? ...
-1
votes
1answer
100 views

How do I make my enemies to follow a path and allow them to collide with the player in Game Maker?

I am making a game in which enemies follow a path. These enemies should be colliding with the player, but it's not working. The enemy is walking the path. And, I want to make it so if the player ...
-1
votes
1answer
61 views

Attack Targetted Enemy Only

I have a perfectly working targetting script and I want to be able to deal damage to my currently selected enemy. I have a targetting script which is below:? public GameObject enemy; public ...
-1
votes
1answer
40 views

[opengl]get world position after rotate object by pivot

I need to rotate an object around a pivot,so I use this theory: Translate the object to Pivot position Rotate the object Translate back the object from Pivot position everything works fine,I can ...
-1
votes
1answer
52 views

SceneKit – White layer covering my tube

I have a simple tube node in my scene that isn't displaying properly. When I rotate it to face the camera, more than half of it is covered by some invisible sheet. When I rotate the tube enough, it ...
-1
votes
1answer
53 views

Fix buttons on screen

I've added buttons and SKCameraNode for my player. I got problem. When player moving left/right/jump all buttons dont follow for him. UPDATE class GameScene: SKScene, SKPhysicsContactDelegate { ...
-1
votes
1answer
39 views

OpenGL/GLSL matrix in uniform block confusion

I'm a bit confused about the proper way to send a matrix from my code (C++) into a GLSL shader. My matrix object is stored in row major format in memory. If I use the following shader code it works ...
-1
votes
1answer
53 views

Cannot turn script back on

I've got an issue. When (Input.GetMouseButtonUp (0), Speedy script is disabled, thus we cannot enable it again from inside the script like shown below. How can we go around this? public class Speedy ...
-1
votes
1answer
70 views

Enemy Retargeting

i am trying to make a game using navmesh agent in unity,where the enemies first attack the player and change their target to tanks when player spawns them.then again retarget player after the tank ...
-1
votes
1answer
103 views

Sprite disappears on android

I am programming a game in 2D for android and pc/mac. The sprite is the same and it's visible on the pc/mac. But once I use android and move the sprite, it disappears. The code is this: what could be ...
-1
votes
1answer
153 views

How to create a minecraft style world that is based of a heightmap

for my game I am trying to create a minecraft style world that is based of a heightmap that I made In photoshop. I am trying to make the map like 7km and 1 cube is 1m. but i haven't found a way to do ...
-1
votes
1answer
47 views

How to optimize movement script using CharacterController component?

I've made a very basic character controller using a CharacterController component. I'm still a beginner so I keep learning new things. My problem is how to optimize my controller script. Also, I would ...
-1
votes
1answer
57 views

Combining Pause and Start Menu

I got my pause menu working by using this code: using UnityEngine; using System.Collections; public class PauseMenu : MonoBehaviour { public GameObject pauseUI; private bool paused = false; void ...
-1
votes
1answer
64 views

This if statement doesn't end once triggered by touch

I have an if statement that successfully recognizes a touch, but continues executing after the touch has ended. void Update() { float currentstep = speed * Time.deltaTime; Vector3 ...
-1
votes
1answer
39 views

Change Andengine Text By clicking and typing a new text like native android EditText

I have a board in my game, with a name. I want to edit it on a button click (not by text.setText("text") method ) i want the user to enter a text and set it there. I couldnt find, how to change the ...
-1
votes
1answer
79 views

How to avoid mouse click over the trigger object?

I'm detecting the mouse clicks if the click is happened over the collider but i dont't want to fire mouse click if it is on the trigger object. How to i do this. Anyone give me a suggestion. Thank ...
-1
votes
1answer
60 views

Moving vector shooting at other moving vector

The following code creates an accurate shot to be made at a moving target from a stationary position. (ie a tower or non-moving vector). It works GREAT, but I need it to consider the movement of the ...
-1
votes
1answer
479 views

MovieTexture error with augmented reality

Unity says, the following error, is this because I'm using a free Unity instead of pro ? The type or namespace name `MovieTexture' could not be found. Are you missing a using directive or an ...
-1
votes
1answer
184 views

UE4: Subclass problem: cannot access private member declared in parent class?

I get the following error: [...]\ClassB.cpp:7: erreur : C2248: 'UClassA::UClassA' : cannot access private member declared in class 'UClassA' [...]\ClassA.h:12: see declaration of ...
-1
votes
1answer
23 views

Remove Touch LIstener from scene at a specific point

how to remove SceneTouchListner at a specific point? I am Working on a Endless Runner Game. my player is jumping onSceneTouchListner when player is collide with a barrier i want to remove ...
-1
votes
1answer
41 views

What is the recommended way to store compressed textures in files?

Uncompressed textures can be stored in lossy formats such as jpeg and it saves a lot of hard drive space. However for obvious reasons you cannot do the same on compressed textures. So what is the ...

15 30 50 per page