astralaaron Posted October 12, 2013 Author Share Posted October 12, 2013 (edited) so If you check it now... you will see that it is detecting a collision with the rightmost row. The problem seems to be with the switch which runs the stop function. it is hitting the default in the switch everytime. I have confirmed it is a type of string.....why in the world would it not be hitting the '03' case in the switch??? EDIT> watch the console log when you walk into the tiles Edited October 12, 2013 by astralaaron Link to comment Share on other sites More sharing options...
astralaaron Posted October 12, 2013 Author Share Posted October 12, 2013 the switch located in the worldCollision function Link to comment Share on other sites More sharing options...
astralaaron Posted October 12, 2013 Author Share Posted October 12, 2013 ahhhhhh! the nightmare is over.... parseInt saves the day... when I create each tile object I am using parseInt now to convert the string '03' to 3.... thanks for all your help dave and JSG Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now