In the script that changes the Scroll X/Y, it probably looks like the following, right?
[if <key [left arrow] pressed?>]
[][change [Scroll X] by (5)]
[end if]
Change it to this:
[if <key [left arrow] pressed?>]
[][if <((Scroll X)) = (Scroll X value of object)>]
[][][change [Scroll X] by (5)]
[][end if]
[end if]
Instead of just changing the Scroll X variable when the key is pressed, it checks if Scroll X has reached the object's Scroll X value. If it has, the Scroll X variable won't change - if it hasn't reached it yet, Scroll X will change. Any questions?
Offline
What Jonathanpb posted will work, but unless it stops at exactly that point it'll keep going. Try this:
if <(Scroll X) > [Scroll X value of object]>
set Scroll X to [Same number as above]
end
What this basically does is it prevents the Scroll X variable from going past where you want it to stop. Use it along with Jonathanpb's script so you don't get "screen flickering".
Last edited by hmnwilson (2010-06-15 04:06:35)
Offline
deepac wrote:
So if I wanted it to continuously scrolling this will do, correct?
[if <key [left arrow] pressed?>]
[][if <((Scroll X)) = (Scroll X value of object)>]
[][][change [Scroll X] by (5)]
[][end if]
[end if]
If you want it to always scroll and never stop, just do this:
[forever]
[][change [Scroll X] by (number)]
[end forever]
Offline