STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229595 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
This is resource JJRZADB, a Archived Thread.
Original location: http://cgi.4chan.org/f/res/978595.html Recognized format: Yes, thread post count is 7. Discovered flash files: 1 File :[ball test.swf] - (2 KB) [_] [G] beginner at flash coding, need help Anonymous 05/13/09(Wed)12:05 No.978595 Just trying to get the basics of a game going here. I'm really a beginner at flash so any help appreciated I've got the ball moving around but the collision isn't working correctly as you can tell if you play around with it for a bit What do I do? >> [_] script on ball Anonymous 05/13/09(Wed)12:06 No.978597 onClipEvent (enterFrame) { if (Key.isDown(Key.LEFT)) { _x=_x-10; } if (Key.isDown(Key.UP)) { _y=_y-10; } if (Key.isDown(Key.RIGHT)) { _x=_x+10; } if (Key.isDown(Key.DOWN)) { _y=_y+10; } if (hitTest(this._parent.rBlock)==true) { _x=_x-10; } if (hitTest(this._parent.lBlock)==true) { _x=_x+10; } if (hitTest(this._parent.bBlock)==true) { _y=_y-10; } if (hitTest(this._parent.tBlock)==true) { _y=_y+10; } if (hitTest(this._parent.cBlock)==true) { _x=_x-10; } if (hitTest(this._parent.cBlock)==true) { _x=_x+10; } if (hitTest(this._parent.cBlock)==true) { _y=_y-10; } if (hitTest(this._parent.cBlock)==true) { _y=_y+10; } } >> [_] Anonymous 05/13/09(Wed)12:18 No.978601 Pretty good stuff, bro. Though, does Flash have something like a SWITCH or CASE statement? If it does, it might make for tidier programming. >> [_] Friendsofsandwiches 05/13/09(Wed)12:55 No.978613 That reminds me, anyone seen anything more on the Tornado flash guy? >> [_] tinycat !!NqU6wU7JQ+v 05/13/09(Wed)13:06 No.978617 >'ve got the ball moving around but the collision isn't working correctly as you can tell if you |
|