146 questions
-3
votes
1
answer
35
views
Unity initiate issues
In my Unity Project when my game runs my world item prefab initiates sprites that don't show on my inventory display only the canvas that can't be seen on screen and it doesn't spawn any collectable ...
0
votes
2
answers
79
views
When I use pick_random on my array, how can I prevent picking the same element twice?
I'm working in something on godot engine 4. I create code to spawn objects in different parts of the screen. But I try to prevent to generate items in the same coordinates twice.
How I can do it?
...
1
vote
2
answers
45
views
How do you spawn prefabs so they come 1 by 1 and that I can remove the bandit in the hierarchy?
I want to multiply my prefab (bandit) every few seconds, but if I remove my prefab in the hierarchy it is no longer spawned. I put this in my project view as prefab but this doesn't seem to work. The ...
0
votes
1
answer
96
views
After restarting the game it does not spawn the targets
After i press restart button game restarts but it does not spawn the targets
when i first start the game it works but after restarting it does not spawn targets, cursor should also disappear and turn ...
-2
votes
1
answer
72
views
How to distribute prefabs evenly around a space in Unity2D? [duplicate]
Hello I am currently making a 2D topdown game in unity, in which I want to randomly generate trees and rocks throughout my map. Both are prefabs that you can interact with.
This is my current code. I ...
0
votes
0
answers
50
views
Unity Network Spawn not sending custom settings
PROBLEM SOLVED thanks to hijinxbassist
In the below codes i changed the SetUp function to SetUpClientRpc and called it after i spawned the tiles.
I'm trying to create a grid through the network, and ...
0
votes
1
answer
273
views
GDscript spawner
So i just started working in godot 4 and i have to make a project for school. i chose to make a tower defense game like perfect tower 2, but now im having a problem. i have been watching a lot of ...
2
votes
0
answers
170
views
Node.js express static running multiple processes
I have a simple Node.js express app that just serves some static files.
const express = require('express');
const cors = require('cors')
const app = express();
app.use(cors())
app.use(express.static(...
0
votes
2
answers
51
views
I have a question about a YT tutorial because I wanna customize it a little
in this video, https://youtu.be/klBvssJE5Qg I shows you how to spawn enemies outside of a fixed camera. (this is in GDscript by the way) How could I make this work with a moving camera? I wanna make a ...
0
votes
1
answer
271
views
How to create a winning condition when a certain number of game objects have spawned
I am trying to get my 3-D Tic-Tac-Toe game project to work, I have game objects which are named cells that are instantitated I press OnMouseDown() click it makes a cell object spawn in its grid space. ...
0
votes
1
answer
580
views
how do i make an objects continuously spawn on kaboom.js
When I shoot the asteriod they disapear which is what i want however I want more asteriods to spawn instead of them just disapearing forever.Im not sure what to add in this code to make more spawn ...
-2
votes
1
answer
289
views
How to set the limit to a spawner?
I have a question. Im trying to create a spawner with max limit of 4 spawns. But if a spawn is destroyed I want to start the spawning again up until the number reaches max again. Below I have the code ...
1
vote
1
answer
1k
views
How to spawn an async function in Flutter?
How an I spawn an Isolate blocking on an async function in Flutter?
I tried dart:cli's waitFor function, but it seems that dart:cli does not work together with Flutter.
0
votes
2
answers
353
views
Enemy Spawner While Loop Not Spawning Correct Number Of Enemies
I am trying to automatically spawn a desired amount of enemies within an area, which is currently a test area. The idea is that if the current amount of enemies are less than the amount of desired ...
0
votes
1
answer
51
views
GameObject can't be found once per frame, even though it exists
at the moment I am creating a wave based game but I have a problem when it comes to checking whether all the enemies were killed. I have three different Enemies with the Tags "Enemy1", "...
0
votes
1
answer
315
views
Respawning enemies on player death
I have a class, where my enemies spawn at the start of the game. When my player dies, I wanna call the spawn class again to let the enemies spawn again. But when I do so, nothing is happening.
public ...
1
vote
1
answer
53
views
Algorithm for controlling possibility-space within item spawning
I have trouble finding a good solution (and a good title) to the following problem:
Say I have a blueprint of a sphere. This sphere-blueprint contains an array of unique colors. Each sphere will take ...
0
votes
0
answers
2k
views
Creating Static Meshes in For Loop using C++ with unreal engine
this is the fix at top
use this to create a string that Static Mesh Object can accept as a unique identifier so the engine doesn't crash
FName name = *FString::Printf(TEXT("Sphere %i"), i);
...
0
votes
1
answer
1k
views
How do I get the respawn system working in Unity 3D?
I'm working on a 3D game in Unity where you die if you fall off the platforms. The aim is to respawn after you fall off a platform. At first it worked, but after I made a completely new movement ...
0
votes
0
answers
3k
views
How, when and where the Unreal Engine loads actor's assets when you spawn it by SpawnActor?
I'm trying to undestand when and in which thread Unreal loading assets of Actors. I have Spawner that call's SpawnActor for different actors (which have Meshes, Sounds, etc) in the game thread in ...
0
votes
0
answers
27
views
Creating a Queue using Vector of Threads in C++ [duplicate]
I would like to push elements into a queue using vector of threads, but am getting an error: no matching constructor for initialization of thread. Can you please help me to fix it.
#include <thread&...
-1
votes
1
answer
378
views
Unity 2D Help - Random Spawining Of Asteroids Without Having Them Spawn In Camera View [closed]
I'm currently making a "free roam" 2D space game from a birds-eye view.
I am trying to randomly spawn in asteroids around the scene so that they can be used to collide with ships, although I ...
1
vote
2
answers
560
views
I want to spawn Enemy's in random position in given area. I don't want to spawn my enemy's in random position anywhere like top of obstacle and such
Currently I am using random positions outside of camera view to spawn my enemy.
I want to spawn my enemies in selected areas:
How can I do that?
0
votes
1
answer
288
views
bash: how to see real time output from spawned script
Consider the following scripts
#!/bin/bash
# fee.sh
echo "fee"
#!/bin/bash
# foo.sh
echo "foo"
./fee.sh &
Now execute the foo script.
$ ./foo.sh
foo
Only the output from foo....
0
votes
1
answer
66
views
I want to spawn multiple cement block sprites. I already have the random x coordinates that I want them to spawn from
When ever I run my code I just see the one cement block sprite falling from the top of my pygame window. Thats exactly what I want except I want an infinite amount of cement blocks falling from the ...
1
vote
1
answer
329
views
Locust - how to delay collection of RPS data until all threads have started
Scenario
locust test with gradual spawn-rate, chart looks like a 45-degree angle.
I would like to know the RPS of the system while all threads are running.
The out-of-the-box RPS value from locust ...
0
votes
1
answer
5k
views
Spawning blueprint does not spawn anything (UE4)
Here's a problem: my goal is to have a ball game with obstacles. I made two obstacles (cubes with triggers) and the spawner code does not spawn them - nothing at all. It does compile without errors, ...
-2
votes
4
answers
3k
views
In Unity how can I set a value to property while initializing a prefab with Instantiate() method like OOP constructor with parameters?
I am a newbie in Unity and game development. I want to make a mobile stack jump game with primitives. I have a player in the center of the screen. The enemy is approaching the player from the right ...
1
vote
1
answer
4k
views
How can i spawn Objects randomly in a given area?
So im building a small Bulletgell game, and im at the point where I want Enemys to spawn in at random Spawnpoints in a given area. I did that with help of the BoxCollider2D, everything works fine but ...
3
votes
2
answers
6k
views
Bash: spawn child processes that quit when parent script quits
I'd like to spawn several child processes in Bash, but I'd like the parent script to remain running, such that signals send to the parent script also affect the spawned children processes.
This doesn'...
0
votes
1
answer
744
views
How can I get enemies to spawn in Godot and be attracted/travel to a static point?
I am having trouble with path2Ds. So the enemies spawn at intervals as per the "your first game". However, what I want is for them to spawn and move towards/go to a stationary character or a ...
1
vote
0
answers
206
views
Spawning gameobjects using Vector mathematics in Unity?
I'm developing a video game in Unity and I have come across a vector mathematics problem designing one of the levels. I want to spawn two rectangular blocks attached to each other parallel to the ...
0
votes
1
answer
2k
views
How to spawn a new Python child process in Node.js after the first one ends?
I use the output of a Python script in my node.js app.
However, I need to query it another time (and, possibly, several times).
I cannot do this because the Python process ends and cannot be restarted....
1
vote
2
answers
584
views
How to implement random enemy spawns libgdx [closed]
I am a beginner in Libgdx and I have a simple Galaga type game setup where the player earns points through waves with different level enemies with various stats. The player can then upgrade certain ...
1
vote
2
answers
101
views
Not sure how to clear concurrentModificationException [duplicate]
Trying to understand why I can't create a new object. I have one spawning object that comes up slowly and once it is done with frame 5 it is supposed to spawn a new object and die. It is throwing a ...
-1
votes
1
answer
109
views
How do i set the max. amount of existing prefabs and also despawn Prefabs floors in Unity after the player passes them?
So here is the code, right now i only spawn each frame x Prefabs (Its a simple Game im new to unity so the player is a ball and dodges stuff etc. So i have an amount of prefabs (Floors) that is ...
1
vote
0
answers
102
views
Conversion of Python code to C having "pexpect" functionality
Due to memory constraints I need to convert some Python scripts to C.
In my script they used a module called "pexpect" which allows spawning child applications and controlling them ...
0
votes
1
answer
113
views
Why is my multiprocessing program spawning processes infinitely?
import time
from multiprocessing import Pool, RawArray, sharedctypes
from ctypes import c_int
def init_worker(X):
print(f"{X}")
def worker_func(i):
print(f"{X}")
time.sleep(i) # Some heavy ...
0
votes
3
answers
5k
views
Photon Network Spawn Players At Different Points
I am trying to make an RTS game using Photon Networking For Unity. What I am trying to do is depending on the players in the specific room (2 in this example) all the players spawn at a different ...
0
votes
0
answers
2k
views
Angular how to make mde popover spawn next to element instead of above or below
I'm working on an Angular project and was wondering if someone knows if it is possible to make a mde-popover spawn next to the hovering element instead of above or below it.
So far I haven't been ...
0
votes
0
answers
136
views
Weird behaviour with FVector
I have a little code snippet in UE4 c++ that is supposed to give me a bunch of FVectors in a grid.
However, printing out the FVectors gives me (0,0,0) every single time
FVector deltaLoc;
float xGap = ...
0
votes
1
answer
47
views
Why can't these gameobjects instantiate in Unity3D?
In the below code snippet I'm trying to instantiate gameobjects at different probability rates but I keep on getting the following error:
No appropriate version of 'UnityEngine.Object.Instantiate' ...
0
votes
2
answers
58
views
Restart obj number on enable
I am spawning objects on startup,(maxObj = 75) then destroying Obj's on event and disabling spawner Obj. When player wants they can re enable spawner. I need count to start at 0 on enable. Another ...
0
votes
2
answers
93
views
Python 3 program to launch and track completion of a different program
I'm writing a python 3 program that will start another python program to process files. I need the main program to keep an arbitrary number of processes running at any time. I'll read the arbitrary ...
0
votes
1
answer
3k
views
How to trigger join player action?
The 2019 input system package provides a component called Player Input Manager. It has the option Join Player When Join Action Is Triggered" as Join Behaviour. How Can I trigger that action? I can't ...
0
votes
1
answer
409
views
How do I make my enemies spawn randomly between 4 different Vector3 positions?
I am currently creating a game where the player is on a square platform and I want the enemies to spawn randomly from the four edges of the platform. So far I am able to make my enemies spawn randomly ...
2
votes
2
answers
109
views
My spawning system doesn't work and I dont know why
In simple words my spawning system doesnt work
I am making a dodge the blocks game and I want 1 out of 5 spawnpoints to be empty so that the player can dodge the others. Of course that spawnpoint is ...
0
votes
1
answer
1k
views
How can I make an instance of the same Prefab behave differently from other instances in my game?
I'm currently developing a game in Unity and I had a question. When spawning a new clone of a prefab that I created I want the instantiated game objects to move to the position that another gameobject ...
0
votes
1
answer
2k
views
UE4: Still spawning an object, even though I set it to 'Do not spawn'
I want to add an object reference to an array in unreal blueprints, but I don't want to spawn it in the level. Is this even possible?
I tried setting the collision override to 'Do not spawn'. But it ...
-1
votes
1
answer
67
views
I want my spawned players to be able to overlap with each other(without layers)
I have a unity-c# code that will spawn player on position(0,1,0) on start. I want them to be able to overlap on the same position.
Right now my code only spawns 1 player. but when I drag another one ...