0
votes
2answers
5 views

Why does the following code print logs even after the game object is detroyed?

I have the following in a script attached to a game object in a unity scene. When I run this scene and press 'E', I get the following logs. (The game object is destroyed too) In destroy After destroy ...
0
votes
0answers
7 views

Game => Web DB Interaction

I'm developing a game on the Unity engine which will be tightly coupled with a web platform that aims to give players the ability to create content. The main interaction is that users will create a ...
0
votes
1answer
8 views

How to make enemies randomly choose a path and then come back if wrong one?

So I'm making a 2D Tower Defense-game in Unity with C# where the enemy has to go to the base, but can go to the wrong path randomly and then turns around when the road ends. How can I achieve this?
0
votes
0answers
13 views

I want to start a big game project, like Final fantasy, how?

I have money and I want to start a game project, I don't know where to start? Can everybody help m, please. I try to find a game development company, but the company are too bored, and small, like zco ...
0
votes
1answer
13 views

Unity's animation system is flipping out. Rotates only the long way around

I really dont know what is going on or how to even explain the problem so I made a gif. Its not a really well made gif so please bare with it.
0
votes
0answers
9 views

Using Steering Wheel in Unity

Is there any way to use a steering wheel in Unity? All I find online is people with the same problem. The numbering on the axis are not the same as with keyboard input. In some cases left is 1 and as ...
1
vote
0answers
11 views

Z-order curve — how to query all nearest neighbors?

Suppose the following situation: You have a set of 3D points' discrete-grid locations stored in a 1D array (an OpenCL buffer) You've assigned each point its Z-index/Morton code You sort the array ...
0
votes
1answer
11 views

My perlin noise height map doesn't have smooth transitions and goes directly from black to white

I am using lua with the love2d engine to make infinite 2d tiled terrain with perlin noise. This is just the first step and I want to fix the bugs early. The problem is that there is no gradient ...
0
votes
2answers
19 views

Pause a Coroutine while it's waiting for seconds

I have a Coroutine (X) that waits for seconds before it does something. However, during that time there is another Coroutine that may trigger (Y), and during the time it's on X has to pause waiting ...
0
votes
1answer
20 views

Unity2D - How to destroy my Instantiate particle system

I'm having trouble trying to destroy my Instantiated particle system, I can only destroy my gameobject using UnityEngine; using System.Collections; public class meteor_destruction : MonoBehaviour { ...
0
votes
0answers
12 views

How can I create an on-screen joystick for a PC-to-Android port?

I made a simple 2D game for PC(because I am a beginner and wanted to learn the basics of creating a game for PC first) that i want to port to Android.I think all that i would need to do is change the ...
0
votes
0answers
30 views

How can I create a “fuzzy crayon” effect?

I spent sometime looking at Media Molecule's Dreams. In it, the user is allowed to fuzzy crayon strokes in the mid air (in 3D space)(at the point of the video around 43:00). How can I implement a ...
1
vote
0answers
15 views

Is there a way to rotate a TexturePaint?

I wanted to add a grass texture to my 3D polygon-based game, and thought the easiest way to do it was to use a TexturePaint. Currently, the texture stays fixed while the world rotates which isn't the ...
0
votes
0answers
8 views

Unity or Cocos2D for a turn-based strategy and an isometric management game? [on hold]

Me and some friends are working on a 2D turn-based strategy game similar to Fire Emblem. Also, as a side or a future project, we could be working on an isometric management game. I'd like to know ...
0
votes
1answer
40 views

Create a map without using too much of memory

EDIT : My Tile is a little graphic sprite shows a village or free space... I'm Creating a strategy online game on Xamarin. I want to create a static 2D 1000*1000 Map and put each player in one of ...
0
votes
2answers
27 views

Limiting framerate with a fixed timestep

Hi I'm learning how to create a 2d platformer in C++ using the SFML2 library. My current goal is limiting the game's framerate. SFML2 has a window.setFramerateLimit(unsigned int limit) function for ...
0
votes
1answer
12 views

WWW(Unity) with HTTPS on Android not working

I'm using a native android plugin my team made for communication with a server, and as it uses HTTPS I use a certificate with it. Everything's fine with that, the problem is that, in Unity, when I try ...
0
votes
0answers
21 views

I Create a 3D Character in Blender and It's Animated How Do I Use It in Java LWJGL?

I have a character and he is animated with the Skeleton or Bone Structure but I don't know how to animate him in my game. I am using Java because it's what I learned at school and I am using LWJGL. ...
0
votes
0answers
8 views

How to Copy the Contents of a DirectX Stream-Output Buffer to a Vertex Buffer?

I'm writing a very simple particle system in DirectX using the SharpDX wrapper. I use a constant buffer to pass a delta time to the vertex shader, which updates the position of the particles by simply ...
1
vote
0answers
14 views

Unity: What type of Collider should I add to a LineRenderer?

I am currently building a game where I need to generate some wires (as Bézier curves) using LineRenderer. After changing the width of each line lineRenderer.SetWidth (0.15f, 0.15f); I am attaching ...
0
votes
0answers
14 views

How to check collsion for two same objects in java? [on hold]

I've got class Enemy and I want to check collision between two instances of this class. Is there way to do it in java?
0
votes
0answers
28 views

Game engine code review help [on hold]

I'm currently working again on my game engine CreekEngine. I wrote the engine to use the SFML library as graphic and audio library. I need some review on my engine. Can someone tell me what's the good ...
0
votes
0answers
39 views

Sprite always starts flipped

Everytime I start the game, or I swap animator controllers in the inspector (in runtime), the character is flipped in X axis until I start moving him. How do I prevent this to happen? This happens to ...
1
vote
3answers
36 views

Finding Object by scene loaded? (LoadSceneMode.Additive)

I learned how to Load and unload scenes in unity. using LoadSceneMode.Additive. I like to spit up my scenes as much as possible and retain the stuff I need as I go along. I'd like to be able to find ...
1
vote
1answer
24 views

Camera Preview while the camera is not selected

When I select the Camera object, I see the border-lines, the near clipping Plane and the camera Preview. Now I would like to see all those things when I select another GameObject (still the lines ...
1
vote
2answers
41 views

C++ Multithreading: accessing objects together

I'm kinda new to C++ Multithreading, and I'm keeping it simple right now. I will keep things simple and write psuedo-code. I'm making a Turn Based Strategy Game but let's keep it at Chess for now. I ...
0
votes
1answer
29 views

Libgdx OpenGL ES pixel shader behaves differently on android and on desktop

I'm currently working on a mobile game that ressembles a snake game ; what I wished to do was use my limited glsl knowledge to write a pixel shader that could efficiently draw a curve with a certain ...
0
votes
2answers
46 views

Why does accessing ParticleSystem.IsAlive() raise this error?

I am trying to record if my particle system IsAlive with: GameObject prefab = Instantiate (Prefab, myPosition, Quaternion.identity) as GameObject; Component ps = prefab.GetComponent<...
1
vote
2answers
18 views

Protecting/Handling game data

I have been working on a web based game, in which involves a lot of javascript/PHP. My question is what is the most secure way to handle any data being passed between the two languages? At this ...
-3
votes
1answer
57 views

camera following player

this code is for camera follow player: using UnityEngine; using System.Collections; public class cameraMovement : MonoBehaviour { public GameObject player; private Vector3 pos; ...
0
votes
1answer
29 views

Raycast not working on touchscreen (Android tablet/phone)

I have a raycast that works in the unity editor but not when I build it for Android( tablet or phone, neither work). The code I'm using is as follows: public class DirectionalTilePlacing : ...
0
votes
0answers
10 views

Reset animated actor's state in libgdx

i am a complete newbie, making an app in libgdx for which i have this actor that i want to animate on button click. Here is the code for that public class Boss extends Actor { protected Animation ...
0
votes
1answer
32 views

Why object spawn duplicate and double sides.?

I have a script, I am using this script to instantiate new path and also wall (as border) to generate new path and wall. Before some time all scripts work fine. but at this time my player enter in ...
0
votes
0answers
11 views

How to use OpenCV/EmguCV with Unity3d

I am beginners to OpenCV and want to use with Unity3d. I found different costly packages at asset store but i can't use it i.e., I want to try it myself and found EmguCV that provide openCV wrapper in ...
-1
votes
1answer
55 views

car movement problem

i have use simple C# code for my car move. this: using UnityEngine; using System.Collections; public class mov : MonoBehaviour { void Update() { var x = Input....
0
votes
0answers
23 views

Unity Android Build failed after adding admob

I am using Unity 4.7.1 and Google Mobile Ads Unity Plugin v3.0.5 After adding google abmob plugin , i cant take build . Following error is showing Error building Player: CommandInvokationFailure: ...
0
votes
1answer
101 views

How can I avoid “Moonwalking”

Let me explain my question: I have a sprite sheet with the different frames of the animations. Each animation has 8 frames. Based on the player's input, I modify the character's coordinates, thus I ...
0
votes
2answers
29 views

Rotate character 180 degrees determine direction

In my game it should be possible to rotate the character 180 degrees. I always want the character to rotate clockwise. If the character is rotated 0 degrees and I press the rotate button, the ...
0
votes
2answers
33 views

Object have the same “speed” all time JavaScript

I try to create a 2D game with a big map and multiple objects. The player is always in the middle of the screen and all the other objects is moving around so it feels like a big map. I want the ...
0
votes
0answers
10 views

File transfer between Unity clients [Photon]

I'm working on a project using Photon PUN for the multiplayer (using Photon Cloud servers provided from Photon) To provide context, i have player customizable graphics (which are kept locally - think ...
1
vote
2answers
44 views

UDP sending important data often - Should I use a reliable send or unreliable with resend?

I'm making a multiplayer RPG. My problem is that I send player data very often (100 ms), that contains: Position (float x, y, z) Radius (float angle) Animation (int16_t id) And because the package ...
1
vote
2answers
48 views

How to have an AI controlled GameObject naively avoid another one?

I have an idea of an AI controlled game which the gameobject will follow a path but it will change its path if I put another gameobject in front of it. For instance, if the moving game object is ...
0
votes
0answers
15 views

What component should the character movements in ecs and fsm?

In the below code, there's a FSM for CharacterState that will be handled also in CharacterSystem. The problem was, I don't know what component should hold movements data to process in CharacterState ...
0
votes
1answer
29 views

Unity detecting edge of mesh or end of mesh

I'm trying to create procedurally generated tiles and I've reached a point where I need to figure out the boundaries of the mesh or the outer vertices of the mesh. RaycastHit hit; if (...
0
votes
0answers
25 views

Linear color workflow with render to texture - Banding in alpha channel?

In OpenGL, I am using GL_SRGB8_ALPHA8 for the internal texture format for my render targets. This eliminated some banding I was seeing in dark opaque areas. However, in the following screenshot, you ...
0
votes
0answers
12 views

Unity3D - Async Socket multiple message

I'm trying set up server/client communication using the asynchronous sockets on the MSDN example. I'm running into issues getting it to send and receive multiple messages though. I've tried sticking a ...
1
vote
1answer
23 views

Unity - How to serialize / show private fields and custom types in Inspector?

By default, Unity only serializes public fields. How can I serialize private fields and custom types to show them in inspector?
0
votes
0answers
14 views

LibGDX - scaling for different devices

i have a question about scaling. I have two ideas how to solve problem with different screen sizes, aspect ratio etc. Make viewport that depends on device screen size and scale textures in draw ...
0
votes
1answer
25 views

Should I use single state or multiple state of an entity in finite state machine?

In the below code, is the options I've created whether to use single or multiple states for my character or other entity. Still can't decide which one is better inf using state machines. public enum ...
1
vote
1answer
35 views

Correct way of managing player states?

I'm a relatively new programmer attempting to create a simple 2d fighter for fun using the SFML 2 library. As a game with interaction dependent on what the character is doing, using a state system ...

15 30 50 per page