Sliders that Change Attributes?

wroachbarrettewroachbarrette Member Posts: 101
edited November -1 in Working with GS (Mac)
Alrighty this is what ive got, ive created a slider that is suppose to change the pitch of a sound, sounds simple just go into the playsound action and assign an attribute for the number now hears my problem how to i make it so that when they move up the slider it moves up in increments of .01 from .00 starting at the bottom to 1 at the top?

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You can try making your attribute a real attribute that will allow decimal increments just not sure if it automatically uses the decimals from movement.

    __________________________________________________________________
    AppSolute Entertainment on Facebook
  • wroachbarrettewroachbarrette Member Posts: 101
    A
    tenrdrmer said:
    You can try making your attribute a real attribute that will allow decimal increments just not sure if it automatically uses the decimals from movement.

    __________________________________________________________________
    AppSolute Entertainment on Facebook

    Alright this is what i did, i made a real attribute called PitchControl and set it equal to 1 then i changed the pitch to "PitchControl" after that i went into my slider and said that when self.position.y = self.position.y+1

    to change PitchControl to PitchControl-.01 but now when i adjust the slider and click on the button to produce the sound it resets the switch back to its old position? any help if this is any use my goal is to say for every 1 unit up that the slider travels to change the PitchControl in variations of .01 from 0 to 1

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
    firemaplegames has a slider demo that'll do that.
  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408
  • wroachbarrettewroachbarrette Member Posts: 101
    how do i download this project to analyze it?
  • frariofrario Member Posts: 164
    This is not supposed to be rude, but how do you have an avatar and don't know that?
  • wroachbarrettewroachbarrette Member Posts: 101
    ive never looked into that:P and when i hit download project it just opens up in a new safari window? I take no offense :P
  • wroachbarrettewroachbarrette Member Posts: 101
    wow never mind i do feel stupid all you have to do is search it in gamesalad and it finds the demo:P sry
Sign In or Register to comment.