I am working in a company. my project is a casino's slot machine game

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rohitraj157100

I am working in a company. my project is a casino’s slot machine game. i am new to work on godot. Can you please provide me a sample code that how “how images spins in top to bottom”. when click on spin button.

here is some example of slot machine game clip- https://www.youtube.com/watch?v=gB_ofZcTsZE

i need this spin source code. please help me

:bust_in_silhouette: Reply From: kidscancode

You’re unlikely to find the exact code needed for your project. If that were the case, then game development would be very easy.

Instead, if you’re going to be developing games in Godot, you should be focused on learning how. How to code, how to create images and animations, and how to use the Godot engine to build what you need. Frankly, if you’re doing this professionally, these are things you should already know.

That said, if you start with the Step-by-step section of the docs, you’ll learn many techniques you can apply to building a basic version of your project: button, moving images, etc.

I have learnt some coding part from docs. like how to move image, set and get position, screen size, inheritance of scene. I need one help . A peice of code “How to reel image like in slot game”… please give me a favour. I saw too many tutorial but not got any seems like concept

rohitraj157100 | 2019-03-18 16:11

Kidscancode, can you tell us whats the best to achive that spinning image roll? since im looking to - not looking for code but the best way to look at… since im new to godot c#…

Azevedo | 2019-03-19 01:32

As with any programming challenge you need to break it down into its parts.

Maybe you could use a Viewport to only show the images as they move past. Alternatively, you could probably build the whole thing with UI nodes.

As for examples, you might take a look at Mister Taft Creates, he’s been demonstrating in depth how to make a match-3 style game, which could share a lot of concepts with your project.

kidscancode | 2019-03-19 01:37

Thanks, that was very helpful

Mason_Stevenson | 2022-09-17 15:45

:bust_in_silhouette: Reply From: ArdellaPolinski

First set the visible window to best basketball betting site an inline block to ensure its external performance and similarly, then set overflow: hidden; Be aware of the control of the visible area.