Be a Supporter!
Response to: Help w/ multiple box sides hitTest Posted February 1st, 2011 in Game Development

No, that didn't worked neither...

I'm trying now to get a third party collision engine. Or maybe make my own...

Thanks!

Response to: Help w/ multiple box sides hitTest Posted January 29th, 2011 in Game Development

At 1/29/11 10:58 PM, jakerpot wrote: Using this code, the player eventually hits the side of the rectangle, and instead of just stoping, he is teleported to the top of the retangle

I meant ": Using this code, the player eventually hits the right or left side of the rectangle, and instead of just stoping, he is teleported to the top of the retangle"

Sorry for the double post.


Hey there guys! I'm with a problem right now, i'm making a game, and i want to put some obstacles (named classTableX, with X being a number) in the room and make the player unable to walk over it.
The obstacles are simply rectangles, but the problem is with the hit testing.

I created 4 individual movieclips, one for each rectangle sides (named classSideBorder, with Side being a rectangle side), this way i can detect wich side has been hitted. But, the problem is that making hitTest this way doesn't give such nice results. Here is my code:

if(newPlayer.hitTestObject(classTable8.classTopBorder)){
			   newPlayer.y = classTable8.y - newPlayer.height - 1;
			   }
			
                        if(newPlayer.hitTestObject(classTable8.classDownBorder)){
			   newPlayer.y = classTable8.y + classTable8.height + 1;
			   }
			
                        if(newPlayer.hitTestObject(classTable8.classLeftBorder)){
			   newPlayer.x = classTable8.x - newPlayer.width - 1;
			   }
			
                        if(newPlayer.hitTestObject(classTable8.classRightBorder)){
			   newPlayer.x = classTable8.x + classTable8.width + (newPlayer.width / 2) + 1;
			   }

Using this code, the player eventually hits the side of the rectangle, and instead of just stoping, he is teleported to the top of the retangle, this could be because some overlap, but there is no overlaping!

So, the real question is not about the code, but ideas on how i can prevent the player from getting inside the rectangle in an eficient way. I also tried to make it through coordinates, but as i have 14 obstacles, that would turn into a gross code.

Thanks!

Response to: Anime Studio Debut 6 (please Help) Posted June 10th, 2010 in Animation

Have you tried importing the body parts separately already? It was a long time ago that i used Anime Studio Pro, but if i remember well this should work!

Response to: Frame By Frame Technique Help Posted June 8th, 2010 in Animation

At 6/8/10 11:14 AM, psychicpebble wrote:
At 6/8/10 05:29 AM, jakerpot wrote: Yeah, that always happens to me too. That's why i'm starting to use the pencil tool instead...
On top of the tutorials I gave you, also use the brush tool it's really helpful.

I personally use the second or third size and set the smoothing to 50.

Another useful tip is to draw what you want while you can see the whole stage with preferably yeloow bursh tool set to 2. Then draw the outlines in green and then zoom in and make the brush tool thick and use it in black to draw the final version. Sorry if that sounded confusing, I'll explain more if needed.

Actually i got it. It sounds coerent (don't know how to write that word, i'm brasilian :P), draw fisrt the sketch then zoom in to not deformate the image. I'll try that!

Response to: Frame By Frame Technique Help Posted June 8th, 2010 in Animation

At 6/8/10 02:56 AM, RatherWilde wrote: yer i use onion skin and draw every frame in flash. I usually redraw the whole character on one frame , but always get variations in things like line thickness ( i use a tablet ).

Yeah, that always happens to me too. That's why i'm starting to use the pencil tool instead...

Response to: Highly Detailed Mini Uzi Shooting Posted June 7th, 2010 in Animation

Man, your framerate is soo low! D: Or maybe the animation is too delayed...

Response to: Converting actionscript to C#??? Posted June 7th, 2010 in Programming

I think both are resonable ideas, but mike's one seems a lot easier. I only got those questions thou...

Response to: Converting actionscript to C#??? Posted June 7th, 2010 in Programming

Sorry for double-posting, but does castle crashers and alien hominid uses box2D? I saw a video with a guy showing a flash animation with box2D elements and then he imported the swf file into visual studio and builted it, and everything work just fine. I don't really know anything about programing, so i really need help to understand some terms and stuff...

If i got it right, i need to:
1) Make the whole game in flash normally.
2) Put the code in Visual Studio
3) Import the SWF file
4) Change some things in the code (like the name of the SWF file)
5) Built it

Is that right?
Also, how can the keyboard keys be converted to xbox controller keys? For example, in the flash if i press Up the character jumps. What about in the Xbox?
Thanks.

Response to: Converting actionscript to C#??? Posted June 7th, 2010 in Programming

HA! There IS a way! Playing flash in the console would be so awesome!
Thank you alot mike!
That Fluix thing, it is just a code writen in C# to run .swf files in XNA? I really suck at programming, i think i should try learning how the interface works so i can do it properly.
By the way, how do you know so much about Alien Hominid and Castle Crashers? They where written in actionscript 2.0 right? Great, because i have flash 8 :P
Thanks again!!!

Response to: Game character running animationWIP Posted June 6th, 2010 in Animation

Yeah, the framerate is actually 12 fps. Do you think i should change it to 24 and space the frames or should i make more frames? i want a very smooth animation, i think i will just draw 8 frames and add 2 or 4 inbetween them... I will make some tests... Also i will try to scan my walkcycle drawing before i apply it.

Response to: Game character running animationWIP Posted June 6th, 2010 in Animation

God dammit, i fixed his arms but now i realized that they don't fit with the legs. >:\
Also, the arms swing foward/backward 3 TIMES, not 2 times. They should be swinging only 2 times aren't they? That's why this is looking so fast :P

http://www.swfcabin.com/open/1275837163

Also, here is the .fla if someone wants to edit i:

http://www.4shared.com/file/MXodXS6h/run 4.html

I will re do it then, with the arms fixed. Then i can fix the head.
Are my supositions right?
Also, what framerate is good for a videogame animation?

Response to: Game character running animationWIP Posted June 6th, 2010 in Animation

Thank you a lot, you are really helping me :D

Well, i fixed the animation, actually, there was 5 frames for the left leg and 5 for the right leg, i deleted the same frame (intermediate between the passing and up ones) for both legs and now i got that magic number :)

The problem with the arms is that i started drawing with the brush, but it was pretty crappy (i don't know how dan p. use that thing) so i moved on to the pencil tool. That's why they are so weird. Also, i will try to define better their position tomorrow. Thank you!

This is what i've got so far:

http://www.swfcabin.com/open/1275796637

EDIT: I found a problem!!! look at the first frame (i marked it with blue) and at the last one (red marked). Focus in the arms, when the front arm is coming back in the last frame, the same arm start to go forward in the first one... What the hell i did?

PS: The 3 animations are the same thing, just in diferent velocities.

Response to: Converting actionscript to C#??? Posted June 5th, 2010 in Programming

So, you mean that this parser thing is just to render the graphics?? The code is for sure in C# then... Gah, that means i will have to learn C# or find a programmer. Ok, thank you very much!


Hey there fellas, have been a while since i first tried to do some C# code. What a disaster. That language is so complicated and complex... I can handle actionscript (it's not hard), but C#... My dream is make a XNA game to play on the XBOX, but i have no ideia where to begin... Then i saw castle crashers on XBLA and i said to myself 'thats gotta be made on flash :P' and, bazzinga, it actually is. I heard dan talking about a parser or something. Can this be true someday? Can i program in actionscript and just convert it to C# or should i get smart and program normally in C#??? Thanks.
PS: Tom Fulp, help me!!!!

Response to: Game character running animationWIP Posted June 5th, 2010 in Animation

How do i edit my posts by the way???

Here it is, an updated version:

http://www.swfcabin.com/open/1275765480

The problem with the arms continue and the head looks so 'stuck'. This is just a sketch, i already got many other animations (jumping, double jumping, falling, getting up...) that i will do the lineart again.

Response to: Game character running animationWIP Posted June 5th, 2010 in Animation

Sorry for double post guys, but i made an edit:

http://www.swfcabin.com/open/1275762207

I know i have to fix the arms, it looks like that the left arm doesn't move foward at all.

Response to: Game character running animationWIP Posted June 5th, 2010 in Animation

Thank you a lot guys! Yeah, i think i'm getting it now, but just to be sure i will post a 5 frame version of it so you guys can check the whole thing:

http://www.swfcabin.com/open/1275731028

Yeah, ive made him always coming back to the same point, i don't know if that's right.
Sorry about english mistakes, i'm brazilian :x


Hey there guys. I made this animation and i don't get whats wrong with it. Can someone explain why it looks so odd? I think it looks a bit 'cutted', maybe some more frames? And maybe the character is going back too much after the litle jumps... I don't know, can an expert help me?

http://www.swfcabin.com/open/1275710552

Thank you!! :)

PS: Also, there is anyway i can show .swf files directly in the post??? Thank you.