0
votes
0answers
8 views
Having trouble making game time pause and unpause
I've been trying to make it where when the player does a certain task, the game's time will pause. When the player does another action, the game's time would unpause and continue. I had my code like ...
-1
votes
0answers
13 views
I need help starting out [on hold]
I'm quite new at coding I suppose, but I do know the over all basics. How do I start to make my own games. I know I can use previously used engines like Unity, Unreal, etc. Though I was wondering can ...
0
votes
0answers
9 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 ...
0
votes
1answer
11 views
Most efficient way to optimize based on gpu type?
So, I'm writing an optimization button that should optimize a game based on the type of hardware the user has. I know I can use d3dadapter_identifier9 to achieve this, but what would be the most ...
0
votes
0answers
7 views
OpenGL — Better to switch out material or shader for changing object colors?
I'm fairly new to shaders and OpenGL so bare with me please, I just want to make sure I'm doing it correctly! Now I'm using LibGDX in order to create a simple 3d diagram for my company. I have a few ...
0
votes
0answers
8 views
Construction of perspective matrix
Is it possible to Construct a perspective matrix by multiplying a perspective transformation with a parallel projection ?
0
votes
0answers
4 views
Framebuffer texture shows as blank white when rendered after TrueTypeFont
I have a working framebuffer class. However, when I render out the framebuffer after rendering text with Slick2D's true type font class, it is completely white. Below is all of the classes that are ...
0
votes
1answer
12 views
How to show specific item in question on trigger entry? (Unity & c#)
So I have multiple, random objects on a plane, and when my player walks into them, I want them to be 'picked up'. The player can only hold one object at a time, and needs to return the item to the ...
-3
votes
1answer
10 views
Draw image to canvas in right DPI
I have a image in drawable for mdpi hdpi xhdpi and xxhdpi in their folders. When I try to run it on tablet (which is hdpi), the hdpi image isn't drawed (drawed is image probably from mdpi). How to ...
0
votes
1answer
11 views
2d Tile Based Collision Response
Right now I am trying to make a 2d collision response system for a platformer, and the algorithm I have for it works quite well. The only problem is that if the player is standing exactly on a tile, ...
4
votes
1answer
17 views
Shaders: packing 4 textures into a single RGBA - slower?
I'm experiencing something really strange on an iOS mobile device. I have 4 textures, and after some profiling it seems, that doing four separate grayscale texture reads is faster, than reading the ...
1
vote
1answer
7 views
SDL_RenderCopy weird behavior
I'm trying to render a texture(picture), but SDL_RenderCopy keeps the window's background black.
Here's the relevant code:
SDL_Rect rect; rect.x = 0, rect.y = 0;
while(!quit)
{
...
-1
votes
0answers
14 views
how to handles interact between two online user in an online game?
I have developed an online game like QuizUp.
My question is:
When a user searches for another online user and finds a match with him, how can I get both users answered questions to show and both ...
-1
votes
0answers
7 views
Unity 2D Space shooter enemy ( stretching )
Hello me and my friend need help coding for an enemy tentacle that can stretch and retract at intervals
Here is are code so far
using UnityEngine;
using System.Collections;
public class tentacle ...
0
votes
1answer
25 views
XNA Platformer - Where should tile collision handling be?
I've started using XNA and am working on a simple 2D platformer (single level). However, I am stuck as to where the collision detection should be handled. Here is my current project structure:
The ...
0
votes
1answer
17 views
Calculating delta time
I'm trying to calculate deltaTime, but it's not correct.
What's wrong in my code?
//declared outside
private long timeSinceStart = System.nanoTime() / 1000;
private long oldTimeSinceStart = 0;
...
0
votes
0answers
3 views
Is it possible to draw outlines of images in Slick2d?
Im making a game and I've woundered if there is a way to draw an outline to an image with the slick drawing API, because Im using pixelart so it's kindof nasty to draw the outline within the sprite ...
1
vote
0answers
11 views
how to get rid of blurred and overlaping 3d shapes in javafx
I actually wanted to build a 2x2 rubiks cube. As the Box class in javafx doesn't provide the feature of building a cube with different colours on different faces, I chose to build the cubes using ...
0
votes
0answers
13 views
When making 3D model for building, is it better to split it or combine it?
As the title say, when making 3d model for building (example: school, office, etc). Used for FPS game so it must have detail and texture must be vary so it won't look like repeating/reused. Is it ...
0
votes
1answer
8 views
Activate and Deactivate Collider with Click
i'm having some troubles working with this, it's basically a Sword that points towards your mouse position, and when you Left-Click, a Trigger Collider is activated and then deactivated, but i can't ...
0
votes
1answer
31 views
Game speed on different devices isn't same
I have an app, in which I have constant int speed = 5; On each update, the game object (player) is moving 5px ahead. Problem is, that I can't handle that on different devices - older devices is having ...
0
votes
0answers
12 views
Why Player not shown with TMX File in AndEngine?
I'm developing a 2d platformer game with AndEngine GLES2-AnchorCenter...I've 6 levels that any level has a Tmx File(Tiled)...I can load TMX file but Player not shown in screen...I want to player be on ...
1
vote
1answer
15 views
Store and retrieve different objects on a tile
(I hope the title is clear enough, if not feel free to suggest a better one)
I'm trying to make a simple tile-based map for a college project in Java. But I'm stuck on how to literally place things ...
-2
votes
0answers
17 views
How to make 3-in-a-row system?
I need to know exactly how to do 3-in-a-row system, where it destroys all of same color if they are near each other in horizontal or vertical way, 3 or more.
0
votes
2answers
22 views
What's a simple way to send statistics from my game back to me?
For example, I set up my game to keep track of how many times people play x, y, and z game modes, and also to keep track of how often players reach a certain point. What's a simple way to send this ...
0
votes
0answers
5 views
How can I clear the screen on Corona SDK
I have objects on the screen that create the main menu, and I want the the screen to clear when I get press the play button. I did it the way the other question on this subject said, but when I ...
0
votes
0answers
1 view
LibGDX hexagonal tilemap getting adjacent tiles
How do I get all adjacent tiles to a hexagonal tile, my tile map is using a staggered co ordinate system with an odd stagger index and I am using libgdx java.
0
votes
1answer
34 views
Reading XML working in my computer but not in my Android phone
Following code works perfect in my computer but when I try to run it in my Android Phone, it does not work.
string path = @"Assets\Layout\XML\file" + select.ToString() + @".xml";
XmlSerializer ...
0
votes
1answer
31 views
Collision box to slow
I've made the collision box for my player (and other blocks) and I'm now testing gravity and collision on the player. What I saw was that my collisionbox is updating slower than my player is moving.
...
0
votes
0answers
11 views
Make Object Turn To Face a Certain Angle
I have an object that is sometimes above or below another object.
Once the object comes in close proximity with the other object, I want the object that is above or below that current object, rotate ...
2
votes
1answer
42 views
Stored Textures in C++ Projects
I have executed the following command in order to store a texture (PNG) file in a C++ header file: xxd -i Texture.png Texture.h.
How would I go about loading this texture into OpenGL?
...
0
votes
0answers
6 views
How to activate user input modules with platform defines in unity?
I'm having some trouble understanding the activation process with input modules.
I'm making a game that can work on mobile or on Desktop in VR.
Basically, it works by creating a world-space canvas ...
-4
votes
0answers
17 views
What's the newest trend/method for terrain rendering? [on hold]
I found an old article,which was written 5 years ago.Are there any newer techniques?
0
votes
0answers
6 views
Android onResume called after screen turned off, starting the app running even while screen is off
I'm building a simple 2D game and I am getting strange results and calls the the onResume method when I turn off the phone screen while in the game.
So I have two questions: 1. How is the pause ...
1
vote
1answer
24 views
Cumulative transformation matrices for hierarchical object transformations
I'm having a small issue with my design for hierarchical 3D objects. I'll try to sum things up concisely. Every object has a vector3 for its position, scale, and rotation, as well as a std::vector of ...
2
votes
1answer
36 views
Proper way to draw 1000 billboards that always face the camera
I have up to 1000 visible GameObjects with trivial plane meshes, which are essentially sprites/billboards and which should always face in the relative direction -camera.forward.
There are so many ...
0
votes
2answers
28 views
Why is my gravity script repelling and not attracting?
I'm currently working on a small simulation of Newton's Law of Gravitation in Unity3d, and it seems to be working pretty well, except, it's doing the opposite of what I expected. Instead of attracting ...
1
vote
0answers
29 views
Getting rid of gaps at polygon edges
I'm building a little engine for myself (okay, let's say framework) to learn using DirectX 11. I'm pretty pleased with the results so far but today I ran into a little problem I was not able to solve. ...
1
vote
1answer
18 views
How can I move the camera directly under a certain plane?
I am attempting to render a "reflection" of a scene for water:
To create this illusion, I need to render the scene from below, and then ignore all geometry below the water line.
As such, I need ...
-2
votes
0answers
15 views
Question about laptop that animation student should have [on hold]
Hello im an animation student. And im plan to buy a laptop, but i dont know the specifacation and the prosesor for animation student must to have. I use after effect, maya, nuke, and premier. Could u ...
0
votes
0answers
14 views
Problem with collision between two farseer bodies
I have four different bodies. Ground, rectangle, red ball, white ball. The rectangle and the ground are static. Just the balls are moving. The red ball can´t move through the rectangle, but the white ...
-1
votes
1answer
27 views
Java map creation
So Im making a topdown 2d rpg in slick2d and lwjgl 2, and I wanna make a map, but not just random map, something like this:
The blue stuff is water and rivers, the gray in the middle is "the ...
0
votes
1answer
8 views
Java Slick2d image depth/layering
Im making a topdown 2d game, and I've made a decent entity system so far.
But I want to do the following with it:
I want to have drawing depth, so if a , for instance, tree is above another tree then ...
2
votes
1answer
16 views
Unity Controller navigating UI
I want players to be able to use a controller to navigate our game's menus. We use Unity's new UI, and in the EventSystem have specified a controller axis for our vertical axis. However the selection ...
0
votes
0answers
16 views
Getting to grips with component data structures [on hold]
I'm playing around with game design and I've been reading about data-oriented component/entity based systems. I must have read about two dozen articles and discussions on the topic, and I'm pretty ...
0
votes
0answers
10 views
Generating hexagonal tilemap in libGDX
How would I go about generating a hexagonal tilemap in Libgdx? My idea before was to just use a prebuilt tilemap and then change tiles on it but I'm having problems with the hexagonal co ordinate ...
0
votes
0answers
8 views
LWJGL Applet Security Exception
I created small game in Java using LWJGL 2.9.3 and would like to add it to webpage as Java applet. I have followed this tutorial and have used this app loader. All the Java code works and I can tun ...
1
vote
0answers
27 views
What is causing my default libraries to conflict with OpenGL extensions?
So I'm currently following the tutorial for creating OpenGL programs on learnopengl.com,so I'm using GLFW, GLEW and the base library for OpenGL. However, when I go to build my code, I get a warning ...
1
vote
0answers
17 views
Arrow buttons not functioning properly
I have been cobbling something together from different examples that I have seen online I would like to know why is it not just showing 1 button per page and instead showing them all and decreasing ...
0
votes
0answers
10 views
Tweening back from arbitrary 3D rotation in javascript
I'm using a 3D javascript library to rotate the vertex of a 3D object with a classic 3x3 matrix, to an arbitrary angle in the 3D space, as depicted in the image below.
For example, a first ...