Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I know how looks lerp function
but i dont know how use lerp with numbers/counters
how do i add score using lerp?
For example you want to add bonus score to player depending on how accurate the shot was.
You can do something like this:
Add Lerp(minBonus, maxBonus, accuracy) to TotalScore[/code:36k1oml1] accuracy should be from 0 to 1
Develop games in your browser. Powerful, performant & highly capable.
For example you want to add bonus score to player depending on how accurate the shot was. You can do something like this: Add Lerp(minBonus, maxBonus, accuracy) to TotalScore[/code:oou65wqp] accuracy should be from 0 to 1
Add Lerp(minBonus, maxBonus, accuracy) to TotalScore[/code:oou65wqp] accuracy should be from 0 to 1
i dont get it, con you show this in capx example? or printscreen of code ?
I'm now not sure what did you mean by "add score using lerp"?
Do you want to animate the score?
See this capx:
https://www.dropbox.com/s/mlxdp26q0vwtd ... .capx?dl=0