Slot Machine emulation
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Slot Machine emulation
I want to display a number in a label
and have it move up the way the cylinders
in a slot machine move.
Perhaps using a graphic of the numbers:
1
2
3
4
etc. and moving the graphic.
Any suggestions welcome.
and have it move up the way the cylinders
in a slot machine move.
Perhaps using a graphic of the numbers:
1
2
3
4
etc. and moving the graphic.
Any suggestions welcome.
Life is just a bowl of cherries.
Re: Slot Machine emulation
Hi,
I am struggling to use RunRev to create a Slot Machine Emulation. Does anyone here have any idea how to use RunRev to create a Slot Machine Emulation? If you do, can you please teach me? Or if you have the script code, can you please share with me?
Thanks,
JYST
I am struggling to use RunRev to create a Slot Machine Emulation. Does anyone here have any idea how to use RunRev to create a Slot Machine Emulation? If you do, can you please teach me? Or if you have the script code, can you please share with me?
Thanks,
JYST
Re: Slot Machine emulation
Hi ystan,
have a look here
http://forums.runrev.com/phpBB2/viewtop ... ine#p27536
there is a slot machine among the links. It is not a iOS native slotmachine, has some quirks but runs.
Unfortunately I dont get the endless scrolling to work seamlessly with the iOS-native scroller.
Kind regards
Bernd
have a look here
http://forums.runrev.com/phpBB2/viewtop ... ine#p27536
there is a slot machine among the links. It is not a iOS native slotmachine, has some quirks but runs.
Unfortunately I dont get the endless scrolling to work seamlessly with the iOS-native scroller.
Kind regards
Bernd
Re: Slot Machine emulation
I threw a small gadget together. Try it and see if it does something like what you asked for.
Make a LOCKED field "F7" that is four lines tall. Make a button.
In the button script put:
In the field script put :
Click on the button, then click on the field as often as you like. You might adjust the delays and number of repeats. This will at least give you an idea how to play around a bit.
Craig Newman
Make a LOCKED field "F7" that is four lines tall. Make a button.
In the button script put:
Code: Select all
on mouseUp
put "1" & return & "2" & return & "3" & return & "4" & return into fld "F7"
end mouseUp
Code: Select all
on mouseUp
put 20 into tScroll
put 16 into tDelay
repeat 10
set the scroll of me to the scroll of me + tScroll
wait tDelay
subtract 2 from tScroll
add 2 to tDelay
end repeat
end mouseUp
on mouseDown
put the last line of me into temp
repeat with y = temp + 1 to (temp +40)
put y mod 10 & return after accum
end repeat
put accum into me
end mouseDown
Craig Newman
Re: Slot Machine emulation
Ystan,
could you give a little more info what your slot machine is supposed to do. I guess you want images for your slot machine. How do you want to operate it, by pressing a button? Is it supposed to be a game? etc.
What Craig posted is a way to do it. Remember that you can display images in a field. look up imageSource in the dictionary.
Kind regards
Bernd
could you give a little more info what your slot machine is supposed to do. I guess you want images for your slot machine. How do you want to operate it, by pressing a button? Is it supposed to be a game? etc.
What Craig posted is a way to do it. Remember that you can display images in a field. look up imageSource in the dictionary.
Kind regards
Bernd
Re: Slot Machine emulation
Hi Bernd,
Thanks a lot for the prompt reply! Appreciate it so much.
Here is what I am looking for a Slot Machine Emulator (Casino).
The Slot Machine Emulator should act like real slot machine emulator that we see in casinos. Yes, it should include different images like you've just mentioned in the last message. Also, it would be great to include effects such as sounds, visual aids, credits, money and points button. I am not sure if that make sense to you. I hope so. If not, please let me know asap.
Thanks,
JYST
Thanks a lot for the prompt reply! Appreciate it so much.
Here is what I am looking for a Slot Machine Emulator (Casino).
The Slot Machine Emulator should act like real slot machine emulator that we see in casinos. Yes, it should include different images like you've just mentioned in the last message. Also, it would be great to include effects such as sounds, visual aids, credits, money and points button. I am not sure if that make sense to you. I hope so. If not, please let me know asap.
Thanks,
JYST
Re: Slot Machine emulation
Hi Bernd,
I am wondering if you able to find out the way of how to create the slot machine emulator (casino) yet? Appreciate it if you do.
Thanks,
JYST
I am wondering if you able to find out the way of how to create the slot machine emulator (casino) yet? Appreciate it if you do.
Thanks,
JYST
Re: Slot Machine emulation
Hi Ystan,
I put together a stack with graphics in a group that you can scroll if you click on it and move the mouse up and down while the mouse is down.
I am afraid that is not what you expect.
BUT it contains most of the elements of a casino type slot machine. You would have to get acquainted with the concepts in that stack and adapt it to your needs / develop your own. I strongly recommend working through the tutorials and lessons.
Kind regards
Bernd
I put together a stack with graphics in a group that you can scroll if you click on it and move the mouse up and down while the mouse is down.
I am afraid that is not what you expect.
BUT it contains most of the elements of a casino type slot machine. You would have to get acquainted with the concepts in that stack and adapt it to your needs / develop your own. I strongly recommend working through the tutorials and lessons.
Kind regards
Bernd
- Attachments
-
- scroll casino slot machine.livecode.zip
- (1.95 KiB) Downloaded 580 times
-
- VIP Livecode Opensource Backer
- Posts: 8
- Joined: Wed Jul 05, 2006 2:00 pm
- Contact:
Re: Slot Machine emulation
If you download the example, please be aware that the graphic must have re-sized itself....you have to "shrink" its vertical length or there will be nothing to scroll. Decrease the vertical height to only 2 or 3 color squares....and there ya go.
-
- Livecode Opensource Backer
- Posts: 10078
- Joined: Fri Feb 19, 2010 10:17 am