How do I spawn each objects to specific positions

Get help using Construct 2

Post » Fri Sep 02, 2016 1:02 pm

Here's the code

Image

Right now, i can only spawn a certain amount of monster (5 for each types of monsters) that i want to spawn, at a random positions

What i want is, to spawn [I can control the spawn amount] a certain amount of monster (5 for example), but i can specify the positions for each monsters

For examples:

For obj_game_prisoner

Instance 1, Spawn Object at X = 100, Y = 200
Instance 2 , Spawn Object at X = 150, Y = 200
Instance 3, Spawn Object at X = 200, Y = 100
Instance 4, Spawn Object at X = 99, Y = 50
Instance 5, Spawn Object at X = 124, Y = 124
B
41
S
21
G
27
Posts: 39
Reputation: 17,252

Post » Fri Sep 02, 2016 1:31 pm

Use an array for that. Please refer to this thread and find out how they were able to spawn objects using Array.

please-help-me-to-understand-arrays-with-my-capx_t150558
B
11
S
6
G
15
Posts: 256
Reputation: 9,207


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, DuqueKarl, Vinterstille and 3 guests