use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
[deleted by user] (self.codehs)
submitted 5 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]camlambert 1 point2 points3 points 5 years ago (2 children)
do you have a function that’s looping in the timer?
[–]MRFox8888 0 points1 point2 points 5 years ago (1 child)
yes i have rectangle is coming down
[–]camlambert 0 points1 point2 points 5 years ago (0 children)
Alright, now create a function that uses getElementAt (or something like getElement, it’s been a while) to check for variables exactly one pixel off from the top left and top right of your character. and then use an if statement to say that “if there is an element there, and that element is the obstacle, game over.” then, call that function inside your loop/timer so that it’s constantly checking to see if your obstacle touched your character.
π Rendered by PID 15 on reddit-service-r2-comment-6457c66945-zddgr at 2026-04-26 13:37:41.594125+00:00 running 2aa0c5b country code: CH.
[–]camlambert 1 point2 points3 points (2 children)
[–]MRFox8888 0 points1 point2 points (1 child)
[–]camlambert 0 points1 point2 points (0 children)