All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

Facing issues trying to Parse JSON in Lua

Problem statement: Need help trying to load a JSON file into a table array in Lua for Corona SDK development. My Objective: Call specific data from JSON file to my application by using key value ...
0
votes
0answers
13 views

Color bands over tile when scaling texture in shader

I want to have tiles with different sprites on the back. Initally I thought I will mix two textures together and then apply mixed texture to game object. I thought that should be easy, but google ...
0
votes
1answer
33 views

How do I create a single tile in Unity 2019+

I going through the "Ruby's Adventure: 2D Beginner" tutorial, chapter 4, section 3 with Unity 2019.11. In the tutorial you create a folder for tiles and you are then supposed to right-click in the ...
0
votes
0answers
19 views

Converting heighmap coords to world coordinates, or Masking areas of terrain for object spawn systems

My terrain already exists, and has been painted. I'm trying to mask out areas of my terrain so I can "zone" object spawns. For example, I want to spawn branches and logs randomly on a beach over time ...
0
votes
1answer
47 views

How to load large arrays to gpu and render with OpenGL?

I am trying to make a volumetric rendering of a cloud. I have been defining the cloud density functions on the glsl shaders and performing ray-marching methods successfully. But now I would like to ...
0
votes
0answers
13 views

How can I make simple launcher for FiveM server?

I would like to know how to create simple launcher for FiveM server. I don't need help about UI, design, etc. only script when someone clicks 'Play' it connects him to server. Thank you very much!
0
votes
0answers
3 views

Twine Harlowe: How to call a variable in a passage link?

However, you can't put commands or changers in the passage name. [[Really, now.->(print:$explain)]] will cause an error. https://twine2.neocities.org/#macro_transition I'm unsure if this is ...
0
votes
0answers
35 views

3D terrain generation with overhangs/caves

3D terrain with 2D noise function as heightmap is kind of 'easy'. Make a plane and adjust height based on the noise. How would one start working on 3D terrain with overhangs/caves? There are some ...
1
vote
0answers
45 views

How can I cut a doorway through my wall at runtime?

I am working on a Unity project where I have 3 models: a stacked, rounded wall (think logs), a flat wall (think bricks), and a door. The door has an animation to open / close itself, and when it's ...
0
votes
0answers
28 views

I need a develper [on hold]

Hallo i need a developer for a tap game if some wone interest dan go to my discorde server Link: https://discord.gg/HXa754e
0
votes
0answers
18 views

Animations suddenly not working at all

I have three animations, "ShowHit", "WarningFadeInAndOut", "ShowGameOver". They were worked when I was made, but suddenly only "ShowHit" is working. I double checked the logic was correct so that it ...
0
votes
0answers
40 views

Rolling a circle around a square

I am stuck on a simple Box2D task. I have a box and a ball (in top-down view so no gravity), and I would like the ball to roll around the box. Here is my code. Basically now I am trying to detect ...
0
votes
1answer
22 views

Unity Error importing any video clip

When I try to import a video file to play in a VideoPlayer component, I get the following errors in the Console: ...
0
votes
0answers
30 views

The doors lock system is working fine but how can I avoid changing the colors all the time in the Update?

I want it to change the doors lock state but also the colors of the doors Red = locked Green = unlocked either in editor mode or in runtime. But if the method that change the doors colors is not ...
0
votes
1answer
14 views

Stop current animation and re-play immediately?

When the player hit something, I'm playing hit animation from animation_player. However when player hit something while hit animation is playing, it just ignored and play previous hit animation. I ...
1
vote
0answers
37 views

how to make a seemingly endless backdrop in Unity

Potential solution at the bottom. I have a rocket which flies straight up, as it gets higher you can see the edge of the terrain. I want the rocket to eventually leave the atmosphere and then the ...
0
votes
1answer
34 views

c++ sdl2 : how to pass renderer through classes

iam making a game with SDL and c++ iam trying to render simple image to the screen but i can't iam not getting any ERROR but i see only black screen here is my code i think because the renderer in ...
0
votes
0answers
26 views

'namespace “std” has no member “string”' error in a C++/SFML project(Visual Studio 2019): [on hold]

I'm recently learning to make a 2d game in SFML using a tutorial series on youtube by Suraj Sharma(currently at video 57): https://www.youtube.com/watch?v=kwd_AVCkvXE&list=PL6xSOsbVA1ebkU66okpi-...
0
votes
0answers
14 views

Multi pass Surface - erro syntax

I'm trying to make a multiple pass using two [blending] for each one, but he accuses in one place, there is nothing, I don't understand why Parse error: syntax error, unexpected TOK_PASS, expecting ...
0
votes
0answers
34 views

Questions about Jrpg NPC events (Unity C#)

So, I'm trying to wrap my head around something. I've got my basic quest system up and running for my rpg style game. Right now I'm taking a look at NPC events and triggers that as I see it have two ...
0
votes
0answers
20 views

Best way to program 'classes' that can apply and cancel status effects [duplicate]

Imagine a game like League of Legends. A player can play choose a 'class' to play as. Their in-game character has the class equipped, and the class defines what abilities can be used. These ...
1
vote
0answers
26 views

Representation of trains on a simplified rail grid

I'm working on a hobby game, basically about train dispatcher's job. (stack: Typescript, phaser.js) My map is based on a grid, each tile can hold 1 rail tile (well, except junctions, but we can ...
0
votes
2answers
93 views

Parsing “pick up” action in a text-based RPG

I’m coding a text-based RPG and I have my controls working: I have a string checking what you write in against an array of if statements. It can get it right with ...
1
vote
1answer
9 views

body_entered signal won't emit when rigidbody collided to rigidbody

I have multiple rigidbody object floating away in the space. When they hit each other, they push away each. I want to destroy object if they hit something, but connect body_entered signal won't ...
0
votes
1answer
35 views

FMB alteration based on derivative and noise value

I'm still working on my procedural terrain generation and kind of sniffing ideas from Sean Murray (No Mans Sky programmer). So I watched this GDC17 presentation, but some things just don't make sense ...
0
votes
0answers
42 views

Can't load textures to the game

I am making a game with SDL and C++. I am trying to render simple image to the screen but I can't. I don't know why, I am not getting any ERROR but I see only black screen. Here is my code: game.h <...
1
vote
1answer
41 views

Optimizing spawning 500 objects every 3 seconds

Using Object Pooling, assuming I'll like to spawn 500 cubes once every three seconds. How do I make it performance friendly? I need ideas, not the code itself.
0
votes
1answer
34 views

Derivatives usage in FBM core

So I learned now about derivatives and fbm, but can not figure out the effect of this code example (credits https://www.iquilezles.org/www/articles/morenoise/morenoise.htm, bottom of page): ...
0
votes
0answers
8 views

Best way of creating screen sized window of level in a platform game? [on hold]

If in a 2d platform game the level data is stored as a 2d matrix. What is the best method of creating a screen sized window for the level, as seen in most platform games. Dont be language/engine ...
0
votes
1answer
24 views

When I press play in my scene, the camera turns in the opposite direction?

In my scene, I have my character facing a certain direction, with a camera attached. Now, when I press play, for some reason, the character immediately faces the other way. I've tried turning the ...
0
votes
0answers
13 views

Unity 3D Google Play Services error when building for Android on API level 29

Unity 2019.2.11f1 has been giving me error when I select the API level 29 (Game does not build and while playing throws an error message mentioned bellow). I tried many Unity versions, updated Google ...
0
votes
0answers
16 views

Unity game layout problem for high-aspect Android screens

I'm trying to port over a card game I wrote some years ago into Unity (2D, Orthographic). The game objects are placed correctly when I build and run in Windows, Linux, and Mac, for all the different ...
0
votes
1answer
21 views

How to make a new powerup reset the WaitForSeconds from previous powerup?

I'm making a game where the player is pushing objects outside a plane. Every round there's an additional ball (GameManager.cs): ...
0
votes
1answer
22 views

How can I adjust the direction of my rigidobody.velocity without stuttering?

Stuttery movement has been plaguing me for the whole development of this project. Some info on the game: It's a 2D, top-down space game, and you control a spaceship that can accelerate or rotate. If ...
0
votes
0answers
23 views

OpenGL object load in reverse

I am trying to load a model and it is loading it in reverse. When I am trying to rotate it 180 degrees it changes the lightning as well. I am not sure what I need to do to change the position that eh ...
3
votes
1answer
49 views

How do I build the dependency graph on ECS?

ECS is excellent at decoupling: you split your game logic into multiple pieces, and every system is responsible for dealing with a specific piece. However, I don't know if each system should be aware ...
0
votes
0answers
21 views

Unity change scene with button

I already understand how to do this but the problem i'm having is: When i go from "MainMenu" to "Level01" and then back the buttons lose there reference. What can i do to fix this? ...
0
votes
0answers
21 views

Zooming into generated map

I have generated a 1024 X 1024 heightmap using Open simplex noise. Now i want to zoom into a 64X64 area. Every pixel in the 64X64 is not 16X16 on the larger scale. I tried just generating the area, ...
0
votes
1answer
18 views

How to stop counting point when player dies (Destroy)

In my game, I'd like to stop counting points when the player's y is -4. When the pink and red balls fall off the Plane the player gets points. But it seems a bit strange to be able to collect points ...
0
votes
0answers
13 views

Why aren't my libGDX config.x and config.y centering the window on my screen?

My window always shows up in the bottom... near right side. DesktopLauncher : ...
0
votes
0answers
42 views

Drawing a snake

I'm a junior programmer who wants to try the MonoGame DSK to create some basic games. I'm using C# language and VS17 and I'd like to know some things before starting. Let's begin by saying that this ...
0
votes
1answer
17 views

How to avoid game starting before start button is clicked?

I've made a game with a Title Screen (Canvas), and a Start Button attached to the Title Screen. Points, GameOver, Restart, and even the Start Button sort of works, but it's possible to play the game ...
0
votes
0answers
10 views

UE4.23 - Cast of child of GameUserSettings fails

I've derived GameUserSettings to add a bunch of custom properties to it. I tried making accessible in blueprint by creating a static method that returns the current GameUserSettings cast to my Child ...
1
vote
1answer
26 views

Should fields in components in an ECS use polymorphism?

I've just started to try and learn how to use ECS (Entity component systems), but I'm having trouble understanding the concepts behind components. Should adding more types of components, or trying to ...
0
votes
0answers
4 views

Pixelshader required for mip mapping to work, DirectXTK

For a C++ .dll project of ours, I am trying to work my way towards understanding the rendering pipeline in conjunction with the DirectXTK...quite a long and rocky way. I came so far as to being able ...
0
votes
1answer
13 views

Can't change anchor position and TextureRect size

I'm making UI, and want to set anchor to middle of the image, but changing anchor from Layout -> Anchors Only or setting Anchor value directly doesn't work. The value was updated, but anchor point not ...
0
votes
2answers
24 views

Issue with Canvas Background?

I'm preparing a 2d game. I'm working with particles, the problem is my particle is displaying on the obstacle and also a problem with level text see the reference image: and the second issue is when ...
0
votes
2answers
31 views

Recursively find neighbors

I'm making a Bubble Shooter game in Unity. I came to the point where I can hit another bubble and it destroys all of its neighbors. Now I'm trying to use recursion to destroy all of its neighbors ...
1
vote
2answers
25 views

How to wait until other script is ready?

I have two scripts, first is AsteroidSpawner script that literally spawns object named Asteroid, and second is HUD that control all UI related stuffs. There are some labels in UI, so I used onready ...
0
votes
1answer
13 views

Twine disabling style characters not working when using Harlowe format

According to the Twine documentation, if a word has asterisks around it, it's rendered in italics: Italics = *Italics* If I want to literaly show the asterisks, then I need to put some extra ...

15 30 50 per page