How do I (anglelerp issue)

Get help using Construct 2

Post » Sat May 24, 2014 9:39 pm

I'm building a simulation that involves balance. I'm using "anglelerp" to get this result shown in the example. The weights make the balance move, but I can not make it return to the previous angle when I remove one of the weights.

I've tried everything. I would you like some help. Thank you in advance.
You do not have the required permissions to view the files attached to this post.
B
74
S
13
G
4
Posts: 1,000
Reputation: 8,041

Post » Sun May 25, 2014 12:14 pm

Some help, please.
B
74
S
13
G
4
Posts: 1,000
Reputation: 8,041

Post » Sun May 25, 2014 6:34 pm

Maybe instead of using anglelerp in multiple events, just use it once in an every tick event with anglelerp(bar.angle, weightRight-weightLeft, dt)

And just make sure to add the weight's weight every time you pin it and subtract it every time you unpin. It looks like you got it mostly there but instead of checking for an overlap of groupBase in event 9, you rather need to check for an overlap of baseCheckL and baseCheckR individually in events 10 and 11 so you subtract the weight from the correct side.
B
92
S
32
G
107
Posts: 5,280
Reputation: 69,971

Post » Sun May 25, 2014 7:46 pm

@R0J0hound: Thank you! Thank you! Thank you! (again).
B
74
S
13
G
4
Posts: 1,000
Reputation: 8,041


Return to How do I....?

Who is online

Users browsing this forum: jorgmaquoi, marc254, tarek2 and 21 guests