1

Is there any solution for setting up focus on layer in Lime framework. I would like to use this on game called "keepie uppie" with scrolling background (camera). When you hit the ball the entire frame together with a ball and tennis racket moves up.

The figure below shows how I would like to make it work:

enter image description here

RRUZ
  • 134,889
  • 20
  • 356
  • 483
Mark
  • 159
  • 1
  • 10

1 Answers1

0

Check out the Camera from Lime. It basically creates a display group and moves everything relative to that. You can focus the camera on one of your game objects. The github repo includes an example of doing just that.

https://github.com/GrahamRanson/Camera

typeoneerror
  • 55,990
  • 32
  • 132
  • 223