How do I make a sprite spawn on a iso tile with inst var

Get help using Construct 2

Post » Wed Jun 28, 2017 11:53 pm

Title Should be: How do I spawn a sprite on an isometric tile based on its instance variable.

So let's say I have a 64 x 64 grid of all one sprite, each one having an instance variable of VEG. I want to create a sprite on top of these based on the value of VEG. Example - if instance variable VEG = 1 then sunflowers show up on all the sprites that have VEG = 1. I have created many instances of the same sprite all with VEG values. What's happening to me now is it only changes the first instance. Never all the instances that have the value. Sometimes iI can get it to generate lots of sunflowers but they all land on the first instance of the grid.

One more thing... I want just one created while the value = 1. Sometimes I get an infinite loop of the image being created. This one may be simple just point me to what command I should be using.

What am I missing here? :shock:
B
13
S
2
Posts: 8
Reputation: 645

Post » Thu Jun 29, 2017 12:02 am

Hard to say without seeing a capx but it sound like u need to use "for each" sprite veg =1 trigger once sprite spawn veg
...
B
44
S
23
G
7
Posts: 283
Reputation: 7,979


Return to How do I....?

Who is online

Users browsing this forum: fearfulelephants and 17 guests