Damn.. My Exeponetial Score is all wrong!!!

SaveDaveSaveDave Member Posts: 140
edited November -1 in Working with GS (Mac)
Ahhggg!

firstly, just wanna thank orbz and RH for the previous help with the Exponential issue...

however, after having to completely revamp my game to work around performance issues, i now need the expo to calculate a score from 1-100,000 over the space of time instead of distance.

the count needs to start from a collision with an actor and continue increasing exponentially for a total of 30 seconds. It also needs to be stopped at the 30 time limit, or, upon a press of the screen.

how the heck do i do this... i have a mess of a screen now with all my previous attributes!!

any help would be fantastic!

Comments

  • SaveDaveSaveDave Member Posts: 140
    Bump!

    sorry... just sitting around with this until i can find a way to continue!
  • ORBZORBZ Member Posts: 1,304
    Change attrib Self.startTime (real) = self.time

    ~~ Linear ~~

    Timer for 30s
    constrain score = 100000*(self.time-self.startTime)/30

    ~~ OR Exponential ~~

    Timer for 30s
    constrain score = 100000*((self.time-self.startTime)/30)^2
  • SaveDaveSaveDave Member Posts: 140
    so, does this change of attribute need to be assigned to the score actor?
  • ORBZORBZ Member Posts: 1,304
    Ya those lines are computing your score. Constrain them

    Pick linear or exponential, not both
Sign In or Register to comment.