Instance Variable Broken!

Get help using Construct 2

Post » Wed Sep 18, 2013 7:24 am

I've got an ammo set-up that uses instance variables. The set-up like this: is on collision with sprite add 1 to ammo. But somehow this doesn't work. I've also made a simple GUI that displays the ammo. But when the ammo is meant to increase it just stays at zero. Initial value is 0 so I'm not sure how it's not working please help! I think the instance variable is not working.


Note: I am using the free version
B
4
S
1
Posts: 2
Reputation: 379

Post » Wed Sep 18, 2013 7:42 am

Can you post up a CAPX for us to take a look at? (Save as Single File Project).

Otherwise it's hard to tell what's going on. Have you tried using the Debugger to see if the variable is in fact not updating?
B
101
S
32
G
11
Posts: 1,552
Reputation: 21,667

Post » Wed Sep 18, 2013 8:15 am

How do you post images? I'll post my events
B
4
S
1
Posts: 2
Reputation: 379

Post » Wed Sep 18, 2013 8:24 am

Select the orange 'Post Reply' rather than the quick reply at the bottom of the page and then select 'Insert Image'.
B
46
S
16
G
74
Posts: 2,088
Reputation: 44,185


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests