scrolling text slow stop
RedRobo
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
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).
@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.
Sorry...that last file I uploaded seems to be corrupted....this one is ok.
OK -- here you go.
@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
You are welcome. Glad its working for you!
Great stuff ! Works really well.
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
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.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
@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.
Thanks! All in a days work...
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.