Skip to main content

Questions tagged [objects]

A related set of properties (height, colour, level) and methods (pick up item, jump, attack) that are used to describe an entity in the game.

Filter by
Sorted by
Tagged with
1 vote
1 answer
107 views

I am beginning to work on a physics system, where there are multiple objects in the world that get rendered. The current approach I am considering consists of pseudo-OOP in C where each object has ...
CPlus's user avatar
  • 153
3 votes
2 answers
2k views

I am developing a game engine in C++ (for an idea of what kind of design I'm going for, think of ROBLOX, if you're familiar with that) and I need help with a problem I have. So basically, the objects ...
Bunabyte's user avatar
  • 331
0 votes
1 answer
700 views

I am learning about Actions/Events in Unity and just built a system around them which works. However, it seems I just got lucky and I'm not sure why. Roughly, my class in a simple illustrative form (...
mike's user avatar
  • 501
1 vote
0 answers
2k views

I have a UProperty in struct which is a TArray<UCoverInfo*> where UCoverInfo is inherited from UObject: ...
Robotex's user avatar
  • 251
-1 votes
1 answer
673 views

Hi everyone I am trying to make a Mahjong Solitaire game using pygame. I want to create a list of objects (the tiles of the game) using a for loop, but I can't manage to set a different type (the ...
Matteo Scalas's user avatar
0 votes
1 answer
111 views

I have read from Hearn and Baker computer graphics book. I read the test#2 painter's theorem which image is given below. This image showing surface S is completely behind the surface S', by checking ...
S. M.'s user avatar
  • 117
1 vote
1 answer
146 views

I would like to understand how to calculate coordinates of boundaries group of objects as a parallelepiped in 3D game? Let's say for simplicity we have spheres randomly slowly moving in 3d space some ...
Arsenius's user avatar
  • 113
0 votes
1 answer
165 views

I have a World class that currently only has one instance. It has data and methods that need to be accessed by all other game objects. Right now I'm hardcoding a ...
EnderShadow8's user avatar
3 votes
2 answers
367 views

This might sound strange, but let me explain. Say I want to write a safari program. In this safari there is an object pool of 10 animals (Animal*): 2 ostrich, 5 ...
Tminator's user avatar
0 votes
1 answer
85 views

I have a PlayerClass class that is used to set my Player's class. For instance, this will make him a warrior: PlayerClass warrior = new WarriorClass(); ...
Thisisstackoverflow's user avatar
0 votes
1 answer
159 views

I have a base class Object, and depending on how the object must behave on the scene, I have multiple abstract "role" classes, that inherits virtually from ...
lvella's user avatar
  • 153
0 votes
0 answers
53 views

I've been stuck doing this in a very inefficient way and really want to know if there's some design pattern that solves this because it seems like a pretty common problem to have. I have a system ...
Taceo's user avatar
  • 1
0 votes
0 answers
22 views

I want to put Scrollable Text On Object / Mesh. I looked after it on YT but I did not find anything useful. How could I do this?
user138277's user avatar
1 vote
1 answer
185 views

I am quite new to the wondrous world of "Procedural Textures", and I am trying to create a double precission perlin noise algorithm. I am almost done with it except for the fact that the coordinates ...
Braden McPhail's user avatar
0 votes
2 answers
491 views

I'm thinking about working on a game where I need to find all the objects matching certain properties. For instances I might need to look up all the objects... Producing gold. Whose level is 5 or ...
peoro's user avatar
  • 443
0 votes
1 answer
238 views

I made an two objects in blender, animated them, and saved them. Firstly, when I reloaded them, half of the animations I created had disappeared, which is annoying itself but the real annoyance is ...
Ronnie Lightweightbaby Coleman's user avatar
0 votes
1 answer
1k views

i made a small code to debug and i get this error player inherit from gameobject code ...
younlok's user avatar
  • 19
0 votes
1 answer
391 views

firstly iam used to java and new to c++ so maybe this will looks a noob's question i will explain this and give a pseudo code and then c++ just so you can understand me i have a player class which ...
younlok's user avatar
  • 19
1 vote
1 answer
228 views

I'm currently working on open world game. But I am confused about one thing that, is it ok if I put real monuments and sculptures like white house, statue of liberty etc. in my game? Please help if ...
Karan Jeswani's user avatar
0 votes
2 answers
119 views

I don't have any experience in game programming, but I am currently on programming-related degree, although on a different branch to game design. I thought about how an environment can come more ...
Lukali's user avatar
  • 101
1 vote
1 answer
104 views

I am making a prototype for a Mario game and am having difficulty completing a canned animation for a prefab. There is an item box asset that has 3 materials and an "ItemGet" animation. One of these ...
hatinacat2000's user avatar
0 votes
1 answer
124 views

I'm currently working on a demo-type program involving bouncing objects. Currently, I have a rectangle that can bounce around the screen. When the rectangle bounces against one of the walls ...
Alex Pickering's user avatar
0 votes
0 answers
15 views

Hi so im displaying food, health an water on the screen in a text box by using UnityEngine.UI and making text variables. They are all defined in the update function so they will keep changing and are ...
Declan Wadsworth's user avatar
2 votes
2 answers
4k views

I tried to create an array Entity[] with elements Human and Zomby. ...
JonnFranMore's user avatar
2 votes
1 answer
1k views

I'm sure I am misunderstanding something about Unity vectors or something here. I am brand, brand new to Unity so this is part of the problem. I am trying to make a simple atomic model and I am ...
Andrew Alexander's user avatar
0 votes
1 answer
2k views

Im trying to figure out how to use pointers to make a single instance of an object that in this example will just change direction on x-axis. Splav.h (eng. Paddle.h) ...
Marko Petričević's user avatar
0 votes
1 answer
1k views

I know about GameMaker Studio’s limitations for sprites, objects, rooms, and other assets (https://help.yoyogames.com/hc/en-us/articles/230407528-GameMaker-Studio-2-Trial-Limitations), but I can’t ...
pythoncoder42's user avatar
1 vote
1 answer
5k views

I have a script that randomly chooses a position to move a game object every 5 seconds, however instead of moving my object smoothly, my script make my object jumps, which is not desirable! How would ...
Bakausagi-chan's user avatar
0 votes
0 answers
146 views

So first of all sorry for this strange title... I know it may sounds worse and a bit complicated... But heres my problem : My player belongs to the "Player" layer. He stands somewhere on my map, ...
genaray's user avatar
  • 517
0 votes
2 answers
100 views

Think of a situation with two distinct runners with different speeds. They will have to walk a circuit in a straight line with two obstacles (police). Below is an illustration of the situation: The ...
Boneco Sinforoso's user avatar
1 vote
1 answer
622 views

I've looked in forums, the doc, and the code, and I'm thinking this isn't currently possible, but maybe I'm missing something, so just to be sure: is there a way to set a group as child of and actor? ...
ontheway's user avatar
1 vote
1 answer
1k views

What is the difference between using Object.Destroy() and GameObject.Destroy() in Unity? I found the following info about that: ...
pasteMyCode's user avatar
0 votes
1 answer
118 views

I used Tiled Editor for making maps for my own game, I do not run any engine or anything. I have separated terrain layer and object layer in TiledEditor. However I have problem with trees I want to ...
Dakado's user avatar
  • 1
1 vote
1 answer
168 views

I have a set of dynamically shaped objects, How do I distribute them evenly either Horizontally or Vertically.The objects are surrounded by a bounding box and the objects are placed at x,y as shown. ...
Code Guy's user avatar
  • 113
0 votes
1 answer
3k views

So, I cannot implicitly convert type object[] to UnityEngine.GameObject[]. But why? As far I know, are all types a inheritanced types of object. So, for my logic, I could put a GameObject array in a ...
Mirco's user avatar
  • 3
0 votes
0 answers
201 views

I am making a 3D game in OpenGL from scratch. In this game I have a ship with stuff inside it. How can I attach the stuff to the ship in the CAD program and maintain that hierarchy in my own game? ...
Alex's user avatar
  • 155
2 votes
0 answers
474 views

I'm trying to make a Grid who will be easily convertible between 2D and 3D and I'm having a problem with overlapping prefabs in the case of the 3D generation. The thing is, the DataObjects (Tiles) ...
user57129's user avatar
  • 133
-1 votes
1 answer
67 views

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 ...
user3689's user avatar
  • 857
1 vote
1 answer
1k views

I've been making my first, simple game in Game Maker. You have to click a moving ball (obj_ball), each time you click it, it wil start moving faster. I wanted to add a way to lose the game: if you ...
NomineVacans's user avatar
0 votes
1 answer
220 views

Hi I was making a program that simulate a bunch of balls bouncing, but the problem is some balls got stuck to the floor. Since it's a logic error, it is kind of difficult to find. Can someone help, I ...
vincent thorpe's user avatar
0 votes
1 answer
92 views

Question How do we track the position of child objects, relative to a parent? Context I have a simple structure that keeps track of a point in space, along with zero or more children: ...
rodrigo-silveira's user avatar
0 votes
1 answer
113 views

So I have a simple Character class: ...
Mahi's user avatar
  • 105
0 votes
1 answer
341 views

I am loading the object from my json file. ...
aryeh's user avatar
  • 101
0 votes
2 answers
179 views

I've had formal education in Java for around half a year now, and as a hobby I would like to attempt game development. I've downloaded the Slick2d library to help with this. I've run into a problem ...
user3500869's user avatar
0 votes
1 answer
6k views

I want to have one material applied to multiple objects that has a random color on each object. How can I achieve this so that I don't need to use a different material for every object? This is in ...
mr-matt's user avatar
  • 2,779
1 vote
1 answer
5k views

When you pick an item in the inventory and drop it to obj_item_ground, this item is send to the ground. That's fine. I want to add a delay to this item to destroy ...
guish's user avatar
  • 15
3 votes
2 answers
7k views

I've noticed with some functions in C++ that accept objects (e.g. constructors), you can actually create the object within the function argument e.g. (this example uses an SDL_Point as the main ...
nathanburns's user avatar
  • 1,153
1 vote
2 answers
161 views

I'm making a game in which I have different weapons. One of them is a hand grenade. Well, the question is: I made an animation with mecanim (I don't know if is the correct way) with the grenade being ...
Jordi4321's user avatar
  • 147
12 votes
1 answer
2k views

I am creating a randomly-generated environment for a game I'm developing. I am using OpenGL and coding in Java. I am trying to ...
wcarhart's user avatar
  • 245
1 vote
1 answer
1k views

When building game objects in a 3D modeler like Blender I'm finding it's easier to get greater detail and still have fewer vertices if I separate certain elements. For example, I need to make cuts ...
Lemming's user avatar
  • 13