this is my first time using rendercam so im not sure how things work
i added the dependency and fetch libaries and set rendercam as my bootstrap render thing like the manual said.
i am trying to get my camera to follow the player, i figured how to do it by setting the rendercam.go as a active child of the player but i am trying to learn to use the other useful things like screen shake and etc, so i have to learn the rendercam functions from the README.md of the asset.
Makes the camera follow a game object. Lerps by default (see rendercam.follow_lerp_func below). If you want the camera to rigidly follow a game object it is better to just make the camera a child of that object. Set rendercam.follow_lerp_speed to adjust the global camera follow speed (default: 3). You can tell a camera to follow multiple game objects, in which case it will move toward the average of their positions. Note that the camera follow function only affects the camera’s X and Y coordinates, so it only makes sense for 2D-oriented games.
PARAMETERS
target_idhash - ID of the game object to follow.
allowMultiFollowbool - If true, will add target_id to the list of objects to follow instead of replacing all previous targets.
cam_idhash - ID of the camera game object. Uses the current camera by default.
so i followed the code and wrote this line in the player_cam script in my player.go in my player.collection in my 1-1.collection
function init(self)
rendercam.follow(hash("player"), false, hash("player_camera"))
end
Registered delay Extension
Registered rnd Extension
INFO:DLIB: Log server started on port 59104
INFO:ENGINE: Engine service started on port 59105
INFO:ENGINE: Defold Engine 1.2.154 (2a329c6)
INFO:ENGINE: Loading data from: build/default
INFO:ENGINE: Initialised sound device ‘default’
DEBUG:SCRIPT: NOTE: rendercam - No active camera found this frame…using fallback camera. There will be no more warnings about this.
INFO:DLIB: SSDP: Started on address 192.168.43.144
ERROR:SCRIPT: /collections/game/player/player_script/player_cam.script:2: attempt to index global ‘rendercam’ (a nil value)
stack traceback:
/collections/game/player/player_script/player_cam.script:2: in function </collections/game/player/player_script/player_cam.script:1>
INFO:DLIB: SSDP: Done on address 192.168.43.144
nooo
Sry im just used to text like this because its fast and efficient compared to using commas and periods, and this is how me and my schoolmates chat normally, game engines are made for efficiency right…???
i ran into another problem, this error was sent from the rendercam script itself, it seems(I THINK) to be because the game object cannot be found
ERROR:SCRIPT: /rendercam/camera.script:178: Instance (null) not found
stack traceback:
[C]: in function ‘get_world_position’
/rendercam/camera.script:178: in function </rendercam/camera.script:140>
ERROR:SCRIPT: /rendercam/camera.script:178: Instance (null) not found
stack traceback:
[C]: in function ‘get_world_position’
/rendercam/camera.script:178: in function </rendercam/camera.script:140>
ERROR:SCRIPT: /rendercam/camera.script:178: Instance (null) not found
stack traceback:
[C]: in function ‘get_world_position’
/rendercam/camera.script:178: in function </rendercam/camera.script:140>
INFO:DLIB: SSDP: Done on address 172.20.10.2
i have this in my player cam script
function init(self)
local rendercam = require "rendercam.rendercam"
rendercam.follow(hash("player"), true, hash("player_camera"))
end
and for a screenshot of the game objects in the collection and the manual about following go is also up there in the topic^^^^^^^^
Sry im just used to text like this because its fast and efficient compared to using commas and periods, and this is how me and my schoolmates chat normally
If you think it’s more efficient writing that way doesn’t excuse it at all. This is not a school chat here. You have to be respectful to anyone and choose wisely your words.
game engines are made for efficiency right
Again, this is not an excuse. You HAVE to follow the rules. Being part of a community is also taking into consideration the other’s opinions.
I really don’t care how you are used to talking with your friends. Saying that someone or something is gay and meaning it in a negative sense is offensive. Period.