Animation Frame change help!
Hello people,
Is there a way to make it so when i Scroll up one, the frame of a sprite changes by one?
so every up scroll i do, the frame changes by one?
ive tried:
+on mouse wheel up
-animation>change>animationchange ( +1 )
but that doesnt work
please help :)
thanks.
Re: Animation Frame change help!
Maybe try making an active object and using a variable in it or a global variable and add one to it as the mouse wheel scrolls up, then change everything's frame to that variable?
Re: Animation Frame change help!
Thankyou Corlen.. It works perfectly :)
I made it so when i scroll up it adds 1 to the variable and when i scroll down it subtracts 1 from the variable and when the variable reaches 4 it resets to 1
so there are 3 frames :)
Re: Animation Frame change help!
Good to hear it worked, I was just going from memory there. :p At least my memory isn't totally broken. :D Cheers.
Re: Animation Frame change help!
Make sure you are stopping that objects animation, too!
You probably don't need it for something this simple, but Jaffob whipped up an animation extension that can be handy for stuff like this:
http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=230118#Post2301 18