PewnyPL's tumblr
"Raycasting would be more accurate, yes, however since we are doing it 2D and don't have much concept of altitude here, then that solution will work just fine"

relena-dark:

pewnypl:

relena-dark:

pewnypl:

relena-dark:

pewnypl:

relena-dark:

“I guess so. Anyway, wanna get started? I think I’ll start on a basic script for the projectiles.“


He just shakes his head and goes back to coding

Kate then does the same and tries to make the script as reusable as possible.

He is codinf his when he gets an idea “You know, I just realized, I should probably randomize how much to the left or right the enemies are behind the target, so this same script can be used for all of them, and not just one that is straight behind it…”

“Good idea.” she smiles “We’ll do that. Which reminds me, should we make a thing that spawns enemies or should we place them in manually?“

“Well, I guess a spawner would be a good idea. Placed behind the target, off screen, and the moment a level starts a random number, influenced by the level, of enemies would spawn. And then maybe we could make the spawner follow the target, keeping off screen and if any of the enemies get destroyed, a new one spawns to replace it?”

“Oh that’s pretty easy to do. You can make the spawner a child of the target.“ she says “That way it’ll always keep following the it wherever it goes.“ Kate replies

“That’s good then” He thinks then suddenly is silent for a short moment “Um… Kate, does unity have anything for pathfinding?”