Need help big time with my program (i personally wouldn't quite call it a game considering what i'm doing)

Godot Version

Godot 4

Question

ok, i’m really new to Godot and to Programming, in general, and i’m trying to make a slot machine (not one of those normal slot machine, it’s more of an item picker, with the animation similar to the Mario Kart one, where the items cycles until certain time)

so far, i’ve gotten fairly well, i managed to make the mechanic where when you click on the handle, it starts spinning until some time. i got the basic part of it down, but i’m having major issues on the animations, and in the interactions for the rest of the thing:

i can’t set up a scene as default with a frame frozen (like, the frame still until you click on the button, then the animation starts and the settings expand). i’m having the most issues on that part because i don’t quite know how to set up an interaction that involves triggering animations.

i’m also having issues linking my sliders to the values of the spin duration of the slots, and the cycling speed of those items, i kind of got them working by debugging and making a print command to see if the sliders were working but i still haven’t tested on whether it’ll actually work or not.

and even with GPT on my side, helping with the stuff, i’m not getting nowhere at all with this issue because i don’t know if i’m pretty much mixing stuff up in my scenes or it’s JUST the code that has issues and could be optimized aswell.

Here’s my Project, if you guys wanna look deeper into it:

and help or tutorial i can have is appreciated, thank you in advance!

edit: fixed the link, it should have the right project files, especially because as i’m writing this, i’m trying to fix the slot machine mechanic, especially because it broke completely when i started tweaking the sliders

How do you do the animations? Are you using a animationplayer or a animatedsprite?

i’m using AnimationPlayer for the animations.

also, imma see if i can resend the project again, because i’m seeing and i just noticed that i screwed up the files when i zipped it

And you are having trouble starting the animation on a specific event?

yea, i’m trying to put like, i want the scene to start like in the pic
image

but instead, it shows the settings already expanded, and the sliders don’t work, which isn’t surprising because they wasn’t working anyway.

Are the settings expanded inside the editor-scene?

yea. especially because idk how to properly set up an animation state as default until pressing a button (or the Area 2D the tab-like button is in) in this case. even if i set the animation as collapsed, it still gets expanded in the main scene

sorry if i’m taking too long to answer btw, i’m working on the project as we’re talking

You can do a so called “RESET”-track where you can key all the original states and then you can play the animation

yea, i managed to fix it, i just had to save the animation and its groups and whatnot, now it stopped resetting the animations, but now i can’t even set it up, tried thousands of ways to make the settings screen to play and expand its settings on an animation when clicking on the tabbed area. (i also fixed the code responsible for the slots, it was because the itemcycle’s code was running twice, one in the node and another one as autoload)

like, the animation is all set up, there’s a name and everything, and has a fairly organized hierarchy, especially the settings tab is its own scene, but it just doesn’t play when i click on the collisionshape2d area, there’s no errors but nothing happens either. Is there something on the inspector tab i should look out for? because clearly it’s not anything on the code at all

Are you sure that this method gets called? Put a print-statement inside the method that calls to play the animation so you can check if its being called