scrolling text slow stop

RedRoboRedRobo Member, PRO Posts: 682

Could someone tell me how to make my scrolling text come to a sliding/slow stop when I release my finger?
I have attached my simple test scene.

Comments

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880

    In your Pressed rule use:

    Constrain Attribute: self.Motion.Linear Velocity.Y To: ((game.Mouse.Position.Y+self.offset Y)-self.Position.Y)*100

    Then set the drag (under physics) to something high (like 500).

  • RedRoboRedRobo Member, PRO Posts: 682

    @RThurman‌
    I tried what you suggested but it still does not work. I wonder if you wouldn't mind having a look at my scene please to see where I am going wrong?

    Thank you.

  • RedRoboRedRobo Member, PRO Posts: 682

    Sorry...that last file I uploaded seems to be corrupted....this one is ok.

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880

    OK -- here you go.

  • RedRoboRedRobo Member, PRO Posts: 682

    @RThurman‌ Thank you so much for helping me out on this...it works perfectly.

    I just need to make it stop at the top and bottom but I think I will be ok with that by using a 'If Y = >top extreme then constrain to a Y value' type thing.

    I won't profess to understanding why what you have done works but at least I can implement it now and move on!

    Thanks again :)

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880

    You are welcome. Glad its working for you!

  • SocksSocks London, UK.Member Posts: 12,822

    @RThurman said:
    OK -- here you go.

    Great stuff ! Works really well.

  • kipdevkipdev Member Posts: 275
    edited November 2014

    Im actually working on something similar, a book actually. Just wondering, is it possible to have multiple pages on one scene? and use this sliding method to read through it? Also, how do you make it to where they cannot scroll up anymore to where this actor is not falling off the screen if you scroll to high? Im a rookie still with gamesalad...sorry. Thanks for any response

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Hi @kipdev, I see you talking about making a book. Is there any special reason you want to use GS for this? I'm not saying you can't or even shouldn't but depending on your requirements for the book there may be any easier way to get it done. For example if the book only needed to be available for iOS, I'd suggest using Apples iBooks Author, it's free and easy to use.

  • RedRoboRedRobo Member, PRO Posts: 682

    @kipdev
    You can make it stop at the top and bottom by using a rule like:
    If Y position > (Your ideal top start position) then constrain Y to (your ideal Y top position). Then just repeat this idea again but to constrain it to your ideal bottom position.

  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,880

    @Socks said:
    Great stuff ! Works really well.

    Thanks! All in a days work...

    @kipdev said:
    Im actually working on something similar, a book actually. Just wondering, is it possible to have multiple pages on one scene? and use this sliding method to read through it? Also, how do you make it to where they cannot scroll up anymore to where this actor is not falling off the screen if you scroll to high? Im a rookie still with gamesalad...sorry. Thanks for any response

    Yes, you could make a long scrolling page, or pages. But as @jamie_c mentioned, there might be more efficient/effective options - like iBooks Author.

Sign In or Register to comment.