I am making a Slot Machine and I have 2 problems;
The first problem: The spin button only works once
The second problem: Counting the points is done each time a slot stops, that is to say three times, but I would like it to be done only once after all the slots are stopped
I would like to know if you would have any suggestions to resolve, thank you very much
The issue of only getting one spin is a bit of a tricky one. I think I know what’s going on. Could you try the following to confirm?
- Add a “Trigger Once” to “The cursor is on ButtonSPIN” event.
- Move the 2 subevents to the left by 1 level (making them normal events).
- Add the condition “The cursor is on ButtonSPIN” to the “Touch or left mouse button is down” condition.
- Add the conditions “Trigger once” and “The cursor is on ButtonSPIN” to the “Left mouse button was released” condition.
I’m going on the assumption that you’re using the mouse, and not touch.
Is the second problem an issue, or something you wish to add?
Thank you so much for the help I followed the guidance and it worked perfectly, the only thing that is bothering me is the animation, is that the slots are not moving downwards as is the standard movement of this type of game
Can you show the events that should be scrolling the slots? Or do you have them in an animation?
Yes of course, I was unable to print the screen, so I sent the project link on your profile here on the forum via message
The animation played perfectly and after it finished playing it didn’t work anymore, I was able to unlock it by adding a “Always” condition in the ButtonSPIN part, the problem is that the animation’s random rule only appears after the first animation ends and I click again on ButtonSPIN, do you have any suggestions? I sent the link to this project in the message
I solved this problem of animation, I deleted the group, I can’t believe this is working, I just need to add random in the right place to appear assorted whenever I start the game without it counting points, and only counting points after the click, that’s it joy!!
Praise be to God, I managed to solve the problem by adding the “always” as printed, and I have already posted it on Itch.io: https://edinesoft.itch.io/mastercharm
Thank you very much and God bless you !!