New to Contruct

Get help using Construct 3!

Post » Thu May 17, 2018 11:56 pm

Hi Team,
I have few questions, please help me:

1. How to interpolate i.e. change from 0 to 100 in 5 secs when we collide with item?
2. I change one variable from 10 to 8 on collide, how do I return the the value to 10 after 3 secs of that collide?

Waiting response!!
B
2
S
1
Posts: 11
Reputation: 254

Post » Fri May 18, 2018 12:56 am

1. Precise change over time: Use the timer behavior and lerp.
On collision - start timer for 5 seconds
Timer is running - Set value to lerp(0,100,Self.Timer.CurrentTime/Self.Timer.Duration)
On Timer - Set value to 100

2. a. You can use the "Wait" action to delay following actions
On collision - Set Variable to 8, Wait 3, Set variable to 10

b. Or you can use a timer behavior once again, and On Timer set value to 10
On collision - Set Variable to 8, Start timer for 3 seconds
On Timer - Set Variable to 10
Mistakes were made.
B
61
S
30
G
134
Posts: 1,973
Reputation: 75,448


Return to How do I...?

Who is online

Users browsing this forum: No registered users and 3 guests