Hi thanks for the help, but when i put in the text and scroll, it doesn't stay there, The scrolling just get reseted. Pleas help have to get scrolling work. Best regards sam
Hi Thanks for the help i was able to create a scroll. But the problem is when i take away my finger, when i am trying to scroll the text again it won't work then. help pleas, Best regards Sam
Hi Okay but thanks anyway. Yes i have done. I don't now why when i take away my finger from the screen and try to scroll again it won't work then. Do i have to ad something ? best regards sam
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
I decided to try to make scrolling text and was successful: http://dl.dropbox.com/u/19602014/ScrollingTextv0.2.zip. I haven't commented it and it is based on quite a bit of trial and error where the math is concerned, but maybe you can find something useful from it.
Found this post, and it helps me a lot with my vertical (Y only) scrolling text.
However, I want it to stop being able to be scrolled when it reaches certain areas (i.e. the end)...how do I set limits to do this?
Thanks again,
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
I'm not entirely sure how to do that. I wasn't happy with the way it continues to scroll at the top and bottom edges, but I didn't work out a solution. I may think something up but in the meantime, anyone else (@MotherHoose) have a good idea?
I played around with self.position.y on the text actor but if I use a condition for the top edge (e.g. y=34), I can either not ever scroll or I can always scroll.
tatiangMember, Sous Chef, PRO, Senior Sous-ChefPosts: 11,949
edited March 2012
@robert.mccarthy: Okay, I solved the problem. Just needed to add a rule to the text actor that says if self.Position.Y<34 then change attribute self.Position.Y to 34; and a rule that says if self.Position.Y>440 then change attribute self.Position.Y to 440.
Comments
http://gshelper.com/?p=516
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
but when i put in the text and scroll, it doesn't stay there,
The scrolling just get reseted.
Pleas help have to get scrolling work.
Best regards sam
you'll only need to use the y or x, which ever way you are making the text scroll.
Thanks for the help
Thanks for the help i was able to create a scroll. But the problem is when i take away my finger,
when i am trying to scroll the text again it won't work then. help pleas,
Best regards Sam
did you make sure in otherwise you set drag to false?
Okay but thanks anyway.
Yes i have done.
I don't now why when i take away my finger from the screen and try to scroll again it won't work then.
Do i have to ad something ?
best regards sam
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thank's, for the help.
Best regards Sam
Found this post, and it helps me a lot with my vertical (Y only) scrolling text.
However, I want it to stop being able to be scrolled when it reaches certain areas (i.e. the end)...how do I set limits to do this?
Thanks again,
I played around with self.position.y on the text actor but if I use a condition for the top edge (e.g. y=34), I can either not ever scroll or I can always scroll.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Here's the new version: http://dl.dropbox.com/u/19602014/Scrollingtextv0.3.zip
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User