Columns for enemies?
Cap
Member Posts: 225
Hi,
let's say our enemies are bombs falling from the sky. The bombs are either 16x16 or 32x32 pixels big.
Now I want them to appear randomly with different speed. That's not a big problem. But: I don't want them to overlap! That means: if I would place a 16x16 bomb on -let's say- x20 y350, and a 32x32 bomb randomly on x25 y350, they would overlap, because the larger bomb would be faster.
That means I want to create columns that make sure bombs that are falling within a second or two can't overlap, because they are in different columns.
Now how can I do that in GS? Any ideas?
I appreciate every answer!
Thanks!
let's say our enemies are bombs falling from the sky. The bombs are either 16x16 or 32x32 pixels big.
Now I want them to appear randomly with different speed. That's not a big problem. But: I don't want them to overlap! That means: if I would place a 16x16 bomb on -let's say- x20 y350, and a 32x32 bomb randomly on x25 y350, they would overlap, because the larger bomb would be faster.
That means I want to create columns that make sure bombs that are falling within a second or two can't overlap, because they are in different columns.
Now how can I do that in GS? Any ideas?
I appreciate every answer!
Thanks!
Comments
I tried that out before, but I think when it comes to gameplay it would be better if the bombs do not collide at all.
That's why I have to come up with a column strategy, but I haven't found out how to do it until now. :-/