So I just started to try to build something in Gdevelop 2 days ago. I originally started in Gadot and have been trying that for a few months on and off again, but decided to try something different. Gdevelop seems to be easier so I’m actively trying to see where this takes me.
I have a few issues that I’m dealing with and I haven’t been able to get the result that I am needing despite having researched it. The camera on gdevlop seems to be this things achilleas heel… I have done nothing but fight with it ever since starting to learn.
I am trying to make a simple 2d platform game. My first issue is that things hardly ever line up where i place them on the canvas…sometimes it works and sometimes it doesn’t and i don’t understand why.
Canvas Placement:
(redacted…only allowed to post 1 picture because of forum rules)
After following a few tutorials on youtube exactly as specified. I find that I almost never get the same results as what is shown. In this example, what I’m aiming for is to have a background and platforms that moves to the left as the character moves to the right…seems simple enough, but In my current example, the platform does not move, but the background does move. Also note that I have a camera sprite set up to be followed according to a tutorial I followed…his example worked ideally…mine didn’t.
Any help here is appreciated…please explain at a kindergarten level.
For 1 you there is a button to turn on a grid that makes lining up things much easier and 2 go to add action and look for center position x(I thinks it x I get them confused sometimes) then search for your background in the action and select your player and it’s x position that should be it if you need some videos or pictures just let me know
I have this perfectly aligned the way i would expect to see it in game, but when I launch the game It puts things in different positions than what I had them on the canvas
What layer are the platform objects and player on? Usually the default layer of scene objects is the base layer, in which case you’ll need to adjust the camera position of that layer too
After some more tinkering, these settings seem to get the camera to the desired result i was looking for. I still stand by my original statement that the camera system on this platform is this things achilleas heel. Everything else I’ve managed to accomplish with some reasonable difficulty, but pressing on. Thanks for the help everyone
Although it’s takes a little getting used to the idea that each layer has a camera, it can be really useful. I think it may be that GDevelop’s way of doing some things is different to how it’s done in Godot (and even Unity’s).
Regarding your events screen snip, I’d suggest moving the Camera object first, and then centre the layer cameras on it as the final event.
Moved these to the top and tinkered around with the order of things, but this is what I landed on; Any other order and I seemed to get wonky results. Thanks for your advice on this.
Hmmm, that may suggest issues elsewhere? Because what’s happening now is that the rendered scene is a frame behind what should actually be rendered. It’s not a biggie, but I find it interesting that any other order gives undesirable results.
After I’ve been using this a while and a lot of research i fight with this a little bit less now… Here is a screenshot of my settings for a level that is on 1 plain for the camera