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:
Posts: 8
Reputation: 795

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
NOTE: There is a high a probability that I am wrong.
Posts: 461
Reputation: 8,964

Return to How do I....?

Who is online

Users browsing this forum: dop2000, harspeck, suman882 and 8 guests