Generated tile map doesnt spawn objects?

Get help using Construct 2

Post » Tue Feb 12, 2013 9:39 am

Using something like this

https://www.scirra.com/tutorials/360/generating-a-random-tile-map/page-1


Wondering why if I had to say
for-every tilesprite -> spawn an object -> someobject

doesnt work.
Nothing spawns.

But same thing if I just include another action within the Foreach(x,y) of array section as
system->createobject-> someobject

It works.


What I am trying to do is pick particular tiles from the generated tiles and spawn grass or something on it.

Any help.krish2013-02-12 09:44:40
Krish
Hey! Did you know that you can hire me to make your games?

Click Here to See More
B
21
S
6
G
5
Posts: 391
Reputation: 5,627

Post » Thu Feb 14, 2013 2:41 pm

Add a subevent to your For each XY. Insert your condition to decide to spawn grass or not, and add the create object action.
B
46
S
17
G
18
Posts: 847
Reputation: 13,802


Return to How do I....?

Who is online

Users browsing this forum: makkancs and 26 guests