STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228068
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2560 · P5120

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

Bounce Physics Tutorial.swf

This is the info page for
Flash #73615

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


Text
Bounce:

0000

0000

0000

Gravity:

Speed:

Reset
Stats

Reset
Stats

Reset
Stats

XMOVE

000

000

GRAV

ActionScript [AS1/AS2]

Frame 1
gravity = 1; bounce = 1; speed = 15;
Instance of Symbol 2 MovieClip "ball" in Frame 1
onClipEvent (load) { _root.grav = 0; _root.xmove = 0; } onClipEvent (enterFrame) { this._y = this._y + _root.grav; _root.grav = _root.grav + _root._root.gravity; this._x = this._x + _root.xmove; if (_root.ground.hitTest(_x, _y, true)) { _root.grav = _root.grav * (-_root.bounce); } if (_root.restart.hitTest(_x, _y, true)) { this._x = 265; this._y = 190; _root.grav = 0; _root.xmove = 0; } if (_root.walls.hitTest(_x, _y, true)) { _root.xmove = _root.xmove * -1; } if (Key.isDown(37)) { _root.xmove = _root.xmove - 1; } if (Key.isDown(39)) { _root.xmove = _root.xmove + 1; } if (((!Key.isDown(39)) && (!Key.isDown(37))) && (_root.xmove > 0)) { _root.xmove = _root.xmove - 1; } if (((!Key.isDown(39)) && (!Key.isDown(37))) && (_root.xmove < 0)) { _root.xmove = _root.xmove + 1; } if (_root.xmove > _root.speed) { _root.xmove = _root.speed; } if (_root.xmove < (-_root.speed)) { _root.xmove = -_root.speed; } }
Symbol 15 Button
on (release) { bounce = bounce + 0.01; }
Symbol 16 Button
on (release) { gravity = gravity + 1; }
Symbol 17 Button
on (release) { speed = speed + 1; }
Symbol 18 Button
on (release) { speed = speed - 1; }
Symbol 19 Button
on (release) { gravity = gravity - 1; }
Symbol 20 Button
on (release) { bounce = bounce - 0.01; }
Symbol 29 Button
on (release) { bounce = 1; speed = 15; gravity = 1; ball._x = 265; ball._y = 190; grav = 0; xmove = 0; }

Library Items

Symbol 1 GraphicUsed by:2
Symbol 2 MovieClipUses:1Used by:Timeline
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClipUses:3Used by:Timeline
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClipUses:5Used by:Timeline
Symbol 7 FontUsed by:8 9 10 11 12 13 23
Symbol 8 TextUses:7Used by:Timeline
Symbol 9 EditableTextUses:7Used by:Timeline
Symbol 10 EditableTextUses:7Used by:Timeline
Symbol 11 EditableTextUses:7Used by:Timeline
Symbol 12 TextUses:7Used by:Timeline
Symbol 13 TextUses:7Used by:Timeline
Symbol 14 GraphicUsed by:15 16 17 18 19 20
Symbol 15 ButtonUses:14Used by:Timeline
Symbol 16 ButtonUses:14Used by:Timeline
Symbol 17 ButtonUses:14Used by:Timeline
Symbol 18 ButtonUses:14Used by:Timeline
Symbol 19 ButtonUses:14Used by:Timeline
Symbol 20 ButtonUses:14Used by:Timeline
Symbol 21 GraphicUsed by:22
Symbol 22 MovieClipUses:21Used by:Timeline
Symbol 23 TextUses:7Used by:29
Symbol 24 FontUsed by:25
Symbol 25 TextUses:24Used by:29
Symbol 26 FontUsed by:27
Symbol 27 TextUses:26Used by:29
Symbol 28 GraphicUsed by:29
Symbol 29 ButtonUses:23 25 27 28Used by:Timeline
Symbol 30 FontUsed by:31 32 33 36
Symbol 31 TextUses:30Used by:Timeline
Symbol 32 EditableTextUses:30Used by:Timeline
Symbol 33 EditableTextUses:30Used by:Timeline
Symbol 34 GraphicUsed by:35
Symbol 35 MovieClipUses:34Used by:Timeline
Symbol 36 TextUses:30Used by:Timeline
Symbol 37 SoundUsed by:Timeline

Instance Names

"ball"Frame 1Symbol 2 MovieClip
"ground"Frame 1Symbol 4 MovieClip
"walls"Frame 1Symbol 6 MovieClip
"restart"Frame 1Symbol 22 MovieClip

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS1/AS2.
Protect (24)Timeline Frame 10 bytes ""

Dynamic Text Variables

bounceSymbol 9 EditableText"0000"
gravitySymbol 10 EditableText"0000"
speedSymbol 11 EditableText"0000"
xmoveSymbol 32 EditableText"000"
gravSymbol 33 EditableText"000"




http://swfchan.com/15/73615/info.shtml
Created: 8/4 -2019 04:42:04 Last modified: 8/4 -2019 04:42:04 Server time: 28/04 -2024 10:07:25