How i make this, pick a variable from another object.

Get help using Construct 2

Post » Fri Nov 20, 2015 6:40 pm

Hello I have a question here, I created a local variable to a block where when you place an object on the block arrow this vaíável to 1, otherwise to 0, it happens that when viewing the object "tower" which is just above the block, the continuous variable to 1, how i use pick to pick to up exactly each block to sell the tower and sets your variable property to zero.
B
28
S
9
G
3
Posts: 280
Reputation: 4,162

Post » Fri Nov 20, 2015 7:21 pm

If you know which block you mean and how you can explain this to the program, you have your answer..

The right block has to be referenced (picked) in the event/conditions or Construct2 will not know which one you mean..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Fri Nov 20, 2015 7:30 pm

It is because I created a w_wp name variable with weapon, weapon is the watchtower, if any tower on the block, then change the w_wp value to 1, if you are not I want to change to 0 at the time of create Object weapon1, and put on a w_wp block prevents that there are several towers in the same area of the block, it turns out that created a logic to the tutorial learning how to play my game, but in this case there is bug where the player can place a once a tower on top of another, which does not want to happen, and when I sell a tower after passing the tutorial, I am unable to put another tower on the site where there was another tower that was sold. I am not able to handle it.
B
28
S
9
G
3
Posts: 280
Reputation: 4,162

Post » Fri Nov 20, 2015 7:43 pm

Wouldn't setting the value back to the original value for each block after the tutorial work?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: alimuqaddas, LaurenceBedford and 12 guests