   fruit machine
  hey guys,I am working on a fruit machine idea but am stumped on how to scroll the reels. I have arrays which hold each wheel in etc and I loop though them ok. thats the easy bit. the reels role that way easly but I can''t think of a way of attaching the graphics to it. cheersMonk 
  You could use a variable to track the angle, most likely a float. It would start at 0.0f, and you would increment it by 1.0f or whatever speed you want to create the illusion of movement. You would render the graphic by rotating the image by whatever ammount you chose, and increment angle to keep track of where it is. If my idea doesn''t make much sense to you, please tell me.   Scott Simontise-mail:ageofscott@NOSPAM.comcast.netAIM:ssimontis ;  yeah it kinda makes sense if I were doing it in 3d.alas I am doing it in 2d. I have a image for each section of the real. red 7 is one section2 cherries are another etc. red 7 has a key value of 1 in a my reel array. reel1[1,2,3,4,5,6,7,8,9,0]reel2[1,2,3,4,5,6,7,8,9,0]reel3[1,2,3,4,5,6,7,8,9,0]red7,2cherries,1bar etcso I loop though them starting to get the reel values.they have different amounts to spin 30 for reel1 35 for reel 2 and 40 reel 3. so they don''t spin the same amount.when a player holds a wheel they then that reel is not spun etc.I am just babbling now I''ll stop.I''ll suppose I could have a start of pos and render each section slightly lower than the last time to achive that effect. ;  Draw frames of the reels rotating. Then simply load all of them up and draw them one by one, just like you''d animate anything. I don''t see why there''s any special problem here. ;  Hi there, i''m creating a fruit machine for my final year uni project so i may able to help, first what what programs are you using c++/Java Directx/opengl, it may be that you have to set your class up to link a particular pic to a certain part of you arrry, it also might be worth making an animation class to create a spin effect by simplely flashing up each image for a sec/(m/s) then end on the image off your final array. regards godfather   ;  a simple fruit machine for a final year project? sheesh.. ;  yer, when your in your final year at uni you get marked on your research(15,000 words) in the project field not on the programming itself, but I will tell you if you program a fruit machine properly it not very simple at all, my project is about 3000-4000 lines of code, that with out any graphics, or feature board, just to spin and randomly(in accordance to law) and pay out wins.   