How do I subtract from variable when unpinned?

Get help using Construct 2

Post » Sat Sep 19, 2015 10:04 am

I have a 'Spaceship' object, when i pin a 'Thruster' object to the 'Spaceship', i add 1 to a variable called 'Overlap'.

Im struggling to find a way to subtract 1 from 'overlap' when the 'Thruster' is no longer pinned to the 'Spaceship'. Ive tried lots of variations but no success.

Please halp!
B
9
S
3
Posts: 104
Reputation: 1,033

Post » Sat Sep 19, 2015 10:09 am

This sounds like it shouldn't be that hard.
Couldn't you subtract 1 from the value in the event the unpinning takes place?

It would be a lot easier and less guessing if you could share your current events/capx for us to take a look at..
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 » Sat Sep 19, 2015 10:37 am

Yeah i thought it would be easy before i got into it. Sorted it now, it was some conflicting variables making it bug out. Always a simple solution, was derping at it for too long haha.
B
9
S
3
Posts: 104
Reputation: 1,033


Return to How do I....?

Who is online

Users browsing this forum: dop2000, Jackriduk, NN81 and 37 guests