News
Levels
Download
Contests
Videos
Chat
Forum
Wiki
Log in
Help with camera
By
Glados
– Custom level – uploaded 24 Feb 2026 from Android
Play
Edit
Issues trying to play levels?
Troubleshoot issues playing levels
Views: 21 - Downloads: 13 - Level ID: 1539 -
Play in browser
(BETA)
Comments
11 days ago
Glados
:
@randomguy123 It's supposed to follow the line position, but the camera is broken and doesn't work properly
@owhame answered here
12 days ago
owhame
:
how is this؟؟؟؟
function init(is_sandbox)
player = {x = 0, y = 0, angle = 0, vel = 1}
game:activate_rc_by_id(9)
end
function step(count)
player.angle = this:read(0)
2
math.pi
rc_x, rc_y = world:get_entity_by_id(9):get_position()
this:set_draw_tint (0, 0, 255, 255)
this:draw_line (rc_x, rc_y, rc_x + math.cos(player.angle)
0.5, rc_y + math.sin(player.angle)
0.5, 0.05)
cam:set_position(rc_x, rc_y, 10)
end
12 days ago
randomguy123
:
What's wrong with it, and what exactly are you building?
@owhame answered here
function init(is_sandbox)
player = {x = 0, y = 0, angle = 0, vel = 1}
game:activate_rc_by_id(9)
end
function step(count)
player.angle = this:read(0) 2 math.pi
rc_x, rc_y = world:get_entity_by_id(9):get_position()
this:set_draw_tint (0, 0, 255, 255)
this:draw_line (rc_x, rc_y, rc_x + math.cos(player.angle) 0.5, rc_y + math.sin(player.angle) 0.5, 0.05)
cam:set_position(rc_x, rc_y, 10)
end