Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Camera not working (demo project)

A topic by Elias__M created 16 days ago Views: 51 Replies: 8
Viewing posts 1 to 3

Hi! I've been playing around with this library (GitHub version) and I really like it! For whatever reason, the camera controls don't work, though, and I can't figure out what the issue is. For me, the camera only updates when I click the button to close the window - at least sometimes. Similarly, if I click to transition to the next demo room, nothing happens until I press the button to close the window. I tried to debug it and the update function of the camera is definitely called. Any idea why this could be happening?

oh very interesting! Hmm. I can't quite recall if the demo makes you hold left/right/middle mouse button or not? It could be that, otherwise the only thing I could think is something with a newer gm update? It uses simple mouse/wasd controls so I wouldn't assume that would have changed. Lmk if any of this works, but I can also try and take a look soon. :)

(2 edits) (+1)

Thanks for your answer, I actually figured it out! Some part of the code was trying to set the cursor-icon or something like that. I don't remember specifically what it was. Maybe that's not working on macOS or it's been deprecated in GameMaker entirely, but removing that fixed it.

Off topic, but do you think it's possible to get the shadows, depth of field and collisions from the old version of Fauxton3D running in the 2.x version or has the internal logic changed too much for that?

Shadows and collisions are totally possible! Although, you would need to implement them yourself. I cannot recommend checking out Dragonitespams 3D Collision Tutorial as well as his 3D shadows in gamemaker tutorial! Depth of field is a bit more complex, but Foxy Of Jungle's post processing effects asset handles DOF natively and supports use with 3D as well! :)

(1 edit)

Thanks a lot! :) I tried the plugin you mentioned, but for me, the blur applied is always the same regardless of depth. I enabled the setting to take depth into affect, but this does nothing. Do you have any idea what the reason could be?

I think the demo has an example project? May need to play with the camera view to get it right.

Do you mean the demo of PostProcessing FX? Oh, I see, so the camera might need a certain setup for the DoF to work?

correct! you will need to include fauxtons camera in the way that PPFX renders. :)

(1 edit)

I see, thanks :)