playMaker

Author Topic: (Solved) Score based on Travel distance & time  (Read 1455 times)

heavygunner

  • Sr. Member
  • ****
  • Posts: 344
(Solved) Score based on Travel distance & time
« 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
« Last Edit: October 22, 2018, 04:09:43 AM by heavygunner »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Score based on Travel distance & time
« Reply #1 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 :)

heavygunner

  • Sr. Member
  • ****
  • Posts: 344
Re: Score based on Travel distance & time
« Reply #2 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?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Score based on Travel distance & time
« Reply #3 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.