1
vote
1answer
169 views

How do I render my DirectX C++ engine to a C# Panel?

The title pretty much sums it up. I'd like to know how I can get the HWND of my C# Panel object to my DirectX engine so I can render to it. I know it involves making a C++/CLI wrapper, but I'm not ...
1
vote
1answer
40 views

2D Bounding box for collision detection - alternate shapes

I have objects in my game such as clouds and stars. I have given the bounds for them in rectangle format. The images are not rectangular, although the collision boxes are. How can I implement a ...
1
vote
1answer
56 views
+100

Input and output of a server side game using web sockets

I am having a look at redeveloping an old flash based top-down zombie shooter game I made in highschool so that it supports multiplayer using socket.io. My experience over the last 5 years has been ...
1
vote
1answer
22 views

Anyway to change the property of a existing animation to another type?

The title pretty much says it all. Take this rather simple animation I would like to reuse this same animation in a UI element but for that I have to animate the Image component and not the sprite. ...
0
votes
0answers
19 views

(3D) Parabola jump with given start and end

I have a start point and and endpoint given. I'd like to lerp the position from start to end via parabola i.e. over an arch. -(x-x0)(x-x1) won't work if one of the points isn't zero. Someone has a ...
1
vote
1answer
26 views

Modify texture of sepcific area of Terrain in unity

I am developing a farming simulator 3D game in unity. I have a crop field on terrain which is actually a texture paint in square to show a crop area, and i have to perform sowing (prepare field for ...
1
vote
2answers
24 views

What is a good practice for deciding when to use transforms instead of applying force?

I was making several games. I don't understand when I should use addTorque instead of rotate. AddForce instead of position The latest game was a pinball game. I wasn't sure the best way to active ...
0
votes
1answer
27 views

How to make a windows installer for Monogame/F# game?

Alright, I have several questions that I haven't been able to find answers to yet. It looks like WiX and Inno Setup are pretty standard solutions for making the installer. WiX looks pretty ...
0
votes
0answers
11 views

Lens Distortion not working with Unity 5.3.5

I have downloded the latest sdk from this link https://github.com/googlevr/gvr-unity-sdk I imported the package into my project.From the prefab added GvrMain to my scene and set the Distortion ...
0
votes
0answers
31 views

Scene/Level/Map Editor for Haxe games [closed]

Are there any effective scene editors for Haxe game development? I'm creating a point and click game and the Tiled map editor could possibly work but it doesn't seem meant for this type of game. I'm ...
-1
votes
0answers
31 views

How does Perlin noise works and how can i use it for generating a map in C?

I'm starting to make a roguelike game(something like NetHack or Rogue) with a friend, but before getting really into it we wanted to make some search of what will be needed. And one of the first ...
3
votes
2answers
85 views
+100

Gfx.WaitForPresent performance issue

I am making a 2D mobile game and it runs really well (60 fps) on my phone. However, in some cases the performance goes down drastically to the point where it runs at 20 fps or even less. It happens at ...
0
votes
0answers
14 views

Help developing algorithm based on number of moves, time elapsed, and level difficulty [closed]

I have 100 levels, ordered from easy to hard. Each level gives a score based on time elapsed and number of moves achieved. However, I do not have an algorithm to figure out minimum move counts (nor ...
0
votes
1answer
46 views

Another app has the same name as mine on the appstore!

I am about to publish a game on the android playstore and the ios appstore. It is called "PairIt". I checked a while back to see if there were any other apps named PairIt on the playstore, and there ...
1
vote
2answers
44 views

Textures are not drawn separatley

I am trying to draw different textures of balloons and I want them to appear in different times about half second between each one, and move in the world. first balloons are rendered but after about ...
3
votes
1answer
27 views

Unity and Thread for Reading UDP

I have a GameObject that reads sensor data coming in over UDP (formatted as JSON). What I am observing in that my handshake (dataReady) is getting cleared by the Update() cylcle fast enough, and I am ...
1
vote
1answer
41 views

Unity using Animation and Ragdoll

The question is simple, but I can't resolve it for a couple of days. I have an enemy model with ragdoll attached and also a couple of animations(e.g. idle, walk, run). It seems that ragdoll work only ...
1
vote
0answers
51 views

Unity game randomly closes when phone is streaming the screen?

My Unity android game (frequently) randomly closes on some phones when it's streaming with the YouTube Gaming App for example. I have Unity version 5.3.5f1. I have to say that this phenomenon did not ...
1
vote
3answers
70 views

Is it bad practice to store inventory and scores in PlayerPrefs?

I'm building a mobile game for a client in Unity. To save time, we started with a template game from the Asset Store that had some of the features that the client wants. The game includes a ...
1
vote
0answers
18 views

Solving constraints/joints in 1D

For n points moving in 1 dimension. Position and velocity are known for each point. Each frame a basic integration is done for each point: velocity += forces * timestep; forces = 0; position += ...
1
vote
1answer
24 views

Why is my zooming-in + changing scenes not woking in Unity?

I'm zooming on a map using Math.Lerp and then I use the scene manager to change the scene. Here is my attempt but it doesn't work on the map. I have attached it to the main camera, in the worldView: ...
-5
votes
2answers
72 views

How can I test which of two gameobjects is closest to a third gameobject?

It would be nice if it was as simple as: public void Closest() { if (A.distance > B.distance) {} } But any sort of workaround would be acceptable.
0
votes
2answers
23 views

rough texturing on edges of mechanical parts

How do major studios fake the effect of "wear & tear" on the edges of guns and other things? I've always wondered this, but today it got to the point where I figured, why not just ask you guys. I"...
0
votes
0answers
35 views

Is C++ able to handle online multi-player game? [closed]

I am thinking of learning either java or C++, and for one thing I know that java can make online games, but I'm not sure about about C++. I want to stick to one language and work on it till I get ...
2
votes
1answer
25 views

Libgdx Image doesn't fit the Screen

I am Trying to show Image as background, but it doesn't fit to the screen. When I use this class as the start screen it fit the screen properly but when I call this class after winning the level, the ...
0
votes
1answer
47 views

Check collision between two rectangles - libGDX

I'm making a game in which the objective is to collect the maximum amount of balls(Rectangle) to get the highest score. The balls spawn randomly from the middle of every side of your smartphone, and ...
0
votes
0answers
16 views

Two Viewpagers - swipe from one to another cause stuck

I have two Viewpagers, one is controlling whole layouts (pages), and second holds some items. First one is named viewPager1 in this image: Works good, but not perfect; As you can see, there's ...
2
votes
3answers
70 views

Is game localization by external files protected by a patent?

http://www.google.ch/patents/US7930167 This patent explains loading game languages from external files. I'm pretty sure that has already been implemented in many games. I'm not sure if they violate ...
0
votes
0answers
11 views

MonoGame Custom Content Pipeline Importer [closed]

I am currently trying to figure out how the Content Pipeline of the MonoGame Framework works. Loading the default assets like Texture2D works great. But I wanted to create my own Importer, Processor, ...
0
votes
0answers
18 views

Match the circles

I have decided to create a game "Match the circles" as a way to get more familiar with android game development. Thus far, I am not using an Engine. I am using android core classes; So I created a ...
2
votes
0answers
22 views

OpenGL cubemap binding

I'm experimenting a strange behaviour of textures inside my shaders. Basically I need and bind two cubemap textures inside my shader but only one gets actually bound. I've tried swapping the two ...
0
votes
0answers
13 views

Coordinate code for moving the object from one side to others side

I'm trying to make a 2D games, like airplane in android. To play the airplane, the user must shake the phone and then the airplane will move from left side to right side. And I don't know how to move ...
1
vote
2answers
65 views

Tank bullet shooting

Ok, I'm having a lot of trouble understanding using Matrices for Movement in a 2D game. I currently have a Tank object that has a Matrix3 globalTransform managing the direction Scale and Rotation. ...
3
votes
3answers
133 views

Creating laser redirection (eg. Portal 2 Cubes)?

Okay, so I asked this question about 2 years ago, and revisiting my project, I'm amazed I still can't think of a solution. I seemingly can write basic adventure game engines from scratch, but Unity's ...
3
votes
1answer
135 views

Trying to implement forward rendering in OpenGL

I'm working on implementing forward rendering in my 2D engine, as far as I'm aware everything should be set up correctly, I've ran into some issues earlier but I'm sure I've fixed those at this point. ...
1
vote
0answers
37 views

When to Use Spatial Hashing vs Bounding Volume Hierarchy?

I've been slowly working on implementing a spatial hashing function into Bullet Physics to see how well it will work in my game engine as a general use. Though as I'm starting to design it, I do ...
0
votes
0answers
14 views

Free for use 3d models / meshes for use in UE4 [duplicate]

Does anyone know a good place where I can get free 3d models or/and meshes that work with UE4? because so far i can't find any good sites that are free.
1
vote
1answer
45 views

Use Stage's draw() method to invoke Actor's draw method in Libgdx

Question : In the following snippet, I wish to draw different shapes such as rectangles, circles, triangles etc. I will be creating different class files for each of such objects, as I did for ...
3
votes
0answers
73 views

How can I fire a bullet from an actor's position?

I want to shoot a bullet from an actor. I know I need a location in space to fire a bullet from, which I've got in the form of a model set as an actor. Now I need to create a new object (in this case,...
1
vote
2answers
55 views

LibGDX - Collision detection between all bullets and all enemies

I'm trying to make a collision detection system between the player's bullets and all the enemies on screen. So far I had something like this: for (Bullet bullet : hero.getPistols().getAllShotBullets(...
0
votes
0answers
51 views

How Could I Get My Game To Be Noticed? [duplicate]

I've been working on a game for a while. I made a weebly website for it, it's been up for a while, but nobody's looking on the website, because they aren't going to come across the URL for the website ...
0
votes
0answers
36 views

I want to make a pie countdown timer in LibGDX

How would I go about making one of these in LibGDX? The number in the middle isn't necessary. And to make it clear, I'm not looking for an implementation or a "hand out" of source code. Just point ...
0
votes
1answer
19 views

Cocos2d-x build failing on linux

I was trying to compile cocos2d-x on my linux machine, because they do not provide a binary copy of the library. However, I received the following error during the build: /home/ryan/Downloads/cocos/...
6
votes
2answers
105 views

Is there a way to make the boundary between materials wavy?

I have a sea trading game that I'm working on developing. Right now, my world looks like this: There are 4 different "biomes", with more to be added. Internally, this is a large mesh which has 4 ...
0
votes
0answers
41 views

2d block based game storing water simulation

I am making a 2d block based sandbox game like terraria. I'm trying to think where is the better place to store water in, data structure wise. That is, to store it in the block world array, or to ...
1
vote
0answers
27 views

New Project Basic Structure

I had originally asked this on the Cryengine forums but I received no replies. I know stackexchange to be a much better community. I am just starting out with Cryengine 5 and created my first blank C+...
1
vote
1answer
41 views

is it possible to use Ui button to work continous on unity

i want to use Ui buttons as joyStick arrows to move character. but as i know buttons just work once. not continous. so is it possible to make button work continous?
1
vote
3answers
80 views

How to Display hints to user when he is inactive for more than 5 sec in unity?

I have made a 2D Game using unity in which user has to select objects of similar color and now i want to display hint when user is unable to select the color for more than four seconds. I want ...
1
vote
1answer
58 views

What's wrong with my animation trigger script?

So I am making an RPG and I am setting up the player. I am trying to trigger an attack animation by pressing a button. I wrote this down and I get an error that says "Expressions in statements must ...

15 30 50 per page