STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229703 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2596 · P5192 |
This is the info page for Flash #64442 |
Variables tutorial I created this tutorial becouse here are many people who don´t know how to do example a score to their game. So I decided to make a tutorial to these people. Of course this tutorial is for everyone! Have fun with learning variables! |
This tutorial includes: Creating: Score Money system Password Profile |
Variables |
By neobyte |
NOTE! These tutorials work only on Flash MX and MX 2004! |
MUSIC |
MUSIC |
Make a money system to your game! Page 1 |
If you are making a game in flash you need to know about variables. There used for things like money , lives , objects and loads more things to. So hopefully by the time you’ve read this tutorial you will know the basic’s of variables ! Okay. Open up Flash MX and copy and paste this into a first frame: |
money = 10; |
MENU |
Make a money system to your game! Page 2 |
You have made a variable named "money"! Then create a button like this: |
Then create a button like this: |
You created two buttons. Minus and plus button. We will create it like if you press the minus button, money will drop down by one. If you press the plus button, money will go up by one. That will be easy so don´t say: OMG! THAT´S IMPOSSIBLE! |
Make a money system to your game! Page 3 |
Now go to a minus button actions and add this in the actions panel: |
on (release) { money -= 1; } |
And then go to a plus button actions and add this to the actions panel: |
on (release) { money += 1; } |
Make a money system to your game! Page 4 |
Then make a dynamic text field. In the properties -panel write to the Var -field "money". And now........*evil laugh*.......nothing will happen becouse you have just created your own score! Don´t believe it? Click Test movie and you will see! That´s it! Press next to see something what I created. |
Your money: |
You are in a shop and you can sell and buy items. |
BUY |
SELL |
Make a money system to your game! Page 5 |
Make a score to your game! Page 1 |
Adding a score to your game is very easy. First of all, create a button. Then put this into it: |
on (release) { score += 10; } |
Make a score to your game! Page 2 |
Then put this in the frame actions: |
score = 100; |
And finally, open up properties panel and then select the button. Write in the Var field "score". Now you have created a score to your game. Scores can be different but this is one of the score types. |
SHOOT! |
Make a password detection to your game! Page 1 |
In this tutorial you will learn how to do a password detection to your game! Example MMZ The Last Cataclysm -flash movie has a password detection.(the password was "blues" ....*evil laugh again*....now you don´t need to watch it and you can go straight in the scene selection and extras areas) okay, back what I was saying... First of all create three keyframes. The first frame will be the frame where the player types the password. Second frame will be the frame witch the player will see if he has typed the incorrect password. And the third frame will be shown if the player has typed the correct password! |
Make a password detection to your game! Page 2 |
And now I´m not going to say "That´s easy" becouse this tutorial will be fucking stressing and I felt the real pain in my neck when I writed this so be ready. -Add the stop -action to the frame -Create frame label "password" -Create a button |
In the first frame... |
Make a password detection to your game! Page 3 |
-Make an input text field -In properties panel: In Variable, name the text field, for example, myPass. -Then make a static text field and write something like "Enter your password here" -I hardly recommend you to click "show border around text" -button becouse it helps your user to know where to click in order to start entering their password. |
Make a password detection to your game! Page 4 |
-Create frame label "incorrect" -Create a button and add this into it: |
In the second frame... |
on(release){ gotoAndStop("password"); } |
-Make a static text field and write something like: "Wrong password!" |
Make a password detection to your game! Page 5 |
-Create frame label "correct" -Make a static text field and write there whatever you want. Okay! This is not so hard that I expected! Then you must create the action script! |
In the third frame... |
Make a password detection to your game! Page 6 |
I think you can remember that you just created a button into first frame. Now add this into it: |
on (press) { if (myPass == "blues") { gotoAndStop("correct"); } else { gotoAndStop("incorrect"); } } |
Make a password detection to your game! Page 7 |
Some last words... |
As you can see I used the password "blues"....*evil laugh*..... so (of course) you can change it to your own password! So you did it! Congratulations! Click next if you want to see the whole shit in action. |
Make a password detection to your game! Page 8 |
Enter you password |
Make a password detection to your game! Page 9 |
Wrong Password! What the hell? Buy a glasses or something. |
Make a password detection to your game! Page 10 |
Correct password! Great! |
Make a profile to your game! Page 1 |
In this tutorial you will learn how to make a profile to your game! (as you didn´t knew that already) -But first make an input text field. -Now at the bottom of the input text box type " profile " in to the var: box. -Then into the frame actions put the stop (stop () ) action in it. -Then make a new keyframe -In the second frame make a dynamic text box. -In the var: box type "profile" |
Make a profile to your game! Page 2 |
-Put the stop action to the second frame -Now go back to the first frame and create a button and put this into it: |
on(release) { play() } |
-Then above the button create a static text box and write something like: "Create your profile". |
And again, if you want to see this working press next. |
Make a profile to your game! Page 3 |
Create your profile: |
USE |
Make a profile to your game! Page 4 |
ActionScript [AS1/AS2]
Frame 1Mouse.hide(); startDrag ("cursor", true); stop();Frame 2stop();Instance of Symbol 39 MovieClip in Frame 2/* no clip actions */Frame 3stop();Frame 4stop();Frame 5stop();Frame 6stop();Frame 7money = 10; stop();Frame 9stop();Frame 10score = 100; stop();Frame 12stop();Frame 13stop();Frame 14stop();Frame 15stop();Frame 16stop();Frame 17stop();Frame 18stop();Frame 19stop();Frame 20stop();Frame 21stop();Frame 23stop();Frame 24stop();Frame 25stop();Frame 26stop();Symbol 11 Buttonon (release) { _root.play(); }Symbol 12 MovieClip Frame 1_root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { setProperty(bar, _xscale , PercentLoaded); } else { gotoAndStop ("loaded"); }Symbol 12 MovieClip Frame 2gotoAndPlay (1);Symbol 17 MovieClip Frame 1Mouse.hide();Symbol 17 MovieClip Frame 2Mouse.hide();Symbol 25 Buttonon (release) { gotoAndStop (9); }Symbol 28 Buttonon (release) { gotoAndStop (3); }Symbol 30 Buttonon (release) { gotoAndStop (12); }Symbol 32 Buttonon (release) { gotoAndStop (23); }Symbol 37 Buttonon (release) { this._parent.musiikit.gotoAndStop(1); this.gotoAndStop(2); }Symbol 38 Buttonon (release) { this._parent.musiikit.play(); this.musicss.gotoAndStop(1); }Symbol 39 MovieClip Frame 1stop();Symbol 39 MovieClip Frame 2stop();Symbol 44 MovieClip Frame 1stopAllSounds();Symbol 44 MovieClip Frame 17949this.gotoAndPlay(2);Symbol 49 Buttonon (release) { gotoAndStop (4); }Symbol 53 Buttonon (release) { gotoAndStop (2); }Symbol 59 Buttonon (release) { gotoAndStop (3); }Symbol 60 Buttonon (release) { gotoAndStop (5); }Symbol 66 Buttonon (release) { gotoAndStop (6); }Symbol 69 Buttonon (release) { gotoAndStop (7); }Symbol 75 Buttonon (release) { if (money >= 2) { money = money - 2; } }Symbol 77 Buttonon (release) { money = money + 2; }Symbol 80 Buttonon (release) { gotoAndStop (10); }Symbol 84 Buttonon (release) { gotoAndStop (9); }Symbol 91 Buttonon (release) { score = score + 10; }Symbol 93 Buttonon (release) { gotoAndStop (13); }Symbol 98 Buttonon (release) { gotoAndStop (12); }Symbol 99 Buttonon (release) { gotoAndStop (14); }Symbol 103 Buttonon (release) { gotoAndStop (15); }Symbol 109 Buttonon (release) { gotoAndStop (16); }Symbol 113 Buttonon (release) { gotoAndStop (17); }Symbol 117 Buttonon (release) { gotoAndStop (18); }Symbol 121 Buttonon (release) { gotoAndStop (19); }Symbol 126 Buttonon (press) { if (myPass == "blues") { gotoAndStop ("correct"); } else { gotoAndStop ("incorrect"); } }Symbol 133 Buttonon (release) { gotoAndStop (24); }Symbol 139 Buttonon (release) { gotoAndStop (23); }Symbol 140 Buttonon (release) { gotoAndStop (25); }Symbol 146 Buttonon (release) { play(); }
Library Items
Symbol 1 Graphic | Used by:Timeline | ||
Symbol 2 Graphic | Used by:3 | ||
Symbol 3 MovieClip | Uses:2 | Used by:12 | |
Symbol 4 Graphic | Used by:12 | ||
Symbol 5 Bitmap | Used by:6 | ||
Symbol 6 Graphic | Uses:5 | Used by:12 | |
Symbol 7 Graphic | Used by:11 | ||
Symbol 8 Graphic | Used by:11 | ||
Symbol 9 Graphic | Used by:11 | ||
Symbol 10 Graphic | Used by:11 | ||
Symbol 11 Button | Uses:7 8 9 10 | Used by:12 | |
Symbol 12 MovieClip | Uses:3 4 6 11 | Used by:Timeline | |
Symbol 13 Font | Used by:14 15 19 20 26 34 36 45 46 47 51 55 56 57 58 61 62 63 64 65 67 68 70 71 72 74 76 78 79 81 82 83 85 86 87 88 90 92 94 95 96 97 101 102 104 105 106 107 108 110 111 112 114 115 116 118 119 120 122 123 124 127 128 129 130 131 132 134 135 136 137 138 141 142 143 145 147 148 | ||
Symbol 14 Text | Uses:13 | Used by:Timeline | |
Symbol 15 Text | Uses:13 | Used by:Timeline | |
Symbol 16 Graphic | Used by:17 | ||
Symbol 17 MovieClip | Uses:16 | Used by:Timeline | |
Symbol 18 Graphic | Used by:Timeline | ||
Symbol 19 Text | Uses:13 | Used by:Timeline | |
Symbol 20 Text | Uses:13 | Used by:Timeline | |
Symbol 21 Graphic | Used by:Timeline | ||
Symbol 22 Graphic | Used by:25 28 30 32 | ||
Symbol 23 Graphic | Used by:25 | ||
Symbol 24 Graphic | Used by:25 28 30 32 | ||
Symbol 25 Button | Uses:22 23 24 | Used by:Timeline | |
Symbol 26 Text | Uses:13 | Used by:Timeline | |
Symbol 27 Graphic | Used by:28 | ||
Symbol 28 Button | Uses:22 27 24 | Used by:Timeline | |
Symbol 29 Graphic | Used by:30 | ||
Symbol 30 Button | Uses:22 29 24 | Used by:Timeline | |
Symbol 31 Graphic | Used by:32 | ||
Symbol 32 Button | Uses:22 31 24 | Used by:Timeline | |
Symbol 33 Graphic | Used by:37 38 | ||
Symbol 34 Text | Uses:13 | Used by:37 38 | |
Symbol 35 Graphic | Used by:37 38 | ||
Symbol 36 Text | Uses:13 | Used by:37 38 | |
Symbol 37 Button | Uses:33 34 35 36 | Used by:39 | |
Symbol 38 Button | Uses:33 34 35 36 | Used by:39 | |
Symbol 39 MovieClip | Uses:37 38 | Used by:Timeline | |
Symbol 40 Graphic | Used by:44 | ||
Symbol 41 Sound | Used by:44 | ||
Symbol 42 Sound | Used by:44 | ||
Symbol 43 Sound | Used by:44 | ||
Symbol 44 MovieClip | Uses:40 41 42 43 | Used by:Timeline | |
Symbol 45 Text | Uses:13 | Used by:Timeline | |
Symbol 46 Text | Uses:13 | Used by:Timeline | |
Symbol 47 EditableText | Uses:13 | Used by:Timeline | |
Symbol 48 Graphic | Used by:49 59 60 66 69 80 84 93 98 99 103 109 113 117 121 133 139 140 | ||
Symbol 49 Button | Uses:48 | Used by:Timeline | |
Symbol 50 Graphic | Used by:53 | ||
Symbol 51 Text | Uses:13 | Used by:53 | |
Symbol 52 Graphic | Used by:53 | ||
Symbol 53 Button | Uses:50 51 52 | Used by:Timeline | |
Symbol 54 Graphic | Used by:Timeline | ||
Symbol 55 Text | Uses:13 | Used by:Timeline | |
Symbol 56 Text | Uses:13 | Used by:Timeline | |
Symbol 57 Text | Uses:13 | Used by:Timeline | |
Symbol 58 Text | Uses:13 | Used by:Timeline | |
Symbol 59 Button | Uses:48 | Used by:Timeline | |
Symbol 60 Button | Uses:48 | Used by:Timeline | |
Symbol 61 Text | Uses:13 | Used by:Timeline | |
Symbol 62 Text | Uses:13 | Used by:Timeline | |
Symbol 63 EditableText | Uses:13 | Used by:Timeline | |
Symbol 64 Text | Uses:13 | Used by:Timeline | |
Symbol 65 EditableText | Uses:13 | Used by:Timeline | |
Symbol 66 Button | Uses:48 | Used by:Timeline | |
Symbol 67 Text | Uses:13 | Used by:Timeline | |
Symbol 68 Text | Uses:13 | Used by:Timeline | |
Symbol 69 Button | Uses:48 | Used by:Timeline | |
Symbol 70 Text | Uses:13 | Used by:Timeline | |
Symbol 71 EditableText | Uses:13 | Used by:Timeline | |
Symbol 72 Text | Uses:13 | Used by:Timeline | |
Symbol 73 Graphic | Used by:75 77 | ||
Symbol 74 Text | Uses:13 | Used by:75 | |
Symbol 75 Button | Uses:73 74 | Used by:Timeline | |
Symbol 76 Text | Uses:13 | Used by:77 | |
Symbol 77 Button | Uses:73 76 | Used by:Timeline | |
Symbol 78 Text | Uses:13 | Used by:Timeline | |
Symbol 79 Text | Uses:13 | Used by:Timeline | |
Symbol 80 Button | Uses:48 | Used by:Timeline | |
Symbol 81 Text | Uses:13 | Used by:Timeline | |
Symbol 82 EditableText | Uses:13 | Used by:Timeline | |
Symbol 83 Text | Uses:13 | Used by:Timeline | |
Symbol 84 Button | Uses:48 | Used by:Timeline | |
Symbol 85 Text | Uses:13 | Used by:Timeline | |
Symbol 86 EditableText | Uses:13 | Used by:Timeline | |
Symbol 87 Text | Uses:13 | Used by:Timeline | |
Symbol 88 EditableText | Uses:13 | Used by:Timeline | |
Symbol 89 Graphic | Used by:91 | ||
Symbol 90 Text | Uses:13 | Used by:91 | |
Symbol 91 Button | Uses:89 90 | Used by:Timeline | |
Symbol 92 Text | Uses:13 | Used by:Timeline | |
Symbol 93 Button | Uses:48 | Used by:Timeline | |
Symbol 94 Text | Uses:13 | Used by:Timeline | |
Symbol 95 Text | Uses:13 | Used by:Timeline | |
Symbol 96 Text | Uses:13 | Used by:Timeline | |
Symbol 97 Text | Uses:13 | Used by:Timeline | |
Symbol 98 Button | Uses:48 | Used by:Timeline | |
Symbol 99 Button | Uses:48 | Used by:Timeline | |
Symbol 100 Graphic | Used by:Timeline | ||
Symbol 101 Text | Uses:13 | Used by:Timeline | |
Symbol 102 Text | Uses:13 | Used by:Timeline | |
Symbol 103 Button | Uses:48 | Used by:Timeline | |
Symbol 104 Text | Uses:13 | Used by:Timeline | |
Symbol 105 Text | Uses:13 | Used by:Timeline | |
Symbol 106 Text | Uses:13 | Used by:Timeline | |
Symbol 107 EditableText | Uses:13 | Used by:Timeline | |
Symbol 108 Text | Uses:13 | Used by:Timeline | |
Symbol 109 Button | Uses:48 | Used by:Timeline | |
Symbol 110 Text | Uses:13 | Used by:Timeline | |
Symbol 111 Text | Uses:13 | Used by:Timeline | |
Symbol 112 Text | Uses:13 | Used by:Timeline | |
Symbol 113 Button | Uses:48 | Used by:Timeline | |
Symbol 114 Text | Uses:13 | Used by:Timeline | |
Symbol 115 Text | Uses:13 | Used by:Timeline | |
Symbol 116 EditableText | Uses:13 | Used by:Timeline | |
Symbol 117 Button | Uses:48 | Used by:Timeline | |
Symbol 118 Text | Uses:13 | Used by:Timeline | |
Symbol 119 Text | Uses:13 | Used by:Timeline | |
Symbol 120 Text | Uses:13 | Used by:Timeline | |
Symbol 121 Button | Uses:48 | Used by:Timeline | |
Symbol 122 Text | Uses:13 | Used by:Timeline | |
Symbol 123 Text | Uses:13 | Used by:Timeline | |
Symbol 124 EditableText | Uses:13 | Used by:Timeline | |
Symbol 125 Graphic | Used by:126 | ||
Symbol 126 Button | Uses:125 | Used by:Timeline | |
Symbol 127 Text | Uses:13 | Used by:Timeline | |
Symbol 128 Text | Uses:13 | Used by:Timeline | |
Symbol 129 Text | Uses:13 | Used by:Timeline | |
Symbol 130 Text | Uses:13 | Used by:Timeline | |
Symbol 131 Text | Uses:13 | Used by:Timeline | |
Symbol 132 Text | Uses:13 | Used by:Timeline | |
Symbol 133 Button | Uses:48 | Used by:Timeline | |
Symbol 134 Text | Uses:13 | Used by:Timeline | |
Symbol 135 Text | Uses:13 | Used by:Timeline | |
Symbol 136 EditableText | Uses:13 | Used by:Timeline | |
Symbol 137 Text | Uses:13 | Used by:Timeline | |
Symbol 138 Text | Uses:13 | Used by:Timeline | |
Symbol 139 Button | Uses:48 | Used by:Timeline | |
Symbol 140 Button | Uses:48 | Used by:Timeline | |
Symbol 141 Text | Uses:13 | Used by:Timeline | |
Symbol 142 Text | Uses:13 | Used by:Timeline | |
Symbol 143 EditableText | Uses:13 | Used by:Timeline | |
Symbol 144 Graphic | Used by:146 | ||
Symbol 145 Text | Uses:13 | Used by:146 | |
Symbol 146 Button | Uses:144 145 | Used by:Timeline | |
Symbol 147 Text | Uses:13 | Used by:Timeline | |
Symbol 148 EditableText | Uses:13 | Used by:Timeline |
Instance Names
"cursor" | Frame 1 | Symbol 17 MovieClip |
"musiikit" | Frame 2 | Symbol 44 MovieClip |
"bar" | Symbol 12 MovieClip Frame 1 | Symbol 3 MovieClip |
Labels
"password" | Frame 19 |
"incorrect" | Frame 20 |
"correct" | Frame 21 |
"loaded" | Symbol 12 MovieClip Frame 3 |
Dynamic Text Variables
money | Symbol 71 EditableText | "" |
score | Symbol 88 EditableText | "" |
myPass | Symbol 124 EditableText | "" |
profile | Symbol 143 EditableText | "" |
profile | Symbol 148 EditableText | "" |
|