New to Contruct

0 favourites
  • 2 posts
From the Asset Store
Create your game with this complete pack of images and animations!
  • 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!!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)