Quantcast
Channel: GameSalad 101 — GameSalad Forums
Viewing all articles
Browse latest Browse all 8928

Best way to Spawn 100 objects in a Game Scene size 50,000 x 50,000

$
0
0

Hi,

What is the best method to spawn 100 objects in randomly x,y positions in a game scene of 50,000 x 50,000 ( width ), ( height ). I currently have a spawner that is set to spawn 100 objects, but it's not spawning them, please see below:

Every 0.2 Seconds Run to Completetion ( Checked )

Change Attribute : game.bubblekidsrandom To random (1,2 )

When All Attritube: game.bubblekidsrandomcounter < 100

Change Attritube: game.bubblekidsrandomcounter To game.bubblekidsrandomcounter + 1

When All Attribute: game.bubblekidsrandom = 1

Spawn Actor: bubblekid1 Layer: in front of actor
Direction 0 Relative to Scene
Position random (82, 49889 ) random ( 75,49907 ) Relative to Scene

When All Attribute: game.bubblekidsrandom = 2

Spawn Actor: bubblekid2 Layer: in front of actor
Direction 0 Relative to Scene
Position random (82, 49889 ) random ( 75,49907 ) Relative to Scene

Is there a limit of spawning depending on screen size? Any help would be greatly appreciated it....Thanks and God Bless...

Sincerely,

Sunday


Viewing all articles
Browse latest Browse all 8928

Trending Articles