4,082 questions
-1
votes
0
answers
14
views
I have written simple game in python. Now, I want to share this game in my LinkedIn network, so my connections can play this game. How can I do that? [closed]
I want to host Python code on the server. After hosting a game on a server, I want to share its link to my connections in the LinkedIn network. My connections can click on the link and play the game.
...
0
votes
0
answers
30
views
How should I configure a pathfinding algororithim for my new level generation program
my problem is that I have a 2D array like this:
[["#", "#", "#", "#", "#", "#", "#", "#", "#", "#&...
-2
votes
0
answers
33
views
How to Track and Detect When All Obstacles Are Destroyed in a Brick Breaker Game? [closed]
In my brick breaker game, I need a way to track all the obstacles. Once all the obstacles are destroyed, I want to display a 'Level Complete' panel. What is the best and most efficient method to track ...
1
vote
2
answers
37
views
How can I resume a paused motion in Incisor?
I'm working on a project where I set a graphic object in motion, then pause and resume it after specific time intervals. However, I’m having trouble with the resume functionality.
Here’s a simplified ...
-1
votes
1
answer
35
views
Unity + C# bouncing animation
I'm currently working on a slot game in unity and what I'm trying to achieve is that once the reels stop spinning, the symbols bounce a little bit up and down before they come to a full stop.
In my ...
0
votes
0
answers
18
views
Unity Null reference exception when referring to Serialized GameObject in another class [duplicate]
Edit: I know this looks like a duplicate, but I understand that a Nullreference exception happens as I access an object that hasn't been set, or is null. However, I simply don't understand why any of ...
0
votes
0
answers
9
views
Sprite change slow is slow with only the upward directional movement
For some reason when building the character controls in Godot(GDScript) I found that while walking upward and turning left and right. The sprite takes a little while to change, making the controls ...
1
vote
0
answers
49
views
How do i make a pause-function work in my WinForms game? [closed]
I'm doing a game in C# using WindowsForms which is like Flappy Bird one, but there is a flying mouse instead of a bird. I need to implement a pause function there. I wrote a code which supposed to ...
0
votes
0
answers
57
views
How can I pass a generic function to a class in C#
I'm currently working on a Entity Component System (ECS) for a game I'm developing in C# and Monogame.
My GameObject class has a dictionary with all its components, and this method is written to ...
1
vote
1
answer
54
views
How do I make an algorithm for tracing lines given a set a points?
I need an algorithm to position lines on a set of points in a 2D environment. The algorithm should identify collinear points within a specified tolerance and place lines accordingly. Each resulting ...
0
votes
0
answers
59
views
Make objects move along a drawn path (C++)
I'm programming a game that have a feature allowing player to draw a path. And that path will be used to navigate object to move on it. I'm having a problem with the speed of the object. If players ...
0
votes
0
answers
9
views
Unity - Shader Graph & Sorting group Error
I have a question about Unity's Sorting group and Shader Graph.
[interactive 2D water] (https://youtu.be/TbGEKpdsmCI?si=79lD21CmRytbruJF)
I created interactive water after watching this video and ...
0
votes
2
answers
58
views
Implement collision detection in a Pac-Man game in JavaScript [closed]
I’m building a simple Pac-Man game using JavaScript. The game features Pac-Man navigating a maze, collecting points (dots), and avoiding ghosts. Pac-Man moves using arrow keys, and the game updates ...
-6
votes
0
answers
23
views
"Cards in my flip card game flip back even when they match, despite correct data-type values and console logs. How can I fix this?" [closed]
I am building a flip card game where players match pairs of cards by flipping them over. Each card has a data-type attribute to identify its type. When two cards are flipped, my JavaScript code ...
2
votes
1
answer
52
views
How to instance scene in Godot but with C++ module?
I try to rewrite my Gdscript logic to C++ with modules way. There is no any issues if I load resource with line:
Ref<Resource> cpp_sprite = ResourceLoader::load("res://CppSprite.tscn");...
-4
votes
0
answers
47
views
how to reprint game obj on screen when players walks through it [closed]
im making donkey kong using cpp (no engine or graphics , just using the concule as the map and obj are printed chars)
so mario can climbe ladders and barrels can roll through them
(for how ladders ...
0
votes
1
answer
10
views
How do I dynamically alter the speed of a GraphicObject in Incisor?
I am attempting to dynamically alter the speed of a GraphicObject in motion in Incisor. I have a speed property initialized to zero. I add motion, using the speed property as my motion speed. Then, I ...
0
votes
0
answers
24
views
can I use this code to help improve playability of my game and how do I change it to make everything work as intended? [duplicate]
this code checks what key is pressed and uses that to change the outcome of the game(you know what I mean). I tried a couple of different ways of controlling this and nothing happened. I have ...
0
votes
0
answers
38
views
How do I get a player controlled character walk on ceilings and walls in UE5?
I'm trying to develop a locomotion system for a spider game that will allow the player to walk on all surfaces (floors, walls, ceilings, etc.) seamlessly using an Unreal Engine Blueprint. Right now I'...
1
vote
1
answer
52
views
Detecting when a bullet hits an enemy
If just recently started using godot and ofcourse I can't even figure out the simplest of problems. I'm making a simple arcade shooter and I am trying to get the bullets to detect when they've hit an ...
0
votes
0
answers
20
views
How can I add 3d collision in an isometric tile map in Monogame
So I'm trying to add a 3d collision in my 2d isometric collision. I want to use Vector3 to help me. The z position will be the depth. But i tried it and it does not work. Is there any way of adding a ...
0
votes
0
answers
25
views
Unity mlAgents not connecting to Unity
I followed a tutorial on how to set up mlagents in unity and that all mostly went smoothly. I got a simple scene set up like this:
With 3 Walls that reset the Episode and give a negative reward and ...
0
votes
0
answers
25
views
How to Detect Adjacent Faces on Static Mesh in Unreal Engine 5?
I'm developing a game in Unreal Engine 5, and I need to create a spider locomotion system that allows the character to walk seamlessly on all surfaces, including walls and ceilings. Here’s what I’m ...
0
votes
0
answers
11
views
How to display variable from backend into a dialogue made using Dialogue Manager by Nathan Hoad
I am using Dialogue Manager by nathan Hoad in my godot project and instead of hardcoding my dialogues i want to fetch the dialouges from my db and display it
~ Villager Chinu: Where am I? Villager: [[...
0
votes
0
answers
37
views
How to combine intersecting static meshes into a single mesh?
I'm new to Unreal Engine and trying to make a spider locomotion system that works similar to a Navmesh except it applies to all surfaces (walls and ceilings included) with the goal being that the ...
-1
votes
1
answer
42
views
Huge amout of FPS fluctuation in SDL2 game [closed]
I started making a game in C using SDL2 library. I just got the classic rect moving on a blank screen, and used the following to calculate delta_time :
Uint64 now = SDL_GetPerformanceCounter();
Uint64 ...
0
votes
1
answer
22
views
SKImage loading image but drawing it as blue, when it has yellow color
Issue
When drawing a PNG image, it is drawn with a blue tint.
Code
updated to include how the canvas is created
SKImageInfo info = new SKImageInfo(2000, 2000);
SKBitmap bitmap = new SKBitmap(info);
...
0
votes
0
answers
33
views
Unity Asset Rendering Distance
So I have some low poly assets I am struggling to get rendered in the distance. They appear Dark Blue. As you can see, the ones closer, render correctly. They only render in the correct color the ...
0
votes
2
answers
42
views
2D Canvas JavaScript | How do I draw a circle in canvas that is set to a defined number of degrees?
I simulate an interactive view for a player. As long as a component of the game is within the view width, it should be possible to interact with it. With my code, it is not a problem to play the ...
0
votes
1
answer
32
views
How to pass an object into a class that references other objects to change their values
I am making an idle game library for my use and I am unsure how to go about creating a system that takes pairs of resources and amounts, checks if they are available, and if so then adjust all the ...
0
votes
1
answer
21
views
What should I do to prevent the enemy from falling off the platform?? Godot 4.3
I am have my enemy Slime in my game on Godot.
This is his code:
extends CharacterBody2D
const SPEED = 35
const SPEED_FOR_DETECTED = 45
var hp = 100
var player = null
var player_chese = false
var ...
0
votes
0
answers
21
views
Isometric collision detection error in Monogame
So, I have this problem where the collision does not work properly. I tried many techniques. The red tiles were supposed to show the collision with the green tile. The problem is when I try to convert ...
-2
votes
0
answers
43
views
Pygame Backend to dearpygui
I want to translate my pygame game backend for my 3d engine to dearpygui, to have an gui for the editor, but it doest work with my opengl renderer
import os
import pygame
from pygame.locals import *
...
-1
votes
1
answer
51
views
Abstract class design for a menu system in Unity: Static vs Dynamic Menus [closed]
I'm designing a menu system in Unity and need help validating my approach to ensure it follows the SOLID principles, particularly the Liskov Substitution Principle.
The system consists of:
A BaseMenu ...
1
vote
0
answers
16
views
How can I solve the virtual line problem I created with RayCast2D?
I want to make a Bubble Shooter style work with Godot Engine 4.3 and I need to draw a virtual line during launch. First, I created the RayCast2D node and added 2 Line2Ds as “LineOne and LineTwo” as ...
0
votes
1
answer
75
views
Why does my character stop on nothing in my 2d unity game? [closed]
While walking in my 2d platformer my character with a square boxocollider2d will sometimes stop on seemingly nothing. It could sometimes be because it is hitting another box collider set to a trigger.
...
0
votes
1
answer
37
views
Problem with Changing Text and Background Colors in Incisor TextBox
I'm working with an Incisor TextBox and having trouble changing the colors. It seems that I cannot update the text and background colors independently. Here’s the code I’m using:
class ProjectMain {
...
0
votes
0
answers
17
views
Player swinging slowly with Distance joint in Unity 2D
I’m making a grappling hook with a distance joint in my 2D platformer game. However, the player is supposed to swing fast when they hook onto an object, but instead, they are swinging slowly.
I tried ...
0
votes
0
answers
55
views
ld: unknown options: -T
Recently, I've been trying to make a PS1 game using CMake and psn00bsdk. For some reason though, it fails:
ld: unknown options: -T
This is my CMakeLists.txt
cmake_minimum_required(VERSION 3.21)
...
0
votes
0
answers
50
views
How to Ensure Sequential Player IDs in Photon when Players Join/Leave a Room (Without Gaps in IDs)?
I'm working on a multiplayer game using Photon in Unity, where players join a room and spawn at specific positions based on their ActorNumber. However, when a player leaves the room, and a new player ...
0
votes
1
answer
34
views
Incisor Masking
I’m trying to understand masking in Incisor and have run into an issue with a simple proof of concept. I have two white box GraphicObjects and want one to mask the other.
Here’s what I’ve done:
...
0
votes
0
answers
29
views
Unity2d Custom Made Sprites Imported In The Engine Lose Quality
I created a PNG image of slime with a size of 360x360 pixels in Krita, dragged it into Unity2D Editor, resized it to 0.3 on the X and Y axes, and it immediately got pixelized... How can I fix that?
I ...
1
vote
0
answers
32
views
How to Use AGDK GameActivity or NativeActivity for Android Game Development in Visual Studio 2022?
I want to develop an Android game using AGDE in Visual Studio 2022. What are the steps required to use the AGDK GameActivity? Additionally, if I choose not to use GameActivity, how can I use ...
0
votes
1
answer
66
views
I have an issue with the android SDK
So I recently got a meta quest 3s, and I am trying to make a game for it. I have made one in Unity, but when i export the APK and put it into the Meta Quest Devloper Hub app, i just get the error
...
0
votes
1
answer
34
views
Trouble triggering an Incisor app event with more than one argument
I'm having trouble triggering an Incisor app event with more than one argument.
The console output:
spinResult Defined
spinResult Callback Added
5
undefined **(I expect this to read "7777"...
1
vote
0
answers
48
views
The rule for opening empty cells in the game Minesweeper in Prolog does not work
I have developed a minesweeper game in Prolog language. I am a student and this is my project on the subject of AI. I created a knowledge base, and the rules by which the game should be played. The ...
0
votes
0
answers
20
views
How to access and set a parameter into a a transition in an AnimationTree?
I'm trying to access and set the xfade_time parameter in an specific function with different value, but I can't find the way to do it. I found a method that requires the ID of the transition but there ...
0
votes
1
answer
29
views
Jump Buffering and Jump from Higher Platform Problem
I have implemented Jump Buffer into my code however it only works every now and then. I couldn't figure out the problem. I tried to send a debug message to see if the jump has been buffered or not.
...
2
votes
2
answers
127
views
What are the benefits of using two containers of shared_ptr over one of unique_ptr and the other of raw pointers?
I'm working on a game, represented by the Game class, which owns every GameEntity and stores them in a container.
However, for convenience my Game class would also like to have a dedicated container ...
-1
votes
1
answer
27
views
unity sprite and uı scaling
there are problems with the sprites I added to the screen (UI) in Unity. For example, there is a button and 2 sprites on the death screen. The button appears while the apk is running, but the sprite ...