(SOLVED) For each instance, add 1 to instance variable

Get help using Construct 2

Post » Sun Feb 23, 2014 4:23 am

4 object instances, wich hide and appear on the screen several times during the game. They are draggable texts and the player needs to drag each one of the four to its own picture, that I already have.

But the thing is that I want to show only one instance at time, so the game become easier.

Tried many times "for", "while" and "for each" many ways, but man, I don't know how to do this. I tried to create an instance variable named "order" and for each instance, add 1 to it, but didn't worked :(
Last edited by roxius on Mon Feb 24, 2014 1:17 am, edited 1 time in total.
B
3
Posts: 5
Reputation: 212

Post » Sun Feb 23, 2014 6:45 am

Maybe post what you have so far, so someone can have a look.
B
71
S
21
G
221
Posts: 3,649
Reputation: 124,227

Post » Sun Feb 23, 2014 9:05 am

He's right post a capx.I can't quite understand what you want to do.
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

Post » Sun Feb 23, 2014 6:13 pm

Sorry guys, here it's the capx:

http://ge.tt/31i4YqK1/v/0?c (I don't know how to attach files)

There are four names of expressions and 4 pictures. The fact is that I wanted to show only one name at time, so the player needs to match it to see the other one, that's why I wanted to add 1 to each instance variable of the object. I also commented the event sheet.
B
3
Posts: 5
Reputation: 212

Post » Sun Feb 23, 2014 7:53 pm

Download isn't working for me.
B
71
S
21
G
221
Posts: 3,649
Reputation: 124,227

Post » Sun Feb 23, 2014 8:05 pm

B
3
Posts: 5
Reputation: 212

Post » Sun Feb 23, 2014 9:30 pm

B
71
S
21
G
221
Posts: 3,649
Reputation: 124,227

Post » Mon Feb 24, 2014 1:17 am

Thanks, dude!

May I ask you how did you make the sprite animations stop? I searched everywhere on the program and on Google, but couldn't find how.
B
3
Posts: 5
Reputation: 212

Post » Mon Feb 24, 2014 1:34 am

Bring up the Sprite editor and look at the Properties tab on the left. Set Speed to 0.
B
71
S
21
G
221
Posts: 3,649
Reputation: 124,227

Post » Mon Feb 24, 2014 10:42 am

Thaaanks again! :D
B
3
Posts: 5
Reputation: 212


Return to How do I....?

Who is online

Users browsing this forum: ketramtu18 and 11 guests