Name: Rave The Mini Games – Slot Machine
Featuring: Haru Glory
Format: Flash Game
Game Difficulty: Easy
Flash Version: Flash MX
Flash Player Version: Flash Player 6
Frame Rate: 24 fps
Frame Size: 550 x 400 pixels
Total # line-of-codes: 3000+ (auto format on)
Date Started: March 20, 2006
Date Finished: April 29, 2006
Have fun playing this simple yet fun and addictive (NOT!) game!
Whew! Finished at last! I’m just a beginner in Flash. I just started learning this incredible software last March 2006. I made this game only to understand and to learn Flash and how Flash Actionscript works. If you’re wondering how a beginner like me made a game just like an intermediate in just a short span of 1 month? That is because I’m a programmer. I already know programming language like C and Java, Actionscript works the same way as them so it wouldn’t be hard for me to understand. This game covered most of the basics of creating flash games/animations such as drawings, tweening and frame-by-frame animations, putting sound into flash, creating buttons, etc. While I’m working with this game, I learned a lot!
This game features a simple A.I.: Haru Glory reacts to whatever is happening during the game, whenever he win, he laughs or cries; or whenever he lose, he gets sad are angry; and when you make fun of him, he gets mad; and many more. Despite of that PRETTY COOL (for me) feature, it lacks intro and ending animation… I tried to make an intro before, but the pictures in the game turns into a low-res. It happens when I add another scene or add another frame into the movie. So, I disposed off the idea of making an intro and ending animation sequence. I’ll add that later (in Elie’s game, Haru and Elie went to the casino to earn some money. While Haru is playing slot machine, Elie is playing another game).
The game looks simple but its source code isn’t. The game is full of branching if-else statements, and also lots of comparisons in just one statement. It isn’t hard for me ‘coz I’m used to it. I hope I can be one of those cool dudes making those cool games someday. That’s the job I really wanted, a game programmer. I know its hard get this job but I’ll try my best and will do everything to accomplish that.
OK, enough of that. This game is only one of the “Rave Mini Games” I’m going to make (I’m a fan of Rave Master/Groove Adventure Rave). I’ve already made this game and other rave mini games in Game Maker by Mark Overmars (if you don’t know that software, take a peek at this site: www.gamemaker.com) but they are still unfinished.
You will notice the screen is white and empty because the game is loading. Please wait for about 2 ½ minutes (for 56k modem) or less (for DSL/cable connection) for the game to load. Sorry about that, I don’t know how to make a loading screen… I’ll put it next time. Does anyone know how to do it? And also, how can I save the high score?
Even though I’m finished with, there might still be a hole in my coding. So if you notice anything wrong or if you want to change or add something, feel free to tell me. Any critiques are welcome. Thank you for playing!
Hey, nice game, I like how you check if you're close to a jackpot and have him say something if you are, that's a really nice touch. The sound and art are really well done too. This is great for a first try at flash.
Flash loaders aren't too hard to make, there's really only two functions you need to know:
getBytesLoaded() and getBytesTotal()
Those will return the number of bytes of your file loaded so far, and the total size of your file respectively.
You can make a really simple loading screen by adding a new frame at the beginning of your file, saying loading, or something like that, and if your game starts on frame two, just put this code in:
_root.onEnterFrame = function () {
if (getBytesLoaded() == getBytesTotal() ){
gotoAndStop(2);
}
}
using those two methods, you can get into much more interesting stuff like a loading bar, etc, but the code above should get you started. Hope that helps, if you need any other help with flash, feel free to ask, and I'll see what I can do.
Yehey!! finaly naka post na rin ang kauna-unahang Flash game natinheheh...
handa mo na yung pakiriban contest natin, Weng... add to Fave ko na ito para kumalat agad... Congrats!!!
-- [link] my Thank you so much, really appreciated...
With regards to a preloader you can make a movie clip symbol that will do something sequential ie a box going from a small size and growing or something like making the slot handle slowly go upwards till it reaches the top position then hitting jackpot and the game loads? [link] for an example.
This movie clip has to be 100 frames long in its animation. Create a new layer in the preloader and put a stop action ( stop(); ) on the first frame of this new layer.
In the main timeline have an areas called "preloader" or whatever you like. then put the main part of the game as "start" or whatever you like. You do this by creating a new layer in the main timeline that will be used for labels of areas - so you insert a key frame at frame 1 - call that instance of that frame "preloader" then go a few frames down and call that "start" where all your game parts are.
Click on the movie clip symbol and go into the Actions window and paste this code in...
Optional extra to put the % value on the screen is [link] = myPercent; in that code which requires a dynamic text box to be created on the stage called myPercentBox.
For a step by step explanation, with screenshots, please refer to: [link]
Or send me a note or comment and I will get back to you ASAP.
thanks for the help! i relly apprecited it.
I have some questions...
i don't know how to fix it, when i add a new scene or a new keyframe in the main timeline, the picture/sprites i've imported turns into a low-res or its smoothing and anti-aliasing is gone when I test the movie. Do you know how to fix it?
--
Please visit my gallery [link] . Thank you very much!
Sorry for taking so long to get back to you... been busy with assignments.
I’m REALLY new to everything in the multimedia world... But will try to give you any ideas i have on how to fix this. You would have probably tried every idea i come up with.
Flash is a vector program - ie images aren’t made up of little squares like most graphics made in say photoshop. So when you import an image and you could have created it smaller than the stage size it might be getting stretched (or transformed) by you or the program increasing the visibility of the squared-ness, perhaps?
When you import.. Are you importing to the library or to the stage? i would say library is better...?
[link] .... you can import...BMP, JPG, PNG, GIF and PICT (and others). maybe your trying to import an illustrator or photoshop file in?
Also try converting the images to vector in Flash. Using the Modify > Bitmap > Trace Bitmap You will have to play around with the settings to get the desired result though.
Hope something in here helped or at least set someone else down the right path.
Sorry for the long reply.... I always import images and sounds to the library. Most of the images are in .gif format. When I run the movie with only one frame on the main timeline and only one scene, the smoothing works perfectly unlike otherwise even though I've edited the images in the firewoks, the smoothing is gone even though I didn't stretched the image...
I tried trace bitmap, it's cool but not in all occasions, so I'll won't use that one, for now.
So, thanks for the help anyway even though it didn't help a lot, atl east I learned some lesson. ^_^'
--
Please visit my gallery [link] . Thank you very much!
New deals posted everyday, starting Black Friday and running through the holiday season! No hassles, no lines - just awesome savings on art, deviantWEAR, Premium Memberships and more!
You'll find a huge collection of the most amazing Redhead Beauties collected over the past months browsing the photography galleries. If you love redheads, true ginger or just colored don't miss this collection!
Daily Literature Deviations is a group that is dedicated to bringing literature to the forefront of the deviantArt community. We attempt to accomplish this by daily featuring Literature artists from around the community that deserve the recognition, but are not getting it. Each day we will feature 5 deviations from the Literature categories in a News Article.
In order to support the artists that we feature, we ask that you the news article as well as check out the individual pieces. We understand that each day you may not be able to check out each and every one of the pieces, everyone has their own things going on. We just ask that you make an attempt to help support the growing Literature community.
Daily Literature Deviations is a group that is dedicated to bringing literature to the forefront of the deviantArt community. We attempt to accomplish this by daily featuring Literature artists from around the community that deserve the recognition, but are not getting it.
Each day we will feature 5 deviations from the Literature categories in a News Article. In order to support the artists that we feature, we ask that you the news article as well as check out the individual pieces. We understand that each day you may not be able to check out each and every one of the pieces, everyone has their own things going on. We just ask that you make an attempt to help support the growing Literature community.
^Ikue has been a devious member of our community for almost 7 years and in this time he has proven to be nothing short of dedicated and devoted. Whilst volunteering his time over the last 22 months as a Gallery Moderator within the Community Relations Team, Chris has brought the Vector gallery and many vector artists directly into the spotlight. ^Ikue's commitment to the community is evident in everything he touches and you can always find him reaching out to others with an encouraging word. Chris is a natural leader with a vibrant and empathic personality, and is a role model for deviants everywhere. It's ev... Read More
Comments
Flash loaders aren't too hard to make, there's really only two functions you need to know:
getBytesLoaded() and getBytesTotal()
Those will return the number of bytes of your file loaded so far, and the total size of your file respectively.
You can make a really simple loading screen by adding a new frame at the beginning of your file, saying loading, or something like that, and if your game starts on frame two, just put this code in:
_root.onEnterFrame = function () {
if (getBytesLoaded() == getBytesTotal() ){
gotoAndStop(2);
}
}
using those two methods, you can get into much more interesting stuff like a loading bar, etc, but the code above should get you started. Hope that helps, if you need any other help with flash, feel free to ask, and I'll see what I can do.
- Mark
--
Please visit my gallery
handa mo na yung pakiriban contest natin, Weng
--
[link] my
Nice job!
--
Please comment on my games and experiments
With regards to a preloader you can make a movie clip symbol that will do something sequential ie a box going from a small size and growing or something like making the slot handle slowly go upwards till it reaches the top position then hitting jackpot and the game loads? [link] for an example.
This movie clip has to be 100 frames long in its animation. Create a new layer in the preloader and put a stop action ( stop(); ) on the first frame of this new layer.
In the main timeline have an areas called "preloader" or whatever you like. then put the main part of the game as "start" or whatever you like. You do this by creating a new layer in the main timeline that will be used for labels of areas - so you insert a key frame at frame 1 - call that instance of that frame "preloader" then go a few frames down and call that "start" where all your game parts are.
Click on the movie clip symbol and go into the Actions window and paste this code in...
onClipEvent(enterFrame){
myPercent = Math.floor( (_parent.getBytesLoaded() / _parent.getBytesTotal()) *100 );
this.gotoAndStop(myPercent);
if(myPercent == 100){
_parent.gotoAndPlay("start");
}
}
Optional extra to put the % value on the screen is [link] = myPercent; in that code which requires a dynamic text box to be created on the stage called myPercentBox.
For a step by step explanation, with screenshots, please refer to: [link]
Or send me a note or comment and I will get back to you ASAP.
Hope this helped.
I have some questions...
i don't know how to fix it, when i add a new scene or a new keyframe in the main timeline, the picture/sprites i've imported turns into a low-res or its smoothing and anti-aliasing is gone when I test the movie. Do you know how to fix it?
--
Please visit my gallery
Sorry for taking so long to get back to you... been busy with assignments.
I’m REALLY new to everything in the multimedia world... But will try to give you any ideas i have on how to fix this. You would have probably tried every idea i come up with.
Flash is a vector program - ie images aren’t made up of little squares like most graphics made in say photoshop. So when you import an image and you could have created it smaller than the stage size it might be getting stretched (or transformed) by you or the program increasing the visibility of the squared-ness, perhaps?
When you import.. Are you importing to the library or to the stage? i would say library is better...?
[link] .... you can import...BMP, JPG, PNG, GIF and PICT (and others). maybe your trying to import an illustrator or photoshop file in?
Also try converting the images to vector in Flash. Using the Modify > Bitmap > Trace Bitmap You will have to play around with the settings to get the desired result though.
Hope something in here helped or at least set someone else down the right path.
I tried trace bitmap, it's cool but not in all occasions, so I'll won't use that one, for now.
So, thanks for the help anyway even though it didn't help a lot, atl east I learned some lesson. ^_^'
--
Please visit my gallery
--
i don't know what to say...?
--
Please visit my gallery
Previous Page12345...Next Page