Can you Interpolate a boolean?

DrGlickertDrGlickert Member Posts: 1,135
edited November -1 in Working with GS (Mac)
Just out of curiosity? Can I interpolate a boolean from true to false over 3 seconds or vice versa?

Thanks.

Comments

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    Not sure, but why would you want too? What purpose would it serve?
  • DrGlickertDrGlickert Member Posts: 1,135
    jonmulcahy said:
    Not sure, but why would you want too? What purpose would it serve?

    Well, my issue is that... well... I guess I could just use an integer and use 0 and 1 instead of a true/false. I just want it to go slower instead of immediately.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    like jon said not sure why you would want it. A boolean is only true and false. So theres no middle point.

    Say it was interger and you were interpolating between 1 and 3. Technically it would go threw 1 and 3 right? So 1 then 2 then 3 it would change too (theoreticallty speaking)

    But since boolean is only true and false theres no middle, so it can only change between those too, so all interpolate for 3 seconds would do is change attribute to false or true after 3 seconds.

    A change attribute with a timer would do the same thing for you
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    My 3 year old interpolates booleans all the time:

    Me: "Did you do that"
    Son: "No" (boolean - false)
    Me: "But I stood here and watched you do it. So did you do it"
    Son: "Not really."
    Me: "Tell me the truth."
    Son: "Well, sort of."
    Me: "What do you mean 'sort of'?"
    Son: "Well, it was an accident."
    Me: "So you did do it?"
    Son: "Yeah" (boolean - true)
    Me: "What do you say"
    Son: (big sigh) "sorry dad"

    is that what you had in mind?
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    scitunes said:
    My 3 year old interpolates booleans all the time:

    Me: "Did you do that"
    Son: "No" (boolean - false)
    Me: "But I stood here and watched you do it. So did you do it"
    Son: "Not really."
    Me: "Tell me the truth."
    Son: "Well, sort of."
    Me: "What do you mean 'sort of'?"
    Son: "Well, it was an accident."
    Me: "So you did do it?"
    Son: "Yeah" (boolean - true)
    Me: "What do you say"
    Son: (big sigh) "sorry dad"

    is that what you had in mind?

    hahaha, and that will get me threw my last class without going crazy. Thanks buddy ;)
  • DrGlickertDrGlickert Member Posts: 1,135
    scitunes said:
    My 3 year old interpolates booleans all the time:

    Me: "Did you do that"
    Son: "No" (boolean - false)
    Me: "But I stood here and watched you do it. So did you do it"
    Son: "Not really."
    Me: "Tell me the truth."
    Son: "Well, sort of."
    Me: "What do you mean 'sort of'?"
    Son: "Well, it was an accident."
    Me: "So you did do it?"
    Son: "Yeah" (boolean - true)
    Me: "What do you say"
    Son: (big sigh) "sorry dad"

    is that what you had in mind?

    Haha! That's exactly what I meant by interpolating booleans.
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    He's a good kid, but he drives me nuts sometimes!
  • hackmodfordhackmodford Member Posts: 48
    Awesome! ROFL
Sign In or Register to comment.