Can't add elements to parallax any more?

Godot Version

4.3 stable

Question

I swear I did this successfully recently.

I have a scene of a simple black and white starfield (Control → TextureRect). I’ve added children to the TextureRect; each is a Sprite2D glow/glint with a script that randomly fades them in and out. The scene is dropped into a Parallax2D node (note: I’ve tried other configurations too).

Take a look: https://postimg.cc/7CXSXP7Q

Note how the glints don’t align on repeats, just the prime. The repeated versions offset all the glints. Each repeat to the right is moved up more, and each to the left is moved down more (if I set Repeat Times higher).

ALSO perhaps related, repeats delete the background properly, but not the glints: https://postimg.cc/vDx6xtPK
I’ve unsuccessfully tried parenting to different node types.

I’m having a little trouble understanding your setup, but first off, did you look at the tutorial? You may find some insight into your issues.

Thanks Mark, but nothing beyond the basics :confused:
This node tree might help illustrate what I’m attempting: https://postimg.cc/jLhM05xX

Hm. I can’t tell at a glance, but if you wouldn’t mind sharing your project or a minimal reproduction, I’d be happy to tell you what’s wrong and how to fix it.

I would really appreciate that! smh I just can’t figure it out. Here’s a simplified test that demonstrates the issue: https://mega.nz/file/DEJWQBJA#cJbvfx5Trx-1is2_k90jZYlMmqMUs3hWpojhvy-FLVk

Ah! I think I see what the matter is: All of your glints are rotated. There was a bug that was recently fixed that seems to fit the bill. The fix will be in 4.3.1, but if you can’t wait, it’s also in 4.4 dev1 that was released the other day as well.

Aha–thank you Mark–looks promising! Fingers are crossed. Glad it should be possible. Maybe I’ll try 4.4 dev1 to confirm

I tried 4.4 dev 1 and the scene works great. Can’t wait!

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.