STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229672 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2596 · P5191 |
This is resource GTHNCIG, an Archived Thread.
Original location: http://boards.4chan.org/f/thread/2998756/learning-macro… Recognized format: Yes, thread post count is 25. Discovered flash files: 1 File: haruhi build2.swf-(5.4 MB, 550x400, Loop) [_] Learning Macromedia 8 John2wa 01/14/16(Thu)05:14:14 No.2998756 Thanks for all the support you guys gave me yesterday! I somehow managed to write up some code to randomize the text spawn, and there is currently 10 different texts that can come up at current. Let me know if you happen across any glitches, or anything spelled wrong. And, if there's something you think could be added to make this look better. In the next update, I plan to: 1.) Have the earth rotate. 2.) Implement more text. Hope you guys enjoy! :D Marked for deletion (old). >> [_] John2wa 01/14/16(Thu)05:16:01 No.2998757 Also, does anyone know how to make the screen fit properly? The flash goes off to the right, and it doesn't do that when I open the raw file. >> [_] Anonymous 01/14/16(Thu)06:10:47 No.2998769 >>2998756 it doesn't display a 0 for single digits, so 3:09 becomes 3:9 >> [_] John2wa 01/14/16(Thu)06:15:34 No.2998770 >>2998769 I see what you mean. I'll try and get that fixed too. Thanks. >> [_] Anonymous 01/14/16(Thu)06:17:10 No.2998771 >>2998769 Also, the music doesn't keep looping. After 7 mins it stops. >> [_] Anonymous 01/14/16(Thu)06:30:14 No.2998776 I don't know how programming in AS works, but I would suggest when fixing >>2998771 Don't have a long song, you just need to know if it loops probably, have a short song, or just a beep. If you hear "beep", then something is wrong, if you hear "beepbeepbeepbeepbeepbeep..." then it works and you can put the song you want into it. But as a stated before, I have no experience with AS. >> [_] John2wa 01/14/16(Thu)06:41:11 No.2998781 >>2998771 Gee, there's more that needs fixed here than I thought. XD Good find! I will fix it! >>2998776 That's a good idea. I probably would have just listened to the whole thing to see if it looped. XD >> [_] Anonymous 01/14/16(Thu)06:51:24 No.2998784 >Macromedia It's been adobe's thing for years... >> [_] Anonymous 01/14/16(Thu)06:58:12 No.2998788 >The flash goes off to the right Does it, though? Seems fine to me... In any case, try tweaking the stage.scaleMode property. >> [_] Anonymous 01/14/16(Thu)08:29:19 No.2998802 >>2998756 this is cool keep working on it >> [_] John2wa 01/14/16(Thu)08:44:36 No.2998808 >>2998784 You can see my newbness showing. >>2998788 I think it's based off of the size of the window when you open the flash. Making the background super should make this fit in all windows. >>2998802 Will do! Glad you like it! :D >> [_] Anonymous 01/14/16(Thu)09:34:44 No.2998833 >>2998756 Eyy, you did it, nice. >>2998771 As for this, just try a while loop with a condition that will never be true. >> [_] Anonymous 01/14/16(Thu)09:38:08 No.2998836 >>2998833 *false >> [_] partyhard !n21TE7QU8U 01/14/16(Thu)10:03:07 No.2998842 Ahh i saw your post yesterday i love this so much but the song needs like action or bass >> [_] John2wa 01/14/16(Thu)10:20:13 No.2998848 >>2998833 Fixing the loop problem shouldn't be hard,(I think, lol) there's a lot of easy soulutions that come to mind. My biggest problem right now is figuring out how to make the earth rotate, with out having the file size too large. Since I have different text's branching off, I used stop and loop commands to separate them, but this makes having a constantly moving background hard. Does that make sense? ldk, but I'm sure there's a solution. Yuki-chan.swf found one, so I'm sure I can, anyway. >>2998842 Not sure, I wanted the music to this to be relaxing. I'll try out some other remix's, but I think I'm going to stick with this. We'll see. :) >> [_] Anonymous 01/14/16(Thu)11:08:27 No.2998865 >>2998848 Hmm, rotating the earth sounds hard. Like, do you want it to rotate in real time? If that's the case then my first assumption would be to have a picture of the earth in the layer underneath this image, and just scroll it slowly. If you want to go for some 3D object, sounds like it will be a lot tougher. I have no idea how actionscript works, but from what I've seen it looks a little bit like javascript, so maybe this could be of some help: http://marcneuwirth.com/blog/2012/06/24/creating-the-earth-with-d3-js/ >> [_] Anonymous 01/14/16(Thu)11:11:48 No.2998867 >>2998865 Also loads of examples on the D3 library in javascript here: http://d3js.org/ I don't see it being very useful for flash, but maybe you'll find a way to take a flat image and make it have the appearance of rotating using some azimuthal angle thing. You're gonna be fixed where you're looking at it from, so the only parts that will change are the x and y, so it will be x=rcos(theta) and y=rsin(theta). >> [_] Anonymous 01/14/16(Thu)11:16:11 No.2998871 >>2998848 >Since I have different text's branching off, I used stop and loop commands to separate them Why? Text can be changed by the code, no need to have a separate frame for every text. Say you have 10 different of these sayings, generate a whole number between 0 and 11 and use that number in a switch statement to determine what the text will display. Btw, people say that coding on the timeline is bad practice and it gets too messy, so try to avoid it. >> [_] Anonymous 01/14/16(Thu)11:32:20 No.2998879 >>2998756 Good job anon! Keep working on this! I would suggest you change the font maybe, that sort of default-looking font doesn't help the mood of the flash. >> [_] John2wa 01/14/16(Thu)11:33:16 No.2998880 >>2998867 Well, contrary to what the other anon posted, I have a solution, but I'm worried about file size. So first off, if you didn't already know, the background image in this swf is actually a mp4 video. What I play to do is have 1 full rotation, set it to loop, then put it for all 10 different texts. Now, I'm pretty sure this will add up to over 10 MB, and I would have to lower the resolution to make it work, but I don't want to do that, which brings me to the other anon's message. >>2998871 If I can manage to change the code so all the text would function on the same frames, it would lower file size considerably. As to wheater or not I can do this, well, we'll see. I'll post some of the code, in case you guys are curious as to how I have things set up. >> [_] John2wa 01/14/16(Thu)11:38:28 No.2998881 mario = random (10) +1; if (mario==1) { gotoAndPlay(21); } if (mario==2) { gotoAndPlay(3); } if (mario==3) { gotoAndPlay(5); } if (mario==4) { gotoAndPlay(7); } if (mario==5) { gotoAndPlay(8); } if (mario==6) { gotoAndPlay(11); } if (mario==7) { gotoAndPlay(13); } if (mario==8) { gotoAndPlay(15); } if (mario==9) { gotoAndPlay(17); } if (mario==10) { gotoAndPlay(19); } Yeah, I picked mario for a var name just cuz. :P lol Anyway, this happens on frame 1, which sends you to a random odd frame 3-21. From there, I have this command: gotoAndPlay(x-1); Which goes back 1 frame, and performs the loop, holding the random text. Now, I'll look into getting all the text to appear on the same frame, but I don't know if I'll be able to, with my level of knowledge. It took everything I had to figure this out, since I'm such a scrub at Action Script. (Never touched it before) lol >> [_] Anonymous 01/14/16(Thu)11:44:29 No.2998883 >>2998770 Just a little snippet for this: secondString = seconds > 9 ? seconds : "0" + seconds; // do the same for minutes. >> [_] John2wa 01/14/16(Thu)12:29:24 No.2998900 >>2998883 I'll try it out. Thanks! :) >> [_] Anonymous 01/14/16(Thu)12:35:50 No.2998905 maybe turn this: mytime = new Date(); _root.time = mytime.getHours() + ":" + mytime.getMinutes() + ":" + mytime.getSeconds(); into a function. And don't ask me how. Dunno. >> [_] John2wa 01/14/16(Thu)12:42:12 No.2998909 >>2998905 That's the function I used for this flash. XD |
|