Add new Parallax2D node
This commit is contained in:
@ -45,7 +45,7 @@ void ParallaxBackground::_notification(int p_what) {
|
||||
}
|
||||
}
|
||||
|
||||
void ParallaxBackground::_camera_moved(const Transform2D &p_transform, const Point2 &p_screen_offset) {
|
||||
void ParallaxBackground::_camera_moved(const Transform2D &p_transform, const Point2 &p_screen_offset, const Point2 &p_adj_screen_offset) {
|
||||
screen_offset = p_screen_offset;
|
||||
|
||||
set_scroll_scale(p_transform.get_scale().dot(Vector2(0.5, 0.5)));
|
||||
|
||||
Reference in New Issue
Block a user