Software engineering is the design and development of software as it applies to the game development field. Questions using this tag should be about theoretical concepts and practices as relates to the task of creating or designing software. This tag should not be used simply because a question ...
5
votes
1answer
79 views
When should I acquire game objects with dependency injection, find-with-tag, or singletons?
This is sort of a best practice/efficiency kind of question, and I haven't really seen any other question talking about these three things together.
Essentially, Dependency Injection, Find with Tag (...
1
vote
2answers
91 views
I have a game based on combining 2 ingredients to create a product. What is the best way to code this? (Unity)
So to go a bit more in depth, in my game, you can combine a variety of ingredients to make a product. For example, you could combine water and dirt to make mud.
What I am currently doing to achieve ...
0
votes
2answers
171 views
2D racetrack collision bounce using angle of reflection (bounce angle)
I am currently working on a race game where I want to define the collision of my vehicle with the outer and inner borders of the track.
If that happens to be the case I want to vehicle to bounce of ...
1
vote
1answer
83 views
Calculate speed vehicle physics 2d racegame
I am currently working on a 2d racegame where I am using physics to move a vehicle. On my form I would like to add a label containing the speed on the vehicle.
My physics knowledge is a little rusty, ...
0
votes
0answers
44 views
AddForceAtPosition() not working as desired
I'm trying to lift the left-front and left-rear wheel of my car, and I got it, applying this:
Rigidbody rb;
Transform leftTilt;
void Start() {
rb = gameObject.GetComponent<Rigidbody> ()...
1
vote
1answer
54 views
Networking in a strategy, city management game
I'm developing a city management mobile game with its' share of multiplayer elements (leaderboards, achievements, social interactions). It's built using Unity and GameSparks as a backend. I'm a little ...
0
votes
1answer
46 views
Map Positions in LibGDX
I am developing an RPG game where there is a main world map, locations such as towns or ruins on that map and buildings in those locations where players can interact to go into. For example, I have a ...
-1
votes
1answer
134 views
How can i make monsters drop items when they are being killed [closed]
I am making HTML 5 game with Javascript i am really new to programming,want to know how to make the enemies drop items after they are killed when the enemy dies i want the rectangle to represent an ...
-2
votes
1answer
87 views
how to programming game for not native english? [closed]
is computer can read english language? is computer do anything we order in code with english. where is library word for computer programming? i am not native english so i don't understand how code ...
0
votes
1answer
49 views
Need advice for what to do with my first game idea [duplicate]
My friends and I have this idea to make a game. None of us have much experience with programming. We think our idea is to big too accomplish. Should we present our idea to an indie company that can ...
1
vote
0answers
53 views
How to implement mutable functionality at runtime? [duplicate]
I am making a game in which the player character can gain traits that change how their character behaves in my world model or add functionality to it. For example, the character might gain the "...
0
votes
1answer
150 views
Snake game made in processing
I have been working on this snake game for a few days, and I have the basics down, but I was wondering if anyone could help me figure out the tail. I need it to follow the body, as it does in the ...
0
votes
1answer
141 views
Turn a single player game into multiplayer game
hobbyist / indie dev here and I was wondering about network programming and making a game capable of multiplayer.
So basically I just haven't touched on network programming yet and really don't know ...
3
votes
1answer
121 views
How can I move and rotate an object in an “infinity” or “figure 8” trajectory?
I know that the easiest way to move an object with the figure 8 trajectory is:
x = cos(t);
y = sin(2*t) / 2;
but I just don't know how to rotate it, lets says with a new variable r as rotation, how ...
-1
votes
1answer
115 views
How can you procedurally dismember a character model? [duplicate]
For example in the new Doom, you can use a chain saw and slash an enemy apart, the enemy actually splits in half in the path of the chain saw. I know how to do the cheap effects where you store a copy ...
0
votes
1answer
39 views
Random numbers inside instance (Game Maker)
I've recently run into a weird problem. When I create instances through with(instance_create){ ... }, I can always randomize their variables individually (inside {...}). However, when I try running
...
0
votes
1answer
77 views
Making a sound every time I get to the edge of the platform
I'm trying to make a runner game for the blind, and I need help making a sound every time it is time to jump. I am using Game Maker, and I have no idea how to do it.
How do I play a sound when my ...
1
vote
0answers
96 views
Ive created a learning plan for myself - would someone recheck it for me? [closed]
Ill try to keep this short:
Currently im certified unfit for work, and this state will last about a year. I want to start creating video games. I worked as junior software developer in java about 3 ...
1
vote
0answers
42 views
Trying to create a UE4 blueprint or script to recognize set shapes
I'm currently developing an indie game using Unreal Engine 4 and I've stopped developing it within the last week because I have hit a massive roadblock..
I am trying to figure out how to create a ...
1
vote
1answer
57 views
Getting player cube to move left or right in relation to camera based on camera's rotation
Right now I'm trying to make the player cube move left, right, up and down in relation to the camera's rotation and position. I figured what I could do is create an empty game object, make the main ...
0
votes
1answer
143 views
How should I design an easing class in C++?
I'm currently struggling to find a good approach for an easing class for my game.
The class holds some easing effects, like elastic-in-out, and should be called by menu buttons, players and enemies ...
0
votes
1answer
48 views
Non-existent instance in Game Maker
I'm currently trying to make the fire object (created by the fireball) stick to the enemy, by specifying the enemy type and its id. I'm getting the following error:
"Unable to find any instance for ...
0
votes
1answer
31 views
Recognize that user has traced a path of vector points with mouse
How can I check if a player has traced a closed vector shape from an arbitrary starting point all the way around to the beginning?
Setup
Given are the vector points A through E, which form a closed ...
0
votes
1answer
33 views
Game Maker (and others): what data type is colour and how can I compare them?
In Game Maker, and I imagine other engines, one can "make colour" by defining either the red-green-blue values of the colour or its hue-value-saturation.
I want to create a program that can compare ...
3
votes
2answers
197 views
What do I need to consider before making any class singleton? [closed]
I am sure most of my classes like for rendering text, sprite, shapes are not going to need more than one instance. Is it adequate to consider only this fact that its only going to need one instance? ...
1
vote
2answers
98 views
LibGDX - Image width is not set to resetting to zero when full width
I am making a progress bar for showing the players current experience. However I have come around to a bug, which appears when the player is maxing out his experience and then is getting a new level. ...
0
votes
0answers
43 views
rendering technic for water in pipeline game
For fun I want to clone a waterpipe game, where the player places pipe pices on a gridfield and after some seconds water starts flowing from the start, through all places pipes and hopely reaches the ...
2
votes
0answers
53 views
Representing a high-resolution deformable solid in 3D
I am currently working on a design that will incorporate an object that can change size and shape.
For an example, I'll use a brick of clay. It starts out with normal dimensions of 1"x3"x6", but that ...
0
votes
1answer
43 views
Quantity of dropped/spawned items in container
I'm having trouble figuring out how to spawn more than one item in to a container with a weight limit. What I'm having trouble with is the understanding, rather than what statements to write;
My ...
0
votes
0answers
84 views
Finding the intersection of a plane and a ray
There are many formulas to check a ray against an unbounded (infinite) plane. Is there any way to quickly check if a ray goes through a bounded plane (i.e. a surface)?
I currently have a plane ...
0
votes
1answer
69 views
Sticking things to Walls in 3D
I'm trying to leave the second dimension and finally make a 3d game, but I'm having a hard time coming up with a way to implement a certain concept. I am trying to make a flat object which would "...
0
votes
1answer
130 views
How to rotate a surface in pygame, without changing its shape
I'm writing a class in pygame to create a sprite object, and I'd like to be able to rotate it. It works fine with an image, and rotates without issue. But when rotating a surface with a plain colour, ...
0
votes
0answers
40 views
Getting my 2D follower to double jump :L
Ok so here is the current situation, I am essentially trying to get my player's follower to double jump after he jumped. I've successfully got my follower to jump at edges but not so much for double ...
8
votes
8answers
2k views
Introduction to game engines for children [closed]
My friend's 10 years old kid is very interested in programming and video game development. The little guy has already finished CodinGame, so I directed him to other learning games I know of in the ...
0
votes
2answers
126 views
Using Unity as a front-end GUI for a non-unity application?
I'm working on a game right now that is 2D, and grid based, and for a variety of reasons have decided making it in Unity wouldn't be worth the hassle I'd have fighting the engine.
That said, I want ...
1
vote
1answer
63 views
Unity - protect MonoBehaviour-derived classes from instantiating via new in C#
When the class hierarchy grows and you deal with a lot of custom types in your project, it sometimes becomes hard to remember which types are allowed to be created via new and which types are derived ...
1
vote
1answer
64 views
How can I give the mouse position to my GameObject nicely?
I am making a basic Asteroids game in SFML, and I want the Player ship to always look at the mouse. I have a LookAt(x,y) function which works, but I am not sure how to get the mouse position from the ...
1
vote
1answer
86 views
Where do i start with game development when i'm terrible at art and 3d modelling? [closed]
I've wanted to try and make my own game for a while now but i'm i'm terrible at art, textures and 3D modelling but i want to learn it so has anyone got any pointers to get started with the whole ...
0
votes
3answers
71 views
How are the same items generated with slightly different attributes?
Consider games like Destiny. How do they generate weapons that have the same skins and names, but different attributes? Two people can have the same weapon or armor piece, but have different ...
2
votes
0answers
93 views
Learning to think like a programmer [closed]
I'm pretty interested in game development and I've tried a couple of platforms and languages. Including libgdx and game maker studio, all without any real success. I'm currently using unity and it's ...
1
vote
1answer
59 views
Process of Game Updates/Patches
I am currently in school studying game design and programming and I am wondering, simply: How are games updated?
Whenever I create simple, little programs, if I change anything, essentially the ...
1
vote
1answer
74 views
Decide whether bot is approaching or leaving
Consider a static obstacle placed in 3 Dimensional coordinate plane. A moving bot is programmed to pass through it. We know the position of obstacle. We also know the current position and current ...
1
vote
1answer
133 views
Why are games using interpreted languages instead of compiling code into libraries and calling them at runtime?
Say I want to include a game mechanic where players are invited to code up some algorithm to control robots which would defeat the enemy and protect the tower efficiently. Most games I've seen to ...
26
votes
6answers
10k views
Programming Inside a Game
There are some games which allow the player to write/create scripts in-game, for example: Space engineers or Psi.
I want to use something similar to either one,but I've had a hard time finding ...
0
votes
1answer
75 views
C++ Independent Objects?
before I started C++ I digged around in ActionScript3 for a while.
The first thing I've noticed is that you apparently have to call all your objects/game-characters individually and tell them to ...
0
votes
1answer
124 views
Unity in c# errors with “the type does not contain a constructor that takes 0 arguments” [closed]
This is the problematic line
datosAguardar datos = new datosAguardar ();
Here is my code
public class estadoJuego : MonoBehaviour {
public int puntuacionMaxima = 0;
public static estadoJuego ...
1
vote
2answers
169 views
3D on GBA, how was it done?
I've been wondering, how did game programmers make this: https://youtu.be/S6huq2G43Ls?t=4368 possible?
There seems to be some odd morphing of textures when you walk by objects, and the textures are ...
1
vote
0answers
26 views
Vehicle audio recording [closed]
So I red an article on "The sound effect" website about recording the audio of a vehicle. I'm planning on making a race game in the future and I'm having a little concern about the sound of the ...
1
vote
1answer
604 views
Why does my custom network Manager disable the main one
Whenever I add a custom Network Manager to add functionality to and override it's functions, the main NetworkManager got disabled so I could not see the NetworkManager HUD or start matches. It there a ...
0
votes
2answers
194 views
What's the difference between Gameplay Programming and Graphic Programming?
I know the answers are obvious, someone told me this:
Graphics Programming: DirextX, OpenGL, etc.
Gameplay Programming: Bringing everything together. From design, music, levels, etc.
But may you ...