This forum is read only and just serves as an archive. If you have any questions, please post them on

1 decade ago by 80bit

does anyone know the correct way to manipulate the camera on a 2D level that is larger than the canvas? I want to both set the initial position (based on the player entity position) and ensure that the map scrolls with the player entity.

via bpsd on #impactjs @ 12:49

1 decade ago by 80bit

set the game's screen.x and screen.y to scroll the vie

e.g. you can just center it on an entity with: = this.pos.x - ig.system.width/2;

where "this" is the entity

via domsz on #impactjs @ 12:55
Page 1 of 1
« first « previous next › last »