RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (Full Version)

All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy



Message


flsg -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/9/2008 10:16:16)

shattered I don't think I fully understand what you're talking about here, but the group stays the same group, and if you modify it, everytime that group appears, it will be changed to the newest state




Davosaur -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/11/2008 9:23:50)

[i can help but dont know if im allowed]

since my sister are into recording stuff and making CD's [which greatly annoys me cause i have to get out and leave the comp :(] you can buy some cheap ones that actually are pretty cheap as for one i have a skype mic from logitech, you can record stuff if you have a good program AND its decent not alot a static and is pretty good[$1-$10] in my case i got it for $0.99 which is cheap for the quality i got [X] < pic

then if you know where to buy, you can get some REALLY good ones for $10-$40

i have this one, its perfect for everything, picks up tons of noise [unwanted things like floor creaks and the computer] so you'll need a filter, a sturdy stand and a little recording thing such as this
or you can get a MD recorder which is WAYY cheaper but harder to fin disks if your smart you will know where to shop :P

also you need a good editing software like Adobe audition v1-3

and if you tell me where you live not exact just state/province i can most likely fin a liquidation store

a parrot mic ...Ahahahahahahahahahah XD




Davosaur -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/11/2008 10:34:32)

Adobe audition v 3.0

i dont know everything.. just want to know ... everything >.>

lol

if you have a smaller program you might not have some options like reduce hiss and clean the record to get optimal sound, but that can work too [you might want to edit things cause sometimes .. thing happen XD]




Davosaur -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/11/2008 11:50:19)

most likely im pretty sure its there




Mo -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/14/2008 19:01:22)

I turned a head of a sprite into a graphic symbol, and now I can't use any colors over it. is it because it is a symbol? If so, how do I keep it without it being a symbol?




Davosaur -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/14/2008 19:05:21)

double click on the symbol it will take you innto the symbol cut[ctrl+X] the sprite from there then double click on the stage to get out




Mo -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/14/2008 19:50:40)

Thanks Davyo




Taerzik -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/24/2008 23:01:54)

Hi all. Just checking in. Really wish this was back in the top section[:(]

It was pretty much taken down because of the mass clutter of Q&A threads that were up there. Of course, if we re-sticky this one then all the other programs should get the same treatment, leading to clutter :P. There's already links to the Q&A threads in the stickies- and people should be reading them anyway :p. ~Nicky




flsg -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/25/2008 22:40:06)

^ agreed lol
anyone still alive here?




SirSchmoopy -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/26/2008 10:12:50)

I am now :D




Davosaur -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/26/2008 10:16:06)

yup im alive , though not kicking..... do i have to be alive n kickin? .... maybe i do *kicks computer* NOOOO MYYY GAAAMMMMEEEE




iEnd -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/26/2008 10:48:29)

Ok here's a coding question.
I have made a movement system like df but when I test the movie the character appear in the sky.
onClipEvent(load) {
	_x = 0
	_y = 0
	speed = 5
}
onClipEvent(mouseDown) {
	endX = _root._xmouse
	endY = _root._ymouse
	xspeed -= speed;
	xspeed += speed;
	yspeed -= speed;
	yspeed += speed;
}
onClipEvent(enterFrame) {
	_y += (endY - _y)/speed
	_x += (endX - _x)/speed
}

that's the code on the movieclip




biG frend -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/26/2008 10:52:42)

quote:

onClipEvent(load) {
_x = 0
_y = 0
speed = 5
}


There is your problem. Change the X and Y to resemble where your character starts.





iEnd -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/26/2008 11:02:08)

yay, thanks biG




EragonZZZZ -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/26/2008 11:40:17)

I'm back, yay. :3

Eragon's currently creating a package of utilities for AS2 which he might release if enough people are interested :P
Otherwise, they're certainly helping my game along

:D




Davosaur -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/26/2008 11:46:01)

and what does it do Eragon? [oh and endi.. you couldve asked me ... :P.. i was online you know] , i might be interested if it help me




EragonZZZZ -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/26/2008 12:00:59)

It'll contain several things that can speed up development...classes, etc.

I'm looking to include, at the very least:

  • Linked List class(es)
  • Tree classes
  • Searching (arrays, lists)
  • Custom Key-Input class (assign functions directly to a key press or a key hold)

    And whatever else I can think of.




  • Taerzik -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/26/2008 16:31:12)

    Oh yeah! I forgot about the link!

    A question -
    My MMO project is getting a bit fat with code and I'm still in the earlier stages so...
    I saw a code snippet by EragonZZZZ over in ROFL's thread and it was SKINNY! Basically, he rewrote a 10-12 line code block into 5 lines and I suspect that running the format process won't change it too much (if any).
    What I want to know is, how can I change my code to make it smaller / what normal commands can I replace or change so that it takes up less lines?
    In E.Z.'s example he replaced a several "if () {};" with something that resembled a formula.
    Note: if it's going to slow down the code then never-mind - speed is more important.


    ^ I'd be interested in the key input for certain - would probably make my project alot easier to look at code-wise.




    EragonZZZZ -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/26/2008 17:35:09)

    I have to see your code to compress it, unfortunately. If you want to zing the .fla and .as files along, I can do that for you.

    It won't slow it down at all, methinks. In fact, you'll probably make Flash do less thinking and therefore go faster.




    Anywho, here's the bare bones of the keyinput class. No more "function onKeyDown()".

    READ THIS FIRST:

    The code below is not commented and therefore you will have no idea how to use it if you don't read here first.

    1) Copy and paste the code into an .as file, save it as "InputReader.as", and put it in the folder with the .fla you want to use it with.

    2) On your .fla, create a new variable: var keyReader:InputReader = new InputReader();

    3) To assign a key to a function, you simply use the function "assignKeyFunction()." Here's how it works:

    keyCode = the Flash code of the key you want it to listen for...you can use Key.LEFT, Key.RIGHT, etc. if you want.
    func = the name of the function you want to run when the key is pressed. It is important to note that you must NOT include parenthesis. Only the name.
    runHold= set to "true" if you want the function to run repeatedly if the user holds the key, "false" if you want it to run only when they press the key.
    sendVal = Optional value. Use this if you'd like to pass a value to the function every time it runs. Useful if you have multiple keys attached to one function.

    4) Finally, create an onEnterFrame() event and put the function "keyListener.iterate()" in it. You're done.

    5) Right now, you can only set a function to be called on a keypress/keyhold, but it's still neater than using if(key.isDown()) sixty billion times. More functionality will come as I need it for my own projects ^___^



    class InputReader {
    	var keys:Array;
    	var stat:Array; 
    	var functions:Array;
    	
    	public function InputReader() {
    		keys = new Array();
    		stat = new Array();
    		functions = new Array();
    	}
    	
    	public function assignKey(keyCode:Number):Void {
    		keys.push(keyCode);
    		stat.push(0);
    	}
    	
    	public function assignKeyFunction(keyCode:Number, func:Function, runHold:Boolean, sendVal:Object) {
    		assignKey(keyCode);
    		functions.push(new Array(func,runHold,sendVal));
    	}
    	
    	public function iterate():Void {
    		for(var i in keys) {
    			if(Key.isDown(keys[i])){
    				switch(stat[i]){
    					case 0:
    					stat[i] = 1;
    					break;
    					case 1:
    					stat[i] = 2;
    					break;
    					case 2:
    					break;
    				}
    			}else{
    				stat[i] = 0;
    			}
    		}
    		
    		for(var i in functions) {
    			switch(stat[i]){
    				case 0:
    				break;
    				case 1:
    				if(functions[i][2] != undefined)
    					functions[i][0](functions[i][2]);
    				else
    					functions[i][0]();
    				break;
    				case 2:
    				if(functions[i][1])
    					if(functions[i][2] != undefined)
    						functions[i][0](functions[i][2]);
    					else
    						functions[i][0]();
    				break;
    			}
    		}
    	}
    }//While you, in using this code, are authorized to use it, modify it, build from it, or copy it in any way you please, you may not pass this off as your own work.




    flsg -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/30/2008 11:22:41)

    hey eragon, still coding? I thought you were dead lol

    and yeah, you better use AS3 or I'll never talk to you again lol(jk)

    BTW, dont use switch, just use norml if() k? it's so hard to read with the different breaks x.x




    EragonZZZZ -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (8/30/2008 16:39:19)

    I'm going for convenience here :P

    It was much easier, cleaner, (and neater in the AS window, perhaps not on the forum, haha) to use switch().

    My earlier lack of switching to AS3 was because I didn't have CS3.

    But FlashDevelop + Flex 3 SDK + FlashPlayer9Debugger = Free, legal, useful AS3. So I'm switching to it now.




    Taerzik -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (9/1/2008 1:48:24)

    So... tell us a little bit about Flex? I've never tried it but I've encountered games made with it.




    iEnd -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (9/1/2008 9:18:13)

    umm...
    guys I have been working on something and I have some problems.
    I want to load a character in a new frame using attachMovie()
    this is the code on the frame:
    stop();
    start.attachMovie("character", "newcharacter", 200)
    

    "start" is a movieclip on which I want my character to appear.
    My problem is that I want the character to move and play the animation while it moves. This is the code on "start":
    onClipEvent(load) {
    
    	speed = 5
    }
    onClipEvent(mouseDown) {
    	endX = _root._xmouse
    	endY = _root._ymouse
    
    }
    onClipEvent(enterFrame) {
    	_y += (endY - _y)/speed
    	_x += (endX - _x)/speed
    }
    

    what should I add to the code to make the character play the animation while walking?




    tauguy -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (9/1/2008 12:33:42)

    so you want it to play a walking animation while it is walking?
    Well i think it would be

    onClipEvent(mouseDown){
    _root.characterthing.gotoAndPlay("walk animation");
    }

    onClipEvent(mouseUp){
    _root.characterthing.gotoAndStop("stand still frame");
    }




    iEnd -> RE: Flash Q&A Thread 5 - Flash Has Shares In Your Soul (9/1/2008 12:42:46)

    still doesn't work.




    Page: <<   < prev  8 9 [10] 11 12   next >   >>

    Valid CSS!




    Forum Software © ASPPlayground.NET Advanced Edition
    0.1210938