ShadowMario / FNF-PsychEngine

Engine originally used on Mind Games mod
Apache License 2.0
1.14k stars 2.2k forks source link

setObjectCamera doesn't work on sprites #15756

Open CappyHef opened 3 days ago

CappyHef commented 3 days ago

Describe your bug here.

so I was about to show the owner of the mod what progress had been done when the custom hud broke, after a few mins I found out it was setObjectCamera, it only works on graphics and not sprites for some reason,

Command Prompt/Terminal logs (if existing)

No response

Are you modding a build from source or with Lua?

Lua

What is your build target?

Windows

Did you edit anything in this build? If so, mention or summarize your changes.

no

acap09 commented 1 day ago

just do (assuming your using 1.0)

callMethod('spritenamehere.set_camera', {instanceArg('camGame'/'camHUD'/'camOther')})