Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: heavygunner on October 20, 2018, 05:11:14 PM

Title: (Solved) Score based on Travel distance & time
Post by: heavygunner on October 20, 2018, 05:11:14 PM
Hi !

I like to add score system to my game with multiple conditions.

I already created score system for every kill and dash.

How Can I add More score condition for travel distance and time? I wanna add X points per unit moved and time spent

Thanks
Title: Re: Score based on Travel distance & time
Post by: djaydino on October 20, 2018, 07:07:52 PM
Hi.
For distance maybe have a get time info a state while moving, when you stop moving get that time and add to 'total moving time' then use that for the distance score

For time spend you can also use the get time info :)
Title: Re: Score based on Travel distance & time
Post by: heavygunner on October 20, 2018, 07:20:53 PM
Hi.
For distance maybe have a get time info a state while moving, when you stop moving get that time and add to 'total moving time' then use that for the distance score

For time spend you can also use the get time info :)
Thank you.
Will time save in this format ? eg: 12.34 seconds.
Then I have to convert the time to int to get in full format?
Title: Re: Score based on Travel distance & time
Post by: djaydino on October 21, 2018, 12:46:37 PM
Hi.
Quote
Will time save in this format ? eg: 12.34 seconds.
It gives the value in seconds in a float :)

Quote
Then I have to convert the time to int to get in full format?
That depends on how you wish to do this.

You can also use a float and convert to string and set the format so that it is not showing the data behind the dot.