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!


<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/11437470?noj=FRM11437470-23DC" width="1" height="1"></div>

Tutorial - Overhead RPG.swf

This is the info page for
Flash #55901

(Click the ID number above for more basic data on this flash file.)


Text
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&gt;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&lt;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&gt;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&lt;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 2
stop();
Frame 3
stop(); c = Camera.get(); webCam.attachVideo(c);
Instance of Symbol 50 MovieClip "player" in Frame 3
onClipEvent (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 4
stop();
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (enterFrame) { if (!Key.isDown(38)) { _root.player.gotoAndStop(1); } }
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (enterFrame) { if (!Key.isDown(40)) { _root.player.gotoAndStop(2); } }
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (enterFrame) { if (!Key.isDown(39)) { _root.player.gotoAndStop(3); } }
Instance of Symbol 49 MovieClip in Frame 4
onClipEvent (enterFrame) { if (!Key.isDown(37)) { _root.player.gotoAndStop(4); } }
Frame 5
stop();
Frame 6
stop();
Frame 7
stop();
Frame 8
stop();
Frame 9
stopAllSounds(); gotoAndPlay ("2");
Symbol 10 Button
on (release) { _root.play(); }
Instance of Symbol 4 MovieClip in Symbol 11 MovieClip Frame 1
onClipEvent (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 Button
on (release) { play(); }
Symbol 24 Button
on (release) { nextFrame(); }
Symbol 29 Button
on (release) { prevFrame(); }
Symbol 30 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 2
stopAllSounds();
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 2
stop();
Symbol 50 MovieClip Frame 3
stop();
Symbol 50 MovieClip Frame 4
stop();
Symbol 50 MovieClip Frame 5
stop();
Instance of Symbol 49 MovieClip in Symbol 50 MovieClip Frame 5
onClipEvent (enterFrame) { if (!Key.isDown(38)) { _root.player.gotoAndStop(1); } }
Symbol 50 MovieClip Frame 6
stop();
Instance of Symbol 49 MovieClip in Symbol 50 MovieClip Frame 6
onClipEvent (enterFrame) { if (!Key.isDown(40)) { _root.player.gotoAndStop(2); } }
Symbol 50 MovieClip Frame 7
stop();
Instance of Symbol 49 MovieClip in Symbol 50 MovieClip Frame 7
onClipEvent (enterFrame) { if (!Key.isDown(39)) { _root.player.gotoAndStop(3); } }
Symbol 50 MovieClip Frame 8
stop();
Instance of Symbol 49 MovieClip in Symbol 50 MovieClip Frame 8
onClipEvent (enterFrame) { if (!Key.isDown(37)) { _root.player.gotoAndStop(4); } }
Symbol 69 Button
on (release) { play(); }

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClipUses:1Used by:Timeline
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClipUses:3Used by:11
Symbol 5 FontUsed by:6 8 9
Symbol 6 EditableTextUses:5Used by:11
Symbol 7 GraphicUsed by:11
Symbol 8 TextUses:5Used by:10
Symbol 9 TextUses:5Used by:10
Symbol 10 ButtonUses:8 9Used by:11
Symbol 11 MovieClipUses:4 6 7 10Used by:Timeline
Symbol 12 FontUsed by:13 14 21 22 25 27 28 54 56 57 59 60 61 62 63 64 65 66
Symbol 13 TextUses:12Used by:Timeline
Symbol 14 TextUses:12Used by:Timeline
Symbol 15 GraphicUsed by:20 69
Symbol 16 FontUsed by:17 19 67 68
Symbol 17 TextUses:16Used by:20
Symbol 18 GraphicUsed by:20 69
Symbol 19 TextUses:16Used by:20
Symbol 20 ButtonUses:15 17 18 19Used by:Timeline
Symbol 21 TextUses:12Used by:Timeline
Symbol 22 TextUses:12Used by:24
Symbol 23 GraphicUsed by:24
Symbol 24 ButtonUses:22 23Used by:30
Symbol 25 TextUses:12Used by:30
Symbol 26 MovieClipUses:SS1Used by:30
Symbol 27 TextUses:12Used by:30
Symbol 28 TextUses:12Used by:29
Symbol 29 ButtonUses:28Used by:30
Symbol 30 MovieClipUses:24 25 26 27 29Used by:Timeline
Symbol 31 GraphicUsed by:Timeline
Symbol 32 GraphicUsed by:50
Symbol 33 GraphicUsed by:50
Symbol 34 GraphicUsed by:50
Symbol 35 GraphicUsed by:50
Symbol 36 GraphicUsed by:49
Symbol 37 GraphicUsed by:49
Symbol 38 GraphicUsed by:49
Symbol 39 GraphicUsed by:49
Symbol 40 GraphicUsed by:49
Symbol 41 GraphicUsed by:49
Symbol 42 GraphicUsed by:49
Symbol 43 GraphicUsed by:49
Symbol 44 GraphicUsed by:49
Symbol 45 GraphicUsed by:49
Symbol 46 GraphicUsed by:49
Symbol 47 GraphicUsed by:49
Symbol 48 GraphicUsed by:49
Symbol 49 MovieClipUses:36 37 38 39 40 41 42 43 44 45 46 47 48Used by:50  Timeline
Symbol 50 MovieClipUses:32 33 34 35 49Used by:Timeline
Symbol 51 FontUsed by:52 59 61 62 64 65 66
Symbol 52 TextUses:51Used by:Timeline
Symbol 53 GraphicUsed by:Timeline
Symbol 54 TextUses:12Used by:Timeline
Symbol 55 GraphicUsed by:Timeline
Symbol 56 TextUses:12Used by:Timeline
Symbol 57 TextUses:12Used by:Timeline
Symbol 58 GraphicUsed by:Timeline
Symbol 59 EditableTextUses:12 51Used by:Timeline
Symbol 60 TextUses:12Used by:Timeline
Symbol 61 EditableTextUses:12 51Used by:Timeline
Symbol 62 EditableTextUses:12 51Used by:Timeline
Symbol 63 TextUses:12Used by:Timeline
Symbol 64 EditableTextUses:12 51Used by:Timeline
Symbol 65 EditableTextUses:12 51Used by:Timeline
Symbol 66 TextUses:12 51Used by:Timeline
Symbol 67 TextUses:16Used by:69
Symbol 68 TextUses:16Used by:69
Symbol 69 ButtonUses:15 67 18 68Used by:Timeline
Streaming Sound 1Used by:Symbol 26 MovieClip

Instance Names

"player"Frame 3Symbol 50 MovieClip

Special Tags

Protect (24)Timeline Frame 131 bytes "..$1$DP$nFHVchplEb.DP3irEg3ee1."

Dynamic Text Variables

_root.plpcSymbol 6 EditableText""




http://swfchan.com/12/55901/info.shtml
Created: 19/4 -2019 23:36:17 Last modified: 19/4 -2019 23:36:17 Server time: 23/12 -2024 00:48:40