Spawn 3 Times Only Spawns 1 ?

0 favourites
  • 4 posts
From the Asset Store
An educational game for Times Table. An easy to use template for developers to build larger games
  • <font size="5">Spawn 3 Times Only Spawns 1 ?</font>

    Hi,

    I am trying to spawn 3 large asteroids for my game project now.

    You can see code below - problem is only 1 large asteroid is spawned?

    Developer screenshot(what am I doing wrong?):

    <img src="http://16bitsoft.com/V2/Files/RocksInSpace/Images/Spawn_3_Times_Not_Working-1.png" border="0" />

    Hope you can help, thanks!

    JeZ+Lee

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You are spawning them on top of each other. Check create object action in system menu, probably more suited for what you are doing.

  • You are spawning them on top of each other. Check create object action in system menu, probably more suited for what you are doing.i,

    That works, but all 3 large asteroids have the same x,y start position?

    How can I randomize the x,y start positions of the 3 large asteroids,

    while keeping them at the edges of the game screen away from player?

    Thanks!

    JeZ+Lee

  • You could so something like in this example:

    Evil sprites example

    There are lots of ways to do it, this is a simple approach where you define the spawn range from the middle of the layout (scrollX, scrollY).

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)