Questions tagged [spawning]

143 questions
1
vote
1 answer

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 I want them to spawn OUTSIDE the actuall Map so…
Dimosaurier
  • 21
  • 1
  • 2
1
vote
0 answers

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 diagonal of the screen: The red block needs to…
1
vote
2 answers

How to implement random enemy spawns libgdx

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 ship stats with these points. Mostly everything is…
1
vote
2 answers

Not sure how to clear concurrentModificationException

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 java.util.ConcurrentModificationException and I…
1
vote
0 answers

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 automatically. Here I am including a piece of code from a Class. Any…
1
vote
0 answers

Unity Photon Handle Match Data

I'm building a multiplayer game that has instanced battles (find match matchmaking). I have the matchmaking finished and it throws the 6 (3v3) players into an empty room using PhotonNetwork.LoadLevel('Game'); This shows 6 empty rooms. What I…
Cyberboy1551
  • 345
  • 1
  • 13
1
vote
1 answer

Pygame Platformer- Randomly Spawning Enemies

I am currently having an issue when trying to randomly spawn enemies into my platformer game. I have an enemy class class Enemy(pygame.sprite.Sprite): that has an __init__ and move(self) function. Currently i have each instance of the enemy defined…
1
vote
0 answers

Trying to set enemys to spawn on path transition, transition between spawning takes too long

I am trying to implement enemies that spawn periodically and go through a longer transition cycle. The gap between enemies spawning is far too long. Any recommendations would be helpful I've tried to set the duration cycle to a bunch of different…
ijcmian
  • 11
  • 1
1
vote
0 answers

Python BaseManager subprocess won't terminate even when the parent process dies?

Situation: I am using multiprocessing.managers.BaseManager([address[, authkey]]) for python cross-process communication. I am having two scripts now, one serves as a base manager server which runs BaseManager.start() and one serves as a client to…
1
vote
1 answer

Bukkit - How can I make a spawner spawn a different entity than a pig..?

Okay, so I am attempting to make a custom spawners plugin, but I've already hit a bit issue.. I cannot figure out how to change what creature the spawner summons. The code I have currently can be found below (This is a SpawnerSpawnEvent, also…
Askingg
  • 107
  • 1
  • 2
  • 11
1
vote
4 answers

How to spawn prefabs within a certain period of time in Unity?

I am trying to create a ball hitting game in the baseball format. I create a ball as a prefab. I want to push the ball to the main scene within a certain period of time. For example; when the first ball is in the scene, the second ball will spawn…
Katzenliebe
  • 39
  • 1
  • 2
  • 12
1
vote
1 answer

observing TypeError while trying to spawn to device

I have a Centos 7 laptop connected to my device on the LAN port. Trying to login to my device and execute some commands for my automation tasks. I have python 3.6.4 installed on Centos 7. Below is the .py script I have on the…
1
vote
1 answer

SpriteKit, copying a physics body does NOT copy the settings?

It seems almost incredible but, let pb = model.physicsBody?.copy() as! SKPhysicsBody print("orig .. \(model.physicsBody!.linearDamping)") print("pb .. \(pb.linearDamping)") they are NOT the same. No really. This is so bizarre that I must be doing…
Fattie
  • 27,874
  • 70
  • 431
  • 719
1
vote
1 answer

How to pass & retrieve arguments to a .sh file in nodejs?

Can we pass arguments to a .sh file in Nodejs, i am trying to Spawn a .sh file, and want to pass some arguments while spawning, var command = spawn(__dirname + "/import.sh", { var1: "abc" }); in the above command i am trying to spawn the…
Amrinder Singh
  • 5,300
  • 12
  • 46
  • 88
1
vote
2 answers

Erlang newbie - concurrency and message passing

I'm still new to programming and brand new erlang (2 week newbie!). I edited slightly so atleast it'll compile and run. But I still can't figure out the concept of sending the results to a "joiner process" to join all the seperate results. It does…
chitown88
  • 27,527
  • 4
  • 30
  • 59
1 2
3
9 10