JamesOG's Forum Posts

  • 1 posts
  • I was wondering along the same lines- My game spawns bad guys and they sometimes spawn on top of each other as they are programmed to randomly spawn outside of the screen and come into the screen every random number of seconds. For every new bad guy this adds another factorial to the amount of checks of overlapping that I would have to do. That is if there are five bad guys spawning- there are 5! number of ways in which they can spawn on top of each other- this gets really large really fast to write if this guy is over lapping this guy etc. I am new to programming games. SO I was wondering if there is some tool in construct 2 that can call all objects of a certain type a group name like ->ENEMY and then make it so they can't spawn on top of each other???? The thing is they have to be able to overlap with objects in the same layer as they are programmed to animate when they die- and the animation is an object in the same layer.   I was also wondering if anyone knows how to make a color always on the bottom- with most spriting and animating there is a color that is always on the bottom- or every other color gets displayed if this color (say white) ever overlaps with other colors so that objects can overlap (like a plane flying over an island). I thought initially that the layers would suffice but since the sprite image is always a square then sprites which aren't squares have a color on the outside- like white.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 1 posts