All Questions
0
votes
0answers
4 views
How to choose between online and offline game models?
I'm working on a mobile space shooter game and hesitating between "requires online" and "offline with limited features" models. From one hand, I'd like to have my content configurable via server side ...
0
votes
0answers
12 views
Change width and height of 2D object based on pixel size and count
I'm working on a shooting simulator with shooting goals that need to be in real world size. I know the certain size of screen display and pixel counts.
Is there anyway to change their size based on ...
1
vote
1answer
19 views
Why does AudioSource not initializes itself?
Why does AudioSource not initializes itself?
Here is my code:
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraConfig : ...
1
vote
0answers
11 views
How to test Google Play Multiplayer locally
I'm building a simple HTML5 game and I need to implement multiplayer without sharing the game on Google Play.
I'm using CocoonJS's multiplayer api.
How can I test Google Play Multiplayer locally? Do ...
2
votes
2answers
27 views
Using unity Rigidbody 2D gravity, how to add to velocity?
I am creating a top-down game, and have an object I want to create a small bouncy illusion for. Since I dont have anything to collide with I'll have to do it with Scripts.
Without Unity I would ...
0
votes
0answers
32 views
Good practices to store and access data in a game? [on hold]
The game
A classical two-dimensional RPG solo game. The player has attributes and can make choices in the game. There is a physics engine, so a lot of objects can be moved and NPCs as well.
What I ...
0
votes
0answers
25 views
How can I record gameplay footage as a video within Unity?
I am building a traffic simulator in Unity. I need to record my game as a video, so that I can use the video for machine learning purposes. I used fraps for the same but didn't find it worked for me ...
1
vote
0answers
17 views
What is the “correct” way to render to a cubemap using Vulkan?
After searching far and wide for the solution to this, the only one I have been able to find that verifiably works is to the render a face to a framebuffer and then use a memcpy to copy that ...
1
vote
0answers
42 views
What's wrong with this Height Map in Unity?
In the first picture it seems the virtual surface of the normal map is calculated to behind the camera. I only have this bug on convex surfaces.
However in both these pictures it seems the surface of ...
0
votes
0answers
31 views
Modelling meteoroid to scale in Maya LT
I have just recently started using Maya LT so forgive me if I am asking a silly question.
I am trying to model a meteoroid in Maya LT of about 8km in diameter and I am trying to model it to scale. ...
1
vote
1answer
55 views
How does one make both movement and animation to sync up and happen simultaneously?
I am very new to Unity and game making and would appreciate if you would cope with me.
I have made a very basic prototype of character animation and movement, however trigger that is supposed to fire ...
0
votes
3answers
90 views
Can I publish a game with a name similar to a videogame developer?
I'm currently developing a game and hoping to sell it in the future. Right now I'm about to make a facebook page and release a trailer, and I realised my game has a similar name to an already existing ...
3
votes
1answer
42 views
How to detect and prevent the resolution of fake collisions?
I'm creating my own physics engine and I came across a small inconvenience. Here how it goes: when a body tries to push into something it really can't push, it gets pushed back (which is completly ...
4
votes
1answer
83 views
Average for damage formula (Min-Max Attack - Min-Max Defense)
We wanted to create a quick spreadsheet to rapidly adjust enemies' Attack and Defense from players' estimated values of Attack and Defense.
One of the key values to adjust is the "hits until dead", ...
2
votes
1answer
58 views
How to make a game people can mod? [on hold]
In C++, how can one make it's game load content developped by other people?
For instance in Java you can look for jar files and load specific class from it.
0
votes
0answers
18 views
Integrating Unity physics with Entitas
I've used Entitas a bit and it appeared to me as a great way of creating clean, modular code. I've seen few examples of games created with this framework, and most of them were puzzles, TD's, simple ...
0
votes
0answers
12 views
Phaser Box2D Physics knockback
I'm trying to make different knockback powers for different objects.
I have a ball and two players, i need to implement the following.
Player_1 hits Player_2 -> 0.5 knockback power
Player_1 hits ...
0
votes
0answers
20 views
Game Engine Mechanism [on hold]
Can anyone tell how a game engine works? How does it balance the varied programs in a game and run them at the necessary times? Further how do the engines control the processor activity?
-2
votes
0answers
24 views
Unity 3D game keyboard setup [on hold]
I started to learn Unity 3D games.How could I use models to move through keyboard button?
1
vote
1answer
46 views
Rotate camera around it's center in 2D
I'm currently trying to develop my own little game engine (tying to understand maths in games).
I have implemented 4x4 matrices and 2d vectors (i don't need 3d since i'm aiming at orthographic ...
1
vote
1answer
30 views
Strategy for Levels That Blend 2 Maps Concurrently
Levels like A Crack In The Slab from Dishonored 2 allow you to jump back and forth between 2 time periods at the 'same' location.
The blending is not just a case of toggling map objects on and off, ...
1
vote
3answers
74 views
Memory usage of a pointer inside an object of same class? (C++)
If I have a class called "Something", what will the consequences for memory be if I include, in that class, a pointer to another object of the same class? So if the objects ThingOne and ThingTwo are ...
0
votes
1answer
57 views
Unable to Execute code in (what i expect to be) the correct order
I have become completely stummped on this. I have a login screen i have created, i have everything working except 1 thing. When i click "login" i want to hide the Login screen object (wm....
1
vote
2answers
61 views
How do point clouds become polygons?
I have reached some limits in my game experiments that seem to be solvable by working with content as 'point clouds'. My main concern now is how to convert the resulting point clouds into polygon ...
0
votes
0answers
23 views
colour model conversion - subtractive primaries represented as ratio of sum [on hold]
I have tried to seek help for this on the computer graphics forum first but it isn't going as I had hoped so I'll ask here.
For my game project, I need to take as input some percentage of a sum total ...
0
votes
2answers
33 views
Rotate camera around point of view
I'm trying to rotate the camera around the view point of the camera. So when the user looks at a build the camera rotate around that building. But the camera does not need to have the building to ...
1
vote
1answer
78 views
How can I simulate relatively realistic weather?
I'm trying to create relatively realistic weather patterns for my game. The simulation should handle temperature, wind, cloud formation and evolution, fog/mist, rain, snow, etc., and account for ...
1
vote
0answers
28 views
Null Reference to camera when loading new scene
I am getting the error:
MissingReferenceException: The object of type 'Camera' has been
destroyed but you are still trying to access it. Your script should
either check if it is null or you ...
-2
votes
0answers
19 views
What are some level design principles at play in Max Payne 3? [on hold]
I have played and analyzed the multiplayer levels of Max Payne 3 over and over, but as much as I enjoy and admire the level design of the multiplayer maps I find it difficult to learn or take anything ...
-4
votes
0answers
13 views
How to drag Zoomview without zoom it and how to minimize it than actual size of layout
//Try below code custom view with having facility to add zoomview
package <your package>;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
...
-2
votes
1answer
50 views
Why does the score increase faster the second time the user plays my game?
In my HTML game, if you press the "play" button, the game will start and the score will increase by one every second. If you then press the back button and click the play button again, the score ...
-2
votes
0answers
16 views
Drawing 2d tilemap of a big world in javascript
I'm want to make a 2d game with a big world built with a tilemap.
I will obviously only want to show a small part of the world at a time.
Is it as easy as only drawing the tiles within the view port ...
0
votes
1answer
35 views
nullException issue [duplicate]
I have a problem when I was trying to change a state within my character. I wrote the code below
public class playerController : MonoBehaviour {
private CharacterController characterC;
private ...
0
votes
0answers
16 views
How do I convert a sliced image into a grascale image that is useable with Unity terrain using “System.Drawing”
I have managed to slice a large height map up, based on the segmentation of my terrain generator. In my case; I'm generating a 5x5 128 unit grid of terrain. I decided to take a 5125 x 5125 pixel image,...
1
vote
2answers
21 views
Clearing a gizmo list (OnDrawGizmos)
I have a list of gizmos in a simple gizmo drawing manager. This list is updated from different parts of the codebase, usually from Update() methods. It goes something like this:
public class ...
-1
votes
1answer
20 views
How do I play local user-provided audio files on an Android or iOS device? [duplicate]
I'd like to allow a user to select a path to local audio files, in Android and iOS devices. Is there a way I could provide a list of available songs, in Android or iOS devices, so the user could pick ...
0
votes
0answers
13 views
Linking Objects to Save Data Booleans in Unity?
My game has a lot of boolean states I need to save such as "is this door unlocked?" I need to save all these states to a file and, upon loading, check if they've been unlocked and set their state ...
3
votes
0answers
25 views
How do I maintain the world pitch, roll or yaw of child objects?
I've got an application where I'm trying to display an object in 3D, with information provided by real-world accelerometers and inclinometers - sensors that pick up the angle of the equipment, ...
0
votes
1answer
19 views
What is Google Play Services Multiplayer?
This question might be off-topic, i don't know where should i ask it.
What's the difference between Google Play Real-Time Multiplayer, Google Play Turn-Based Multiplayer and sockets?
1
vote
0answers
29 views
How to make perlin noise more square?
I use a perlin noise generator to create a map. All works fine and dandy. It uses the following formula:
Generate perlin noise
Posterize the height values to be an integer between 0 and 5.
What I ...
3
votes
0answers
86 views
Why are my network players only able to shoot horizontally in my first person shooter?
I am quite new to the Unity community, but I can code in C#. I am testing Unity networking using a standard FPS. I am stuck while testing out multiplayer shooting, not using raycasts. The host can ...
0
votes
1answer
55 views
How to use images as Sprites in Visual Studio 2010 C++? [on hold]
So i'm trying to create my first videogame, a simple code of "Space Invaders" for a project at school and I'm always getting stuck at images. I'm using C++ to code and I've tried both SFML and Magick++...
0
votes
1answer
77 views
How are these physics formulas translated to this code?
So how exactly does something like
translate to something like self.vel += self.acc in code?
or translating to self.pos += self.vel + 0.5 * self.acc there seems to be variables missing, and ...
1
vote
1answer
26 views
Collider does not call callback functions
I have a script that will create new GameObjects and will place it where the mouse is placed on the terrain. Now I need to have a check for collision on other already placed GameObjects on the field.
...
0
votes
1answer
14 views
Unity Mobile project, button problem “CrossPlatformInputManager.GetButton” not working
Good afternoon, I have a problem with an input in my code:
Before testing it on mobile I tried on PC and the code to make my player sprint was like this:
var sprintPressed = Input.GetKey(...
-1
votes
1answer
29 views
How to detect when object A In point B place
i have object which is moving to points in the screen each time the point ( call it B)
is moving to different place and object A follow its direction .
Im using Linear interpolation and simple ...
-1
votes
0answers
5 views
What is better Swift or SpriteKit to develop an action interactive game for iOS (iPad and iPhone)? [on hold]
Any opinion on what is better to use to develop a game for iPhone and iPad. I will have interactivity inside, enemies, controlling the hero, etc....?
1
vote
0answers
8 views
Set sprite for UI2DSprite from NGUI at runtime
How can I set sprite for UI2DSprite from NGUI at runtime?
This is what I tried:
gameObject.GetComponent<UI2DSprite>().sprite2D = Resources.Load<Sprite>("Assets/Content/UI/level/notLife....
34
votes
7answers
12k views
Why do game studios need graphics programmers if they're using game engines?
In the credits section of the games I play, there are names of graphics programmers. If they used a game engine, why do they need a graphics programmer? Isn't the game engine doing their job?
3
votes
0answers
23 views
Combine a light and water shader in libgdx glsl
I am trying to combine a light shader with a water shader in libgdx. Shader programming is not one of my strengths at all.
This is the water effect rendering nicely:
And when I have added the ...