0
votes
0answers
4 views

I want to delay 3 sec to load next level after the collision in C#

I need to delay the load new level by a few second. Please help.This is the script I need to use: void OnCollisionEnter2D(Collision2D col){ if (col.gameObject.tag == "Enemy") { score = score +...
0
votes
1answer
19 views

Programs - Pixel art program Free? [on hold]

Is there any pixel art programs with tiles and the ability to animate in it? I used aseprite and i cant use it cuz there is no tutorials on the free version. I used Gimp AND it is REALLY ANNOYING.
0
votes
0answers
20 views

Need some advice on how to decide where to implement my enemy behaviours

I'm in the middle of writing a platformer game in Unity using C#. I have my character, if he presses the kick button his state switches to kicking. During this "kicking" state the character doesn't ...
-2
votes
0answers
20 views

Isometric social games. Click to tile

In the Social Isometric Games book, page 53, there is a description of the method, that defines a title using mouse cursor coordinates. It works well, but it is not clear what principles are used to ...
0
votes
1answer
14 views

Object is moving more than it should

I have the following code for Food: exports.Food = function(x, y) { this.MOVE_X_FROM_POSITION = 10; this.ACCELERATION = 0.05 this.image; this.firstX = x; this.firstY = y; this.x = x; this.y = y; this....
0
votes
0answers
4 views

LibGDX Multi-Coloured Mesh

I have a MeshBuilder. Is this the right tool for the task? The task is to build a mesh of several shapes, each of which has its own colour. This mesh then somehow has to be added to a Renderable[] (...
0
votes
1answer
25 views

Loading scenes from files, or hard coding it?

In a game engine I'm working on I'm using scenes similar to what you would find in Unity. The entities in my game are composed of reusable components and custom data which is linked to those ...
-4
votes
0answers
18 views

How can a newbie programmer learn all the main art and animation required for games? [on hold]

what would be the best method of learning 2D game animation and art for a high school student like me who has a deep interest in game development and wants to develop a simple but good game?I have ...
1
vote
0answers
22 views

How to make a Sprite have multiple armors/weapons/Accesories [duplicate]

I am currently developing a game that involves a multitude of weapons, armors, etc. I am using UE4 currently as an engine because I found that easy to use. Currently in development I have found myself ...
1
vote
0answers
10 views

Creating SurfaceView causes short screen blink

When I create SurfaceView for first time since app launch, the app screen blinks black for small time (about 1/4 second). It blinks over UI, so its really visible and doesn't look nice at all. I've ...
1
vote
1answer
31 views

Virtual game dimensions - how to implement?

I'm creating a fighting game in LibGDX with a static board, camera moves only right<>left. There are 5 screen aspect ratios in Android and Apple so I have created 5 different background graphics: ...
3
votes
0answers
23 views

Rotation of a ball moving on a surface

I have a ball that moves along a platform. The ball is characterized as a sphere that has a radius and a position. The platform basically is a rectangle consisting of two vertex triangles. Its class ...
1
vote
0answers
17 views

Moving Forward Regardless of Rotation

I have a Camera camera. I'd like to move it forward. I'd also like to move it to the right. These movements should be without regard to which direction the camera is facing in. ("Forward" is ...
1
vote
1answer
14 views

What is the “TangentsW” attribute inside the FBX file format for?

sometimes it is -1, sometimes is +1. Do I need it for the rendering of the normal maps?
1
vote
0answers
15 views

Unity Facebook “An access token is required to request this resource.”

I have installed Facebook SDK 7.6 for Unity 5.3. It is fine with login and logout stuff things but I am having a problem when it comes to use FB.API. I want to be able to fetch players' profile ...
1
vote
2answers
36 views

How to slow down this rotation

My goal here is simple. I am making a top down shooter kind of game, and I want the player to simply rotate in one axis, towards where the mouse is on the screen. I got it working, but it rotates so ...
-4
votes
0answers
34 views

Should I use one or two database for my MMO? [on hold]

I will start a 3d MMO game development. First I will have more than 100 monsters that they will have HP, Defence, Attack damage, Drop-list etc. Secondly I will have people with position, ...
1
vote
1answer
15 views

Correctly creating/handling events for keypress in MonoGame C#

I'm having trouble finding the best approach to registering an instantaneous user key-press with MonoGame (where the key has been held down and then released), using events in C#. Unlike the click of ...
1
vote
0answers
27 views

Regional Variation with Perlin Noise

I used Game Maker to construct a 3D terrain using Perlin Noise. Since I wanted to create an island, I set the noise function to return a value between 0 and 128. Then I checked each point and ...
0
votes
0answers
5 views

Libgdx Actor and Group touchDown event problem

What happens when a Group containing some child Actors has a touchDown event listener but at the same time, its child Actors also have a touchDown event Listener? For example if a group contains some ...
0
votes
1answer
31 views

Did they remove Sprite sorting layers from Unity?

I can't figure out how to set it. I thought it was a setting on the sprite renderer but it doesn't seem to be there? Google isn't turning up any results.
1
vote
0answers
22 views

Soft body plasticity using Bullet Physics

I made this post on the Bullet forum(link), but the forum is slow so I'm just copying the text from there. Hello, I'm currently working on a game and I want to make certain surfaces of the game ...
0
votes
0answers
15 views

CommandInvokationFailure error when building APK?

I'm getting the following error when I build my APK: CommandInvokationFailure: Failed to re-package resources. See the Console for details. C:\Users\Me\AppData\Local\Android\sdk\build-tools\24.0....
1
vote
0answers
24 views

Tire mesh rotates faster than wheelcollider in Unity

I have a car in Unity. Scripts are C#. I have noticed that my tire meshes' rotation is faster than whellcollider rotation. I am using this code for wheel rotation flWheel.localEulerAngles = new ...
2
votes
1answer
20 views

glUniformMatrix4fv OpenTK equivalent

Very simple and quick question which surprisingly I couldn't find an answer to over the internet: what is the equivalent of glUniformMatrixfv for opentk? I've browsed all the 7 overloads of GL....
1
vote
0answers
13 views

TurnBasedGame with libGDX + Google Play Services

I'm trying to write a small card game for Android using libgdx framework. My game is turn-based. I wrote to interface with the necessary methods to access the API interface from Google. I faced the ...
1
vote
1answer
76 views

What's wrong with my food generating code?

This script is intended to produce amount of (food) objects for the players over the network. What should happen is that when a player eats one food, another food object gets created in another random ...
1
vote
1answer
32 views

Check if thread has OpenGL context

I'm looking for a way to check if a thread accessing a namespace function has a OpenGL context attached to it. I have looked around and all I can find is, GLFWwindow* glfwGetCurrentContext(); Which ...
1
vote
0answers
10 views

FBX animation works in 3DSMax but not with Assimp

I have an FBX file that represent a plane with an animation of the gear opening. In my editor 3DSMax, the file and animation seem good, but when I use Open 3D Model , to see what the file will look ...
-1
votes
2answers
33 views

AddComponent with string in unity5

At runtime I want to copy one Gameobject component to another gameobject. In my case I have one camera where multiple scripts are added with values settings. the same components i want to add into my ...
0
votes
0answers
12 views

Double vision with Google Cardboard in Unity

I am working on a VR app. I have a terrain and some cube placed in the terrain.Even I have added the Reticle to point at the cube and display some message when the user gaze at the cube. I have set ...
1
vote
1answer
13 views

Raycast will not hit generated box colliders at initialization

In my map class I have an algorithm that is generating and merging box colliders together. These belong to the layer "Ground". After that, in some places on my map I'm generating some new cubes on-...
1
vote
0answers
8 views

IBL probe BRDF pre-integration artifacts

I'm following 'Moving Frostbite to PBR course notes' to implement IBL in my rendering engine in OpenGL but I'm having some trouble pre-integrating the specular component of the equation. As you'll ...
-1
votes
1answer
23 views

How to render more than one object in OpenGL or DirectX 11/12

https://www.youtube.com/watch?v=1ogg4ZfdBqU I am new to OpenGL, but I have similar objective as you can see in the video. Can we have one shader for all objects? Is there any sample in OpenGL? Any ...
1
vote
1answer
39 views

C++ class hierarchy issue

I am taking the step of moving on from Java over to c++, I have been working on my own custom game engine in java for a while so have a good understanding of polymophism, inheritance etc. Now to the ...
0
votes
0answers
8 views

How to create a texture2d from an array of pixels in DirectX11

I currently have a ray-casting camera that holds an array of pixel colors (XMFLOAT4 color) that is 1024x768. I am trying to create a Texture2D in DirectX11 that is also 1024x768 and simply copy over ...
0
votes
0answers
17 views

Unity With C# Script : Class Data Type Variable Array Issue Replaced [on hold]

I got a simple question to ask. Just Check below code and the question is in the end at the result of code. I hope you guys can help me.. file inventory.cs using UnityEngine; using System....
1
vote
1answer
59 views

How should my creatures see the world?

This may not be the best forum for this question, but I know a lot of you have dabbled in the field of general AI for games so here it is. I'm doing the cliche population evolution of creatures in a ...
0
votes
1answer
24 views

How are the positions of skinned mesh vertices with multiple weighted parents stored?

I'm trying to wrap my head around the basics of skinning and skeletal animation. I understand not every skeletal animation implementation works exactly the same, but I'm just trying to understand the ...
1
vote
0answers
9 views

Getting error failed to repackage resource

i have error "failed to repackage resource" when I build my APK. I want to integrate Google Play Services in my Unity app. How can I fix this?
0
votes
1answer
17 views

How to set size fairly

I had coded a simple click game with Python-kivy to android. You should click dots which are popping out randomly at screen. I set their size 20px to 60px as your level. But it seems when I try on ...
0
votes
0answers
15 views

Scaling window with Monogame.extended issue

I'm trying to scale the game window in Monogame (I also have installed Monogame.Extended). (Example of what I want to achieve) I've been doing this setting manually the PreferredBackBuffer when ...
0
votes
2answers
24 views

Irrlicht engine game wont compile on linux. Undefined refrences(opengl and xfree)

I'm trying to port over my game I'm developing to Linux. But when i compile i get a lot of undefined references to mostly functions that look like they belong to OpenGL. Most are titled gl... But one ...
2
votes
1answer
95 views

There are spritebatch drawing limitations on monogame?

I've reached a point that it seems when I draw too much on screen, monogame starts doing weird things. When I call this code in the Draw method public void drawDialogBox() { if (...
0
votes
1answer
13 views

Libgdx, TweenEngine - continous rotation animation without stopping/delay

I have a probably dumb question. I'm trying to create a LoadingCircle so I just picked one image (you can see in the attachment) and made some sequences to rotate it: Tween.to(loadingCircle, ...
-3
votes
0answers
23 views

limit rotate of C# script in unity3d [on hold]

How can I add the following code limits the rotation ? For example, from y : -80 to 80 would be more spin. script from WeaponSystem: public class AILook: MonoBehaviour { public string[] TargetTag =...
1
vote
1answer
50 views

How do engine sounds for vehicles work?

How does the engine sound for a car (or whatever has an engine) work? When you increase the throttle the engine sound changes but it's never quite the same. When programming such a system what is the ...
0
votes
0answers
12 views

How to create a realtime 3D walkthrough with Blender? [on hold]

I am not a game developer and its not my domain. I am a Biotechnology student. A part of my project requires making a realtime walkthrough of a 3D house. Someone suggested me to use Blender. But here ...

15 30 50 per page