Slot Machine emulation
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: Slot Machine emulation
Hi,
I wanted to show this effect can easily be expanded to multiple rows (and probably additional columns).
Mike
I wanted to show this effect can easily be expanded to multiple rows (and probably additional columns).
Mike
- Attachments
-
- Slot Machine 3 Row Reel FX.livecode.zip
- (128.83 KiB) Downloaded 9 times
Re: Slot Machine emulation
Hi,
I wanted to show the extensibility of my approach to spinning slot machine reels by adding an additional two columns but with images the file size is too large to post here. I tweaked to use fields instead of images. The zip'd file is < 4k.
This opens up some new possibilities to explore because you should be able to change the displayed text in the fields "on the fly".
-Mike
I wanted to show the extensibility of my approach to spinning slot machine reels by adding an additional two columns but with images the file size is too large to post here. I tweaked to use fields instead of images. The zip'd file is < 4k.
This opens up some new possibilities to explore because you should be able to change the displayed text in the fields "on the fly".
-Mike
- Attachments
-
- MR Slot Machine Game Fields Test.livecode.zip
- (3.39 KiB) Downloaded 6 times
Re: Slot Machine emulation
Hi Mike,
I always use buttons with their icon set when I need to display one or more images more than once in my stack(s).
Best
Klaus
I always use buttons with their icon set when I need to display one or more images more than once in my stack(s).
Best
Klaus
-
richmond62
- Livecode Opensource Backer

- Posts: 10220
- Joined: Fri Feb 19, 2010 10:17 am
Re: Slot Machine emulation
Of course you can also use graphic objects with their backGroundPattern set to the image you want to use.
Re: Slot Machine emulation
Hi,
Thanks for the tips, I'll try both suggestions and do a comparison on speed and file size. I've used both methods in the past but frankly forgot about the backgroundPattern set to an image.
Thanks,
Mike
Thanks for the tips, I'll try both suggestions and do a comparison on speed and file size. I've used both methods in the past but frankly forgot about the backgroundPattern set to an image.
Thanks,
Mike
Re: Slot Machine emulation
Hi,
Here is something similar to a slot machine I made many years ago. It uses a game loop for animating three scrolling fields.
It has a lot of eye candy and features.
I had to provide images in 2 zipped folders because of size restrictions. The images are just test images. Put them into 1 folder and then use the stack "ScrollingImages" to import the unified folder. For that use at the top right the checkbox "show/hide loading". First import the images via the upper button "importAndResizeImages", once imported use the lower button "loadThisFieldIntoWheel(s)" to set up the scrolling fields.
You can use your own folder of images to import images. Images are automatically resized to 160 by 120 pixel. The original images are not touched.
Because of the dimensions landscape images are recommended. Also the aspect ratio of 4X3 is recommended to avoid distortion.
Use button "startAutoScrollforAll3" to start the scrolling. You can use the sliders to adjust speed and direction of scrolling.
You can also scroll manually with the mouse or pressing the mouse and initiate a scroll by moving the mouse.
Do not use "accelerated rendering" because it slows down the scroll.
"create image overly" replaces the graphics with a snapshot of the graphics to speed up scrolling. This was more important 12 years ago than today because the overall speed with current computers has increased considerably.
See also help (?).
Kind regards
Bernd
Here is something similar to a slot machine I made many years ago. It uses a game loop for animating three scrolling fields.
It has a lot of eye candy and features.
I had to provide images in 2 zipped folders because of size restrictions. The images are just test images. Put them into 1 folder and then use the stack "ScrollingImages" to import the unified folder. For that use at the top right the checkbox "show/hide loading". First import the images via the upper button "importAndResizeImages", once imported use the lower button "loadThisFieldIntoWheel(s)" to set up the scrolling fields.
You can use your own folder of images to import images. Images are automatically resized to 160 by 120 pixel. The original images are not touched.
Because of the dimensions landscape images are recommended. Also the aspect ratio of 4X3 is recommended to avoid distortion.
Use button "startAutoScrollforAll3" to start the scrolling. You can use the sliders to adjust speed and direction of scrolling.
You can also scroll manually with the mouse or pressing the mouse and initiate a scroll by moving the mouse.
Do not use "accelerated rendering" because it slows down the scroll.
"create image overly" replaces the graphics with a snapshot of the graphics to speed up scrolling. This was more important 12 years ago than today because the overall speed with current computers has increased considerably.
See also help (?).
Kind regards
Bernd
- Attachments
-
- scrollingImages_0_1_3 Kopie.livecode.zip
- (17.34 KiB) Downloaded 5 times
-
- Images_Part1.zip
- (214.19 KiB) Downloaded 5 times
-
- Images_Part2.zip
- (220.98 KiB) Downloaded 5 times
Re: Slot Machine emulation
Hi,
bn: That is an impressive stack! I tried the group scrolling technique a few years ago working on a slot machine simulator but with only partial success. I am looking forward to studying your stack.
- Mike
bn: That is an impressive stack! I tried the group scrolling technique a few years ago working on a slot machine simulator but with only partial success. I am looking forward to studying your stack.
- Mike
