Questions tagged [spawning]

143 questions
2
votes
2 answers

Python script at Visual C++ 2005 build step not spawning other processes

I have the following post-build step in a VC++ 2005 project that calls a Python 2.5.1 script: postbuild.py postbuild.py does: import os os.system('cd') # cd is just a test, could be anything The process never starts, and it's the same with any…
2
votes
2 answers

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 random. I tried changing the numbers and looking…
2
votes
1 answer

Unity UNET- Can't spawn object with client authority

I have a problem where I can't spawn the selected object from clients. It works perfectly when the action is performed by the host, but not when a client attempts it. When a client attempts it, I get the following error: "SpawnWithClientAuthority…
2
votes
3 answers

for loop not executing code sequencially (swift + spritekit)

Here's my code: override func didMoveToView(view: SKView) { /* Setup your scene here */ let origin = CGPoint(x: CGRectGetMidX(self.frame), y: CGRectGetMidY(self.frame)) let delay = SKAction.waitForDuration(2.0) for (var i = 0; i <…
B. Holder
  • 37
  • 1
  • 4
2
votes
1 answer

Unity bullet spawn

Where the bullet spawns when I shoot Hi, for some reasons my bullet won't spawn where I tell it to. The spawn point is at the end of my barrel, I take its transform position and rotation when I instantiate the bullet, but it spawns higher than the…
Manu
  • 65
  • 1
  • 2
  • 8
2
votes
2 answers

Run a process as a synchronous operation from a Win32 application

I have an existing utility application, let's call it util.exe. It's a command-line tool which takes inputs from the command line, and creates a file on disk, let's say an image file I want to use this within another application, by running…
Mr. Boy
  • 60,845
  • 93
  • 320
  • 589
2
votes
1 answer

libgdx Temporary sprite movement after being spawned

public class Player { private Sprite enemy; public Rectangle bounds; private SpriteBatch batch; private float deltaTime; private float timer; private ArrayList enemies; private Iterator enemyIterator; …
Kevin Bryan
  • 1,846
  • 2
  • 22
  • 45
2
votes
1 answer

libgdx How do you draw or spawn a new sprite/object every second?

I'm trying to spawn a sprite or object every second, but what happens is that the sprite is only rendered for less than a second every second public class Player { private Sprite playerSpr,enemy,enemy1; public Vector2 position,size; public Rectangle…
Kevin Bryan
  • 1,846
  • 2
  • 22
  • 45
2
votes
2 answers

How to spawn enemies periodically

I am attempting to create a game where enemies will spawn randomly and move towards a point on the screen. My problem is that the program waits for them to spawn and them starts moving them. I want them to start moving as they spawn and have a short…
Filipe
  • 137
  • 3
  • 12
2
votes
2 answers

How do I spawn a new process while another process is running?

I am writing a shell script that will perform 2 tasks. One task will start up a program that must keep running continuously. Within the same script, the 2nd task is to be initiated that will start up another program. But when the first is running…
Cygnus
  • 3,222
  • 9
  • 35
  • 65
1
vote
0 answers

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('media')); app.listen(); But the app keeps…
Zakaria Ahmed
  • 54
  • 2
  • 7
1
vote
1 answer

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.
porton
  • 5,214
  • 11
  • 47
  • 95
1
vote
1 answer

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 on a random color of its color array after…
Florian Wolf
  • 171
  • 7
1
vote
2 answers

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?
HitesH
  • 21
  • 1
  • 3
1
vote
0 answers

How to spawn a child process and redirect its STD IO using named pipes?

I need to spawn a child process and talk to it over STD IO. I want to use named pipes to do so. The application that I am writing (which spawns the process) is in C++. Microsoft gives a good example…
Poulo
  • 1,551
  • 3
  • 14
  • 22
1
2
3
9 10