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
3
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
My in work shmup game CYBERSTORM DEVLOG - "That Terminator is out there. It can't be bargained with. It can't be reasoned with. It doesn't feel pity, or remorse, or fear. And it absolutely will not stop, ever, until you are dead"
B
47
S
25
G
7
Posts: 378
Reputation: 8,462


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 7 guests