• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Slot Machine Animation

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am currently working on a project given by my professor.

He assigned me to work on a slot machine. Now, I am able to create 3 panels which represents my reels. And I done the animation using a swing Timer class.
However, its animation is so boring. I mean, there 5 images in each reel after some milliseconds the image change from another without any spinning effect.

I would like to create a spinning effect like those slot machines in casinos or even those simple games in desktop. I want to do this using pure swing programming. How can I do such?

I read about using graphics class and changing the y-axis every number of seconds.

How can I exactly do this?

Any code? I badly need it.

Thank you very much!
 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jc Frane wrote:However, its animation is so boring.


Welcome to the club. I detest Swing (in fact all GUI) code, and believe it to be the work of the Devil, designed to reduce normally vibrant human beings to a state of catalepsy.

Any code? I badly need it.


There, I fear, you're probably out of luck. We are NotACodeMill (←click).

Perhaps if you provided some (please, not all) of your code, and told us where you're running into problems, we might be able to help.

Winston
 
reply
    Bookmark Topic Watch Topic
  • New Topic