-
Notifications
You must be signed in to change notification settings - Fork 0
Working with Scroller
bapquad edited this page Feb 28, 2022
·
2 revisions
This content show you how to work with scroller component of CaremJS.
The scroller created by Carem.Scroller
class.
let earth = new Carem.Scroller(asset, scene);
The default direct move from right to left. we can change the direction with SetDirect
method.
Or use the flip the scroller like as following
earth.SetFlip(CAREM_FLIP_HORIZONTAL);
The scroller velocity can changed by using
earth.SetVelocity(0.25);
Good luck and see you at other guide.