deviant art

Deviant Login Shop  Join deviantART for FREE Take the Tour

The Journal Portal

Tune into the voice of the community by checking out deviantART's Journal Portal. Join the conversation by browsing, adding faves, and leaving comments, or submit your own Journal to let your voice be heard.

Submit Journal

Community Mood

  • Love
  • Joy
  • Wow!
  • Affection
  • Adoration
  • Love 22755
  • Joy 18478
  • Wow! 4703
  • Affection 1752
  • Adoration 1069

Polls

What is your preferred drawing software?

Vote! (48,490 votes) 3,352 comments
87,292 Deviants Online

Flash Tutorial: Making a Game

Journal Entry: Sat May 18, 2013, 2:19 PM


Buttons to change colours must ALWAYS be on the same layer with the thing you want it to change the colour of or it will not work

I am using MacromediaFlash8

Explanation:
Code needed after adding keyframes inside of a moiveclip(only used onkeyframes):

stop();

Doing this stops the clip from running like a normal animation


Code for items that need to be draged and droped(only used on movieclips):

on(press) {
startDrag(this);
}
on(release)
{
stopDrag();
Mouse.show();
}

This allows you to move things, use this on the clothing items or accessories.


Code to change colour (only used on buttons):

on (press) {
_root.instantname.gotoAndStop(1);
}

the instant name that you gave to your movie clip will replace "instantname" between root. and .goto
The frame number that the colour you want the button to lead to will go inbetween the ( );

When you have an item that you can drag and drop and change colour
- turn it into a button, then a movie clip
-give movieclip an instant name
-right click the movie clip and click actions, add:

on(press) {
startDrag(this);
}
on(release)
{
stopDrag();
Mouse.show();
}

-Then double click the clip to edit the keyframes inside it
-add keyframes with F6
-right click the drawing in each of those keyframe, all but the first one, and click "break apart"
this will allow you to draw on it
-edit the colours
-go out of the clip and add buttons
-select buttons and press F8 and change them into a button
-then right click, then actions and paste:

on (press) {
_root.instantname.gotoAndStop(1);
}

-Put the instant name you gave the moiveclip in the instante name spot, and the number of keyframes in was in the clip
-Press ctrl enter to view your game and make sure it works

Make sure you save reguarly
to publish, you can go to: file, publish
or press ctrl F12

(finished game here: )

forget the other animation i said i was gonna do this one is gonna be different more of an inspirational theme the music is in this link
[link]

Characters im gonna use (its a secret)
Plot- about a girl that needs to find her way through struggles and challenges but each challenge is a symbol that represents something
End of Results