Interpolate score problem

Hello well I'm having a serious issue with this cool interplate score that Tshirt booth made (link ) ... Instead of touching something to interpolate the score I want my final score and high score to interplate once you've beaten the level... I can't seem to get it working.. Hope you understand what I'm trying to achieve :)

Comments

  • ArmellineArmelline Member, PRO Posts: 5,408
    1. What is the expected outcome?
    2. What is the actual outcome?
    3. What rules are you using? (Please don't say "the ones in the video", specify exactly what you are using.)
  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    @Armelline‌ well he said to make an old score attribute which I did.. so instead of the touch is pressed I said when
    1. game.win = 1
    2. game. final score < old score
    3. interpolate game. final score to old score for 1 second.. I know that probably makes no sense

  • http_gamesaladhttp_gamesalad Member Posts: 1,340
    edited October 2014

    This is how I want my score and high score to interpolate skip to the very end when they count up the score

  • ArmellineArmelline Member, PRO Posts: 5,408

    And in what way is it not working? What happens when game.win is 1?

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    @armlline you beat the level

  • http_gamesaladhttp_gamesalad Member Posts: 1,340
  • ArmellineArmelline Member, PRO Posts: 5,408

    What I mean is, you say it isn't working. It's supposed to be triggered by game.Win = 1. So what does happen when game.Win = 1, if you what you want?

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    Oh okay! When game.win = 1 the score and high score pop up ! (which works perfectly thanks to you guys :)) but instead of the numbers just popping up I thought it would be cool if they count up @Armelline‌

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    Counted up *

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    bump ?

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408

    I'm not exactly sure what is not working? I know you expect the numbers to count up from like 1 to 5, but what is happening in your project? can you post screenshots of the rules and maybe a video of what is going on?

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    @jonmulcahy‌ okay thanks I will

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    edited October 2014

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    @The_Gamesalad_Guru‌ thanks :) that's what I was looking for! I'll give you some feed back on it later tonight when I get home

  • ArmellineArmelline Member, PRO Posts: 5,408

    If that video answers your question then once again the question you were asking bears no resemblance to the explanations you gave in asking it...

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    @The_Gamesalad_Guru @Armelline @jonmulcahy I really can't post it cause I've not achieved it.. Like what I'm trying to achieve is an interpolating final score and high score . Currently my score and high score just pops up when I tell it to spawn. But instead of it saying for example 100 I would like it to do something like 1 , 2 , 3 .... 97 , 98 , 99, 100 you know interpolating up instead of spawn.. I've tried to show you .. like in the TShirt Booth video! I want it to work exactly like that but instead of when touch is pressed for the example he used for it to interplate I want it interpolate when game. win = 1

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    cause when game. win = 1 it'll spawn the score and highscore and then I want the scores to start adding up

  • ArmellineArmelline Member, PRO Posts: 5,408
    1. game.win = 1 2. game. final score < old score 3. interpolate game. final score to old score for 1 second

    You seem to be saying here that when the game is won (when game.Win = 1), you are checking if game.final score is less than game old score. And if it is, you're interpolating game.final score to the value of game.old score. This should work. First I'd check that you're actually displaying game.final score, not game.old score, and if you are you really need to show us some screen shots of your rules.

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    What's the problem just add when win= 1 as the rule condition to begin the interpolate. Sounds like you could benefit from watching my GS logic series. It will help you understand how to build code.

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    @Armelline in the video Tshirt booth made this game.attribute integer called old score. I don't want the score to interplate when it's less than old score. I want it to interplate every time the score and high score shows up.

  • ArmellineArmelline Member, PRO Posts: 5,408

    @Armelline said:
    you really need to show us some screen shots of your rules.

  • http_gamesaladhttp_gamesalad Member Posts: 1,340
    edited October 2014
  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    Image and video hosting by TinyPic

    @Armelline @The_Gamesalad_Guru @jonmulcahy I played around this and now it interpolates but it counts down to 0... and it has a bunch of decimal points..

  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922

    Make sure you use the floor function as I show in the video. Where are you logging the score? Is the old score the score at the end of the game?

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    @The_Gamesalad_Guru‌ I don't have custom fonts in my game. I'm using the one gamesalad proved cause it's pretty close to what I want! & I don't understand by "where i'm logging the score" sorry. I have a display text that is game.Final score which shows my score and I have another one game. High score which displays my high score if that's what you mean

  • http_gamesaladhttp_gamesalad Member Posts: 1,340

    bump?

Sign In or Register to comment.