Author Topic: Game Design Megathread  (Read 555247 times)

You have a collider on the foot, right?


do you have a shape set for the polygon collider? try setting it as a box collider and see what happens.

do you have a shape set for the polygon collider? try setting it as a box collider and see what happens.

It used to be a box collider, but I changed it to a polygon collider. It remained the same sadly :(

Are you scripting with transform.rotate or rigidbody.AddRelativeTorque? The latter is the one you should be using.

Are you scripting with transform.rotate or rigidbody.AddRelativeTorque? The latter is the one you should be using.

You mean the foot right? I used this:

Code: [Select]
public float kickForce = 5.0f;

void Update ()
{
if (Input.GetKey (KeyCode.Space))
transform.Translate (kickForce, 0, 0);
}

I tried using rigidbody2D.addForce but all it did was drag my player all over the place.

EDIT: I fixed it!! Damn it was so easy. All I had to do was change the angle limits in the hinge joint settings. Thanks for the help anyways! (I also changed transform.translate to rigidbody2D.addForce again. Turns out the force was too strong; that was what caused my player to fly away every time)
« Last Edit: May 24, 2014, 09:14:23 PM by Dante77 »

I want a Gif of the player flying away


dante

you made my week.



Game is perfect right there. I'm contacting Microsoft you contact Sony. This'll be the #1 seller in the world.

dante

you made my week.

Game is perfect right there. I'm contacting Microsoft you contact Sony. This'll be the #1 seller in the world.

thanks for the support guys im so happy wow

life changing moment right here RIGHT NOW

im starting my first game where you are a giant pyramid and you go around destroying buildings in egypt

itll be called "the revenge of tut" and im going to try and get it on greenlight as soon as it's finished. anyone wanting to make music or art can contact me at this account.

Oh and Dante I think the reason it's not kicking is because you're transforming it directly instead of applying a physics force and that just causes the foot to be clipped inside the ball where it won't collide.
Do something like placing a wheel in the player and having the foot be attached to it.

Oh and Dante I think the reason it's not kicking is because you're transforming it directly instead of applying a physics force and that just causes the foot to be clipped inside the ball where it won't collide.
Do something like placing a wheel in the player and having the foot be attached to it.

Yeah I already fixed it, I edited my post earlier. Thanks!

im starting my first game where you are a giant pyramid and you go around destroying buildings in egypt

itll be called "the revenge of tut" and im going to try and get it on greenlight as soon as it's finished. anyone wanting to make music or art can contact me at this account.

What kind of music? I can do 8 bit, or like rock music or something.

oops double posted
« Last Edit: May 25, 2014, 01:17:25 PM by Dante77 »