Join for FREE | Take the Tour Lost Password?
Shop deviantART for the
holidays and save BIG!
Click here! :holly:
[x]

deviantART

:turbopoke:
 

Rave: TMG - Slot Machine by ~lionlancer:iconlionlancer:


©2006-2009 ~lionlancer
:iconlionlancer:

Artist's Comments

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!

Comments


love 2 2 joy 7 7 wow 1 1 mad 0 0 sad 1 1 fear 0 0 neutral 0 0
:iconfabfuzz:
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.

- Mark
:iconlionlancer:
Yey! Thank you very much for the help! I'll try that a soon as I can! ^_^

--
Please visit my gallery :gallery: [link] . Thank you very much!
:iconjerix:
Yehey!! finaly naka post na rin ang kauna-unahang Flash game natin:Dheheh...
handa mo na yung pakiriban contest natin, Weng:D... add to Fave ko na ito para kumalat agad:)... Congrats!!!:salute:

--
[link] my :gallery: ^^; Thank you so much, really appreciated... :D
:iconflashgamer:
Hey nice game. I like the sound and the graphics.
Nice job!

--
Please comment on my games and experiments
:iconmaeve-kaie:
Hi! nice game :)

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.
:iconlionlancer:
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 :gallery: [link] . Thank you very much!
:iconmaeve-kaie:
Hey,

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. :)
:iconlionlancer:
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 :gallery: [link] . Thank you very much!
:iconblackmanok:
waah!!! astig!!!! go! go! haru! pro dpat si elie yan dB? har de har

--
i don't know what to say...?
:iconlionlancer:
Ah... si Elie? Iba nilalaro nun eh. Hindi ko pa nagagawa sa flash ung kanya, nasa gamemaker pa lang ^___^' Gagawin ko rin un pag may time me. ^___^

--
Please visit my gallery :gallery: [link] . Thank you very much!

Details

April 30, 2006
575 KB
50.3 KB
100×81

Statistics

74
123 [who?]
4,523 (0 today)
371 (0 today)

Share

Link
Embed
Thumb

Site Map