Discord
Login
Community
DARK THEME

is there a way i can move the camera

i want to know

There isn't a built-in camera, but you can apply transforms to sprites drawn on the screen.

The best way for beginners is to apply a transformation to the sprite location, as @TwiceUponATime said.

Example:

cam_x = 0;
cam_y = 5;

sprite_x = 15;
sprite_y = 6;

screen.drawSprite("icon",sprite_x-cam_x,sprite_y-cam_y,20,20);

Another great way is to use the Quick Engine library by Gilles. It provides many useful features, such as a camera.

thanks

Post a reply

Progress

Status

Preview
Cancel
Post
Validate your e-mail address to participate in the community