STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229595 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
A Very Merry Christmas! |
This is the info page for Flash #55901 |
PLAY |
PLAY |
Overhead RPG Tutorial |
Welcome to SickSticks Overhead RPG Tutorial! This tutorial will take you through the basic steps of making an Overhead RPG Game! So press 'Next' to get started! |
NEXT |
NEXT |
Created By SickStick |
Music Off |
Music On |
Music Off |
Music On |
Right then! This is what we are hopefully going to make! |
Frame 1 Frame 2 Frame 3 Frame 4 Frame 5 Frame 6 Frame 7 Frame 8 |
Now, first thing we need to do is make our charcter (Ctrl + F8) make an MC and name it 'Main' unless you want to be unorganised, call it whatever you want. I'm making my charater a stickman, but if you want to use sprites or something else, good for you. Now make 8 frames, each with a stop(); action on them. Frame 1: Have your character facing upwards not moving. Frame 2: Have your character facing downwards not moving. Frame 3: Have your character facing right not moving. Frame 4: Have your character facing left not moving. Frame 5: Make a movieclip with an animation of him walking upwards in it. Frame 6: Rotate Frame 5's movieclip, to make your character face downwards. Frame 7: Rotate Frame 5's movieclip, to make your character face right. Frame 8: Rotate Frame 5's movieclip, to make your character face left. |
Now, go back to the main scene and open up the Library (Ctrl + L) and place 'Main' onto the stage. Now click on your character and give it the instance name of 'player' without the quote marks. Next, open up the actions panel, and copy and paste these actions into it. |
<p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>//Overhead Tutorial Script</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>//By SickStick</b></font></p><p align="left"></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>onClipEvent(load){</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>speed=5;//Change 5 to whatever speed you want</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>onClipEvent(enterFrame){</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>if(Key.isDown(Key.UP)){</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>this._y-=speed;</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>this.gotoAndStop(5);//Tells flash to change frame when the up key is pressed</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>if(Key.isDown(Key.DOWN)){</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>this._y+=speed;</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>this.gotoAndStop(6);//Tells flash to change frame when the down key is pressed</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>if(Key.isDown(Key.RIGHT)){</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>this._x+=speed;</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>this.gotoAndStop(7);//Tells flash to change frame when the right key is pressed</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>if(Key.isDown(Key.LEFT)){</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>this._x-=speed;</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>this.gotoAndStop(8);//Tells flash to change frame when the left key is pressed</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>onClipEvent(enterFrame){</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>if(this._x>550){//Assuming your stage width is 550, if not change to whatever your stage width is </b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>this._x=420;//Assuming your stage width is 550, if not change to whatever your stage width is</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>if(this._x<0){</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>this._x=0;</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>if(this._y>400){//Assuming your stage height is 400, if not change to whatever your stage height is</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>this._y=400;//Assuming your stage width is 400, if not change to whatever your stage height is</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>if(this._y<0){</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>this._y=0;</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p><p align="left"><font face="Arial" size="2" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p> |
Now, go back into 'Main and go back to Frame 5. Click on the movieclip on Frame 5, open up the actions panel and put this in. Now, on the next frame do the same thing as before but this time put this script onto the animated movieclip. |
<p align="left"><font face="Arial" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>onClipEvent(enterFrame){</b></font></p><p align="left"><font face="Arial" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>if(!Key.isDown(Key.DOWN)){</b></font></p><p align="left"><font face="Arial" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>_root.player.gotoAndStop(2);</b></font></p><p align="left"><font face="Arial" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p><p align="left"><font face="Arial" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p> |
<p align="left"><font face="Arial" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>onClipEvent(enterFrame){</b></font></p><p align="left"><font face="Arial" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>if(!Key.isDown(Key.UP)){</b></font></p><p align="left"><font face="Arial" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>_root.player.gotoAndStop(1);</b></font></p><p align="left"><font face="Arial" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p><p align="left"><font face="Arial" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p> |
Now, on the next frame do the same thing as before but this time put this script onto the animated movieclip. Yeh, you kind of get the idea, but it's the way flash is! Just put this on the last movieclip and you're done! |
<p align="left"><font face="Arial" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>onClipEvent(enterFrame){</b></font></p><p align="left"><font face="Arial" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>if(!Key.isDown(Key.RIGHT)){</b></font></p><p align="left"><font face="Arial" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>_root.player.gotoAndStop(3);</b></font></p><p align="left"><font face="Arial" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p><p align="left"><font face="Arial" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p><p align="left"></p> |
<p align="left"><font face="Arial" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>onClipEvent(enterFrame){</b></font></p><p align="left"><font face="Arial" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>if(!Key.isDown(Key.LEFT)){</b></font></p><p align="left"><font face="Arial" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>_root.player.gotoAndStop(4);</b></font></p><p align="left"><font face="Arial" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p><p align="left"><font face="Arial" size="9" color="#ffffff" letterSpacing="0.000000" kerning="1"><b>}</b></font></p> |
Facts: Time Taken: 4 hours! Frames: 7 Music: Panic! At The Disco - I Write Sins Not Tragedies Programs used: Macromedia Flash. Credits: Everything By SickStick CHECK OUT MY NEXT TUTORIAL: ADVANCED OVERHEAD TUTORIAL! INCLUDING SPEED UPS! A CAMERA THAT FOLLOWS YOUR PLAYER! SCORING! DOORS WHICH LEAD TO ANOTHER PLACE! AND WALLS! |
AGAIN |
AGAIN |
ActionScript [AS1/AS2]
Frame 2stop();Frame 3stop(); c = Camera.get(); webCam.attachVideo(c);Instance of Symbol 50 MovieClip "player" in Frame 3onClipEvent (load) { speed = 5; } onClipEvent (enterFrame) { if (Key.isDown(38)) { this._y = this._y - speed; this.gotoAndStop(5); } if (Key.isDown(40)) { this._y = this._y + speed; this.gotoAndStop(6); } if (Key.isDown(39)) { this._x = this._x + speed; this.gotoAndStop(7); } if (Key.isDown(37)) { this._x = this._x - speed; this.gotoAndStop(8); } } onClipEvent (enterFrame) { if (this._x > 550) { this._x = 550; } if (this._x < 0) { this._x = 0; } if (this._y > 400) { this._y = 400; } if (this._y < 0) { this._y = 0; } }Frame 4stop();Instance of Symbol 49 MovieClip in Frame 4onClipEvent (enterFrame) { if (!Key.isDown(38)) { _root.player.gotoAndStop(1); } }Instance of Symbol 49 MovieClip in Frame 4onClipEvent (enterFrame) { if (!Key.isDown(40)) { _root.player.gotoAndStop(2); } }Instance of Symbol 49 MovieClip in Frame 4onClipEvent (enterFrame) { if (!Key.isDown(39)) { _root.player.gotoAndStop(3); } }Instance of Symbol 49 MovieClip in Frame 4onClipEvent (enterFrame) { if (!Key.isDown(37)) { _root.player.gotoAndStop(4); } }Frame 5stop();Frame 6stop();Frame 7stop();Frame 8stop();Frame 9stopAllSounds(); gotoAndPlay ("2");Symbol 10 Buttonon (release) { _root.play(); }Instance of Symbol 4 MovieClip in Symbol 11 MovieClip Frame 1onClipEvent (load) { _root.stop(); _parent.stop(); } onClipEvent (enterFrame) { var bytes = _root.getBytesTotal(); var bytes_loaded = _root.getBytesLoaded(); kbl = int(bytes_loaded / 1024); kbt = int(bytes / 1024); percent = (bytes_loaded / bytes) * 100; pc = int(percent); _parent.mask._alpha = 100 - pc; _width = (percent * 2.8); _root.plpc = ((((pc + "% LOADED - ") + kbl) + " OF ") + kbt) + " KB"; if (bytes_loaded == bytes) { _parent.gotoAndStop(2); } }Symbol 20 Buttonon (release) { play(); }Symbol 24 Buttonon (release) { nextFrame(); }Symbol 29 Buttonon (release) { prevFrame(); }Symbol 30 MovieClip Frame 1stop();Symbol 30 MovieClip Frame 2stopAllSounds();Symbol 50 MovieClip Frame 1stop();Symbol 50 MovieClip Frame 2stop();Symbol 50 MovieClip Frame 3stop();Symbol 50 MovieClip Frame 4stop();Symbol 50 MovieClip Frame 5stop();Instance of Symbol 49 MovieClip in Symbol 50 MovieClip Frame 5onClipEvent (enterFrame) { if (!Key.isDown(38)) { _root.player.gotoAndStop(1); } }Symbol 50 MovieClip Frame 6stop();Instance of Symbol 49 MovieClip in Symbol 50 MovieClip Frame 6onClipEvent (enterFrame) { if (!Key.isDown(40)) { _root.player.gotoAndStop(2); } }Symbol 50 MovieClip Frame 7stop();Instance of Symbol 49 MovieClip in Symbol 50 MovieClip Frame 7onClipEvent (enterFrame) { if (!Key.isDown(39)) { _root.player.gotoAndStop(3); } }Symbol 50 MovieClip Frame 8stop();Instance of Symbol 49 MovieClip in Symbol 50 MovieClip Frame 8onClipEvent (enterFrame) { if (!Key.isDown(37)) { _root.player.gotoAndStop(4); } }Symbol 69 Buttonon (release) { play(); }
Library Items
Symbol 1 Graphic | Used by:2 | |
Symbol 2 MovieClip | Uses:1 | Used by:Timeline |
Symbol 3 Graphic | Used by:4 | |
Symbol 4 MovieClip | Uses:3 | Used by:11 |
Symbol 5 Font | Used by:6 8 9 | |
Symbol 6 EditableText | Uses:5 | Used by:11 |
Symbol 7 Graphic | Used by:11 | |
Symbol 8 Text | Uses:5 | Used by:10 |
Symbol 9 Text | Uses:5 | Used by:10 |
Symbol 10 Button | Uses:8 9 | Used by:11 |
Symbol 11 MovieClip | Uses:4 6 7 10 | Used by:Timeline |
Symbol 12 Font | Used by:13 14 21 22 25 27 28 54 56 57 59 60 61 62 63 64 65 66 | |
Symbol 13 Text | Uses:12 | Used by:Timeline |
Symbol 14 Text | Uses:12 | Used by:Timeline |
Symbol 15 Graphic | Used by:20 69 | |
Symbol 16 Font | Used by:17 19 67 68 | |
Symbol 17 Text | Uses:16 | Used by:20 |
Symbol 18 Graphic | Used by:20 69 | |
Symbol 19 Text | Uses:16 | Used by:20 |
Symbol 20 Button | Uses:15 17 18 19 | Used by:Timeline |
Symbol 21 Text | Uses:12 | Used by:Timeline |
Symbol 22 Text | Uses:12 | Used by:24 |
Symbol 23 Graphic | Used by:24 | |
Symbol 24 Button | Uses:22 23 | Used by:30 |
Symbol 25 Text | Uses:12 | Used by:30 |
Symbol 26 MovieClip | Uses:SS1 | Used by:30 |
Symbol 27 Text | Uses:12 | Used by:30 |
Symbol 28 Text | Uses:12 | Used by:29 |
Symbol 29 Button | Uses:28 | Used by:30 |
Symbol 30 MovieClip | Uses:24 25 26 27 29 | Used by:Timeline |
Symbol 31 Graphic | Used by:Timeline | |
Symbol 32 Graphic | Used by:50 | |
Symbol 33 Graphic | Used by:50 | |
Symbol 34 Graphic | Used by:50 | |
Symbol 35 Graphic | Used by:50 | |
Symbol 36 Graphic | Used by:49 | |
Symbol 37 Graphic | Used by:49 | |
Symbol 38 Graphic | Used by:49 | |
Symbol 39 Graphic | Used by:49 | |
Symbol 40 Graphic | Used by:49 | |
Symbol 41 Graphic | Used by:49 | |
Symbol 42 Graphic | Used by:49 | |
Symbol 43 Graphic | Used by:49 | |
Symbol 44 Graphic | Used by:49 | |
Symbol 45 Graphic | Used by:49 | |
Symbol 46 Graphic | Used by:49 | |
Symbol 47 Graphic | Used by:49 | |
Symbol 48 Graphic | Used by:49 | |
Symbol 49 MovieClip | Uses:36 37 38 39 40 41 42 43 44 45 46 47 48 | Used by:50 Timeline |
Symbol 50 MovieClip | Uses:32 33 34 35 49 | Used by:Timeline |
Symbol 51 Font | Used by:52 59 61 62 64 65 66 | |
Symbol 52 Text | Uses:51 | Used by:Timeline |
Symbol 53 Graphic | Used by:Timeline | |
Symbol 54 Text | Uses:12 | Used by:Timeline |
Symbol 55 Graphic | Used by:Timeline | |
Symbol 56 Text | Uses:12 | Used by:Timeline |
Symbol 57 Text | Uses:12 | Used by:Timeline |
Symbol 58 Graphic | Used by:Timeline | |
Symbol 59 EditableText | Uses:12 51 | Used by:Timeline |
Symbol 60 Text | Uses:12 | Used by:Timeline |
Symbol 61 EditableText | Uses:12 51 | Used by:Timeline |
Symbol 62 EditableText | Uses:12 51 | Used by:Timeline |
Symbol 63 Text | Uses:12 | Used by:Timeline |
Symbol 64 EditableText | Uses:12 51 | Used by:Timeline |
Symbol 65 EditableText | Uses:12 51 | Used by:Timeline |
Symbol 66 Text | Uses:12 51 | Used by:Timeline |
Symbol 67 Text | Uses:16 | Used by:69 |
Symbol 68 Text | Uses:16 | Used by:69 |
Symbol 69 Button | Uses:15 67 18 68 | Used by:Timeline |
Streaming Sound 1 | Used by:Symbol 26 MovieClip |
Instance Names
"player" | Frame 3 | Symbol 50 MovieClip |
Special Tags
Protect (24) | Timeline Frame 1 | 31 bytes "..$1$DP$nFHVchplEb.DP3irEg3ee1." |
Dynamic Text Variables
_root.plpc | Symbol 6 EditableText | "" |
|