Jump to content

  • Log In with Google      Sign In   
  • Create Account

#Actualwarnexus

Posted 12 April 2013 - 05:12 PM

That's true about lots of bounding boxes. Now that I think about it some more, you might want to try creating a bounding box around the object only when the collision function is called.

 

How can the character be towards the left but slide on the x axis to the right? blink.png

 

On a side note: you should try to avoid "magic numbers" instead replace the value of a variable with a variable name.


#2warnexus

Posted 12 April 2013 - 05:01 PM

That's true about lots of bounding boxes. Now that I think about it some more, you might want to try creating a bounding box around the object only when the collision function is called.

 

How can the character be towards the left but slide on the x axis to the right? blink.png


#1warnexus

Posted 12 April 2013 - 04:59 PM

How can the character be towards the left but slide on the x axis to the right? blink.png


PARTNERS