Sunday 15 January 2012

canvas - Collision function Javascript -


I am trying to figure out that when a player comes in contact with a platform, then why any idea why not working?

  function for checkcall () (for (var i = 0; i  gt ; Ix & Player. X <(ix + i.width)) {if (Player.y> iy & amp; Player.y <(iy + i.height)) {Warning   i  Code> is just a number that does not contain  width  and  height . It seems that you wanted to use the  platform [i]    

No comments:

Post a Comment