Hello everyone!
I’m excited to ask my first question in this amazing community and really hope you can help me out.
I’ve only been working with GDevelop for a few weeks, so I’m still fairly new to it, especially when it comes to JavaScript. I’m currently working on a cute endless runner, similar to the Chrome Dino Game.
However, I encountered an issue during my first Android export: image files in Android apps cannot exceed 2000x2000 pixels. It’s a shame that there’s no notification about this when importing assets if you’ve already selected Mobile Game in advance.
My running platform, however, is over 9000 pixels wide. So, I split the file into five separate images. But now, I’m facing the next problem: I can’t get the platforms to move in sync. Only the first image, “Gras,” moves correctly, while the others (Gras2 to Gras5) are ignored.
No matter how I adjust the formulas, only Gras1 moves and repeats endlessly. To get to the bottom of this, I started looking into JavaScript. There, I managed to get all the clouds and platforms to move uniformly. However, when exporting, the transitions between the individual images are visible, and I haven’t been able to apply the movement translation to the obstacles and collectibles. These are controlled in GDevelop using TimeDelta(), and I haven’t been able to translate this into the script correctly – in short, the obstacles and collectibles don’t sync with the platform.
Now I want to try it again directly in GDevelop. But as mentioned, the formulas don’t seem to resolve correctly, and only the first Grass image moves. When I activate Gras2 and deactivate the others, Gras2 moves as intended. However, as soon as I activate all the grass objects, only the Gras object moves, and nothing else.
My attempts:
https://i.imgur.com/vk741fK.png
https://i.imgur.com/2ZgBTEW.png
Do you have any idea where my mistake might be?
Thank you very much in advance for your support!
Pelle