TileSprite#autoScroll()

autoScroll(x, y)

Sets this TileSprite to automatically scroll in the given direction until stopped via TileSprite.stopScroll().
The scroll speed is specified in pixels per second.
A negative x value will scroll to the left. A positive x value will scroll to the right.
A negative y value will scroll up. A positive y value will scroll down.

Parameters
Name Type Description
x number

Horizontal scroll speed in pixels per second.

y number

Vertical scroll speed in pixels per second.

Source code: gameobjects/TileSprite.js (Line 149)
doc_phaser
2017-02-14 11:17:00
Comments
Leave a Comment

Please login to continue.