Coverflow Snap to Center

sparkzillasparkzilla Member Posts: 152
edited November -1 in Working with GS (Mac)
I got Tshirtbooths coverflow demo working and added an interpolate based on camera position to make the actor grow when it moves into the centre of in the screen. Does anyone know how to make it more sticky/snap to centre as it moves into the centre?

__________________

Coming Soon!: Sweepr

Comments

  • DreamLabDreamLab Member Posts: 2,127
    Maybe he is talking about like portyman has his. where instead if you swipe hard it skips a bunch, maybe he wants it to stop at each one. Just my guess

    DL
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    either interpolate the camera actor to the position over the level select box when its > but < a certain position and you would do that for every level select so when its close it interpolate and snaps to center. Or you can have in the camera actor when self grow is true(on the level select) for .5 constrain the self motion linear x of the camera actor to 0, and have that for each level select as well.

    Thats how i do it in mine, tshirt can probably help you more though since your using his system

    cheers
  • sparkzillasparkzilla Member Posts: 152
    Yes, I'd like it as Dream Lab says where you drag it and it stops at each one. I think JP is right that I have to interpolate the camera actor. If you do it a different way TSB let me know!

    __________________

    Coming Soon!: Sweepr
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    yeah i thought your was different tshirt, i think i know what you use to do it i wont tell though ;)

    This is a easy way to do it though spark if youd like
    you interpolate the camera actor to the position over the level select box when its position is < but greater then the position just before and after the first box, then do that for the rest.

    Ill give u an example, now these numbers wont be right youll have to play around im just using these to show you how it would work.

    Say you have your first level select box at x position 20 and the second at x position 50

    In the camera actor have a rule when self position x >15 but <25 interpolate self position x to 20 (since thats where the first box is)

    Then your next rule for the second box have another rule in the camera actor when self position x > 45 but < 55 interpolate self position x to 50 (since thats where the second one is)

    Again thats not how tshirt does it but ive done it like this before and it works. Hope it helps
  • sparkzillasparkzilla Member Posts: 152
    I think I am running into problems because I am trying to mix the two systems (TSB drag and JP's interpolates).

    JP how do you do your dragging?

    __________________

    Coming Soon!: Sweepr
Sign In or Register to comment.