Hello all! I’ve recently switched as a beginner gamedev to GDevelop after some frustrations with pure coding in general. Visual scripting seems more approachable so here is where I’m at after switching.
I’m currently working on my first project within the engine. I’ve been using Gdev for less than a week now and I hit a wall trying to animate waves for my game. I must’ve spent two days trying to make it work and I accidentally figured it out today, but I don’t quite understand why it works.
I’m making an ASCII fishing game. I’m using “~~~~” as a platform under the character sprite - It is the ocean, and each “~” is a singular WavePlatform sprite/tile, as I’ve named it.
My biggest issue was that I could not get the waves to go up and down and then loop. I tried using While but it would freeze the preview entirely, I tried timers, repeats and everything else - could not get it to loop.
Earlier today I implemented Tweens and separated them for up and down idle motions. It now works as intended, but I am not exactly sure why this loops. Here’s what I have in the events tab:
When I did it I was kind of trying random things together, so I’m a bit lost on how exactly this works and why it loops.
If I remove the “trigger once” condition, it doesn’t work, and if I disable my "Tween ‘WaveDown’ " event under it, it also doesn’t work. I could not figure out a way to use less actions or events. Maybe this is due to my lack of logical knowledge when it comes to programming - I could not get very far with python at all.
If anyone could provide a deeper insight of why all of this works, a breakdown would be extremely appreciated! Thank you. Sorry if it’s kind of a weird question. I’m trying to learn from it.