3
votes
1answer
251 views

Local avoidance together with any-angle types of A* Pathfinding

Recently I have been implementing the Block A* any-angle path-finding algorithm in a project I have, for which I need extremely efficient results due to the large number of NPCs. However, I still do ...
0
votes
0answers
4 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 ...
3
votes
2answers
110 views

Make a light only affect one object

I'm wondering if it's possible to make a light source only affect one object? I know that it's possible to use layers and culling mask, but then I would need one layer for every single object which is ...
1
vote
0answers
12 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
2answers
12 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 ...
3
votes
2answers
1k views

Unity2D: Automatic scaling of camera and sprites

I'm working on a point-and-click adventure game using Unity2D for mobile devices and possible PCs and I'm trying to wrap my head around supporting devices with different screen sizes and aspect ratios....
0
votes
0answers
7 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
25 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 ...
0
votes
2answers
66 views

All GameObjects and Models are Transparent

Whenever I create a new game object its completely transparent, with the Mesh Renderer selected. This is really frustrating as I am new to Unity and Google offers no solutions.
0
votes
0answers
8 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 ...
1
vote
1answer
74 views

How can library classes access SpriteBatch?

I have a spritebatch in my primary game component in a game project: public class GameRoot : Game { private SpriteBatch mySriteBatch; public SpriteBatch MySpriteBatch { get { return ...
0
votes
1answer
20 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 ...
1
vote
1answer
49 views

How to make a temporary collision?

I have a key and door system working, the character(ball) picks up the key and when it is within the collider it sets the text("press E to open") on the screen to active so that they can open the door....
0
votes
1answer
27 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
0answers
7 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 ...
1
vote
1answer
136 views

Unity Collision Doesn't Work when Two Players Instantiated

I am using Unity3D and I have a problem. I have a script which instantiates the player gameobject once you are connected to the server. I also have an attack script. When there is only 1 player on, ...
4
votes
5answers
171 views
+50

How can I implement smooth tile-based lighting?

I have been working on a 2D tile game and I have implemented hard-edged lighting: I want it to be smoothed out a bit. I don't need shadows or anything, just simple lighting. I'd like it to look ...
0
votes
1answer
34 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 ...
1
vote
1answer
567 views

Bullet 3D Physics Objects Not Rotating?

So I've got Bullet 3D controlling the motion of objects rendered with DirectX. In the clipping below I've got 2 identical rectangles & 5 balls. The lowest rectangle has a mass of 0 and doesn't ...
0
votes
1answer
10 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 ...
1
vote
1answer
22 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
239 views

How do mobile games create simple UI components?

How are simple UI inputs typically handled in 2D mobile games? For example, text input boxes and keyboards. It seems that many game engines do always have simple UI components. There are obvious ...
0
votes
2answers
43 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
1answer
22 views

How to implement a configurable spring force to SpringJoint2D like SpringJoint does?

I'm working in unity 5.3.4f1. Looking at the SpringJoint2D class I can't seem to find a similar "spring force" as in spring in SpringJoint. Is there any other way to make a spring stronger in ...
0
votes
1answer
28 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 (...
1
vote
3answers
72 views

Unity 5.. How to Block interaction below panel?

New to Unity...Is there an easy way to block all interaction underneath a panel that I would have stationary at top of my game. There will be a pause button in that panel and some game info. Just don'...
1
vote
0answers
10 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
20 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. ...
1
vote
3answers
31 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 ...
0
votes
0answers
7 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
1answer
1k views

Drawing Shape in DebugView (Farseer)

As the title says, I need to draw a shape/polygon in Farseer using debugview. I have this piece of code which converts a Texture to polygon: //load texture that will represent the tray ...
0
votes
0answers
37 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 ...
0
votes
0answers
13 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
2answers
60 views

Strange 1D Perlin noise generation with negative x values

I'm trying to use 1D Perlin Noise to generate "random" terrain for a side-view scrolling game (Think Terraria). I've gotten it mostly working, however strange things start to happen when generating ...
1
vote
2answers
43 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 ...
2
votes
1answer
128 views

Why does my Unity animator state “finish” before the visible motion does?

Example: The TopAppearing motion - boost the alpha of the sprite from 0 to 1 for total of 2 seconds: After TopAppearing state has been finished: The TopAppearing's transition settings: ...
1
vote
2answers
39 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
2answers
32 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 ...
-3
votes
1answer
56 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
0answers
25 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 ...
2
votes
0answers
38 views

How to disable and enable a randomly generated prefab in an endless runner 3d

Hi all I have been experimenting the endless runner game for some time and needed to optimize it. I read some articles about optimizing my game and it says that once you instantiate the prefabs in the ...
0
votes
1answer
73 views

Need Help With My Script And Animator. I am encountering a few bugs with it

Okay so I have created a player archer character which when he using the arrow keys, faces those directions and upon hitting space when in that direction, the bow attack animation is played. The code ...
-2
votes
1answer
18 views

Box2dWeb: rotating object about a point

I am having problem rotating box2d object back and forth around a point. To better understand my problem i have prepared an example clicking on key rotate the paddle when u click again the paddle ...
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 ...
1
vote
2answers
46 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
1answer
167 views

How to get a position from a radial distance and angles?

I have a radius and the 2 angles for northSouth and eastWest rotations in degrees. I need a Spherical position or a cartesian position (I have code translate one to the other) Where a position is ...
0
votes
1answer
28 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 : ...
1
vote
1answer
247 views

GUI.Box z-index for mouseover

So I am drawing an inventory with slots like so: private void DrawItemSlotAndAttachActions(Item currentItem, Rect slotRectangle, Event e, int itemSlotPosition) { if (!(currentItem is ...
0
votes
3answers
3k views

C++ GameState management

I have been attempting to make a game engine in C++ and have come across the dilemma of game state management. I have done a lot of research and found numerous ways of accomplishing from game engine ...
-1
votes
1answer
53 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....

15 30 50 per page