Computer Science Canada Program is detecting green where there shouldn't be any |
Author: | undergroundmonorail [ Sat May 19, 2012 7:30 pm ] | ||
Post subject: | Program is detecting green where there shouldn't be any | ||
I'm a moron who forgot to change his "exit when" condition when he copypasted code. What is it you are trying to achieve? A simple platformer game. What is the problem you are having? Whenever I jump or go up a slope, the part of my (simple, colour-based) collision detection that detects if the player is inside a wall above them goes into an infinite loop. Describe what you have tried to solve this problem I tried changing exactly where it looks for the colour, but it didn't seem to change anything. I also told it to draw a white dot wherever it's finding green (which should have let it continue after one loop) but it still breaks. Post any relevant code (You may choose to attach the file instead of posting the code if it is too long) Here's the part of it that goes into an infinite loop, but I'll attach the full code as well because I'm not sure what would be relevant.
Please specify what version of Turing you are using OpenTuring 1.0.1 (based on Turing 4.1) |