This forum is now read-only. Please use our new forums! Go to forums
banner
Close banner
decting when objects collide
hi, im making a really simple game that tests the users mouse skill here is a link to my code. the user basicly drags the ball div through the mase. i want to set it so if a user tutches a wall it adds one to a varible that would then display a score at the end http://www.codecademy.com/arrayBlaster42131/codebits/MT6ulb/edit
Answer 538745ab282ae34cb300229b
0 votes
http://stackoverflow.com/questions/2440377/javascript-collision-detection has a good discussion on this. There’s no one simple way to do it, as js and jquery aren’t really game engines. It’s certainly possible, though, just find the approach that makes sense to you..
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency