Questions tagged [spawning]

143 questions
1
vote
0 answers

Thread Spawning in Java

I am developing a service which figures out the freights and frequencies to deliver a product to the customer. The flow goes as below- I receive a request for a one item For every item I have 5 different Time Windows to check For every Time Window,…
Bhaskar
  • 337
  • 6
  • 21
1
vote
1 answer

Unity, get random position within an area?

as the image below shows, I would like to find a random position within the blue area (B) and not the red area (A). How can I achieve this? A and B are currently 2 colliders. I just need a position within B but it cant be within A. Thanks in…
1
vote
2 answers

Unity2d: enemies won't spawn at random spawnpoint

In unity I want when the game starts that the enemies spawn at a random spawnpoint (I made 3 spawn points in the game) but the enemies don't spawn at one of the points. what did I do wrong? Here is my code: using UnityEngine; using…
Jordi
  • 63
  • 1
  • 10
1
vote
0 answers

spawn console processes with redirected standard handles in powershell

I have started a process using System.Diagnostics.Process::start() with redirected stdi/o. This process creates another process. I want to redirect the stdi/o of the second process in powershell. Here is a sample code in which i am running a perl…
1
vote
1 answer

Need help looping the spawning of an object in AS3

For school i am creating a basic game in AS3 for mobile, basically all you need to know is that I need a rectangle the width of the stage(380) (height doesn't matter) to spawn up the top then after a few seconds another spawns, and this process…
1
vote
2 answers

SKAction repeatActionForever not spawning entity

Basically I have a spawn entity function that should in theory, spawn a random balloon onto the screen with certain properties. I have designed the method as such: -(void)spawnBalloon { int a = arc4random_uniform(self.frame.size.width); int…
TSwift
  • 38
  • 4
1
vote
2 answers

Running bash script with "spawn" in Node.js seems to pause halfway through execution

Heres a gist of what I'm doing: https://gist.github.com/MattCollins84/75f9ebd422ed6d1d5c91 As part of some process I generate a bash script that has a bunch of curl commands in it (around 20k commands). I want to run this script via node. I am using…
mattCI
  • 21
  • 1
1
vote
1 answer

Need enemyManager to wait between spawning enemies

I have a couple different enemy types and enemyManager arrayList classes for each type. I have each type of enemy randomly spawning at spawn points slightly off screen, coming onto the screen, then off the other side, dying, and randomly responding.…
Dakota Hipp
  • 749
  • 7
  • 16
1
vote
5 answers

How do I check if a program has already been executed during the current login session? (Windows)

In an application I am developing (in C), a loader app must first be run before the main application is executed. I have made it so the main app runs the loader app as a child when it is launched in order to automate this task. This all works well,…
Nick Aberle
  • 155
  • 2
  • 2
  • 11
1
vote
1 answer

Process not spawning python

I'm trying to make a multiprocess program with Python. I have Import the multiprocess module and I try to start to process like so: p = Process(target=self.Parse) p.start() p.join() In the class I have an internal thread counter and I…
rady
  • 428
  • 5
  • 12
1
vote
1 answer

XNA 4.0 enemy spawning, bouncing off walls

Sorry about all of the code, but I am completely new to Visual C# and XNA. This program is out of Learning XNA 4.0 by Aaron Reed. My professor modified some of the stuff its supposed to do (the book covers some of this but not all of it). Most of…
user3313728
  • 127
  • 9
1
vote
1 answer

Javascript simple endless game, setTimeout problems

I am new to javascript and to programming in general so don't assume I know a lot. I am creating a simple html5 javascript game where vehicles on a highway are coming down towards you (represented by canvas rectangles). I am creating the vehicle…
tysonsmiths
  • 485
  • 1
  • 8
  • 19
1
vote
1 answer

how to spwan recursive calls and for loop iterations in multiple threads in java (if possible)?

I was wondering if it is possible to spawn each loop iteration (each iteration into a thread by itself) and finally collect the result. consider this example, nothing fancy in it at all. Just a simple for-loop, but the idea is to extend on it. The…
brain storm
  • 30,124
  • 69
  • 225
  • 393
1
vote
1 answer

How to Spawn objects in corona sdk

hey i am new to the Corona sdk world i want to learn how to spawn some objects and make them move across the screen i try everything and it never work i read the forum on spawning the right way and try it but still end up with a error in my code…
SeanDp32
  • 199
  • 4
  • 17
1
vote
1 answer

Side scroller enemy spawn system

I'm a beginner to XNA coding and am trying to make a side scroller game similar to that of Super Mario Bros. I have got player movement and enemy movement up however I am having trouble making more than one enemy and having each enemy spawn at set…
FLAVAred
  • 77
  • 1
  • 4