This project is an answer to a question on the forum about how to make solid walls using the "return to the last good position" technique. Try and get the Cat stuck or get it to go through a wall....I don't think it can be done.
This version shows a sprite that can rotate. I'll post another version for a non-rotating sprite shortly.
Controls:
Left/Right Arrows - Turn the cat
Up/Down Arrow - Move forward and backward
Comments
You need to be logged in to post comments
Add a Comment
Cool!
(view all replies)Comment Reply
Cool. That's clever.
(view all replies)Comment Reply
?! Redo: Perfect! Eh-Hehh!
(view all replies)Comment Reply
Decided to a bit of simplification myself...took out a couple of variables.
(view all replies)Comment Reply
I made the code far simpler at (link to project)
(view all replies)Comment Reply
His head got stuck on the bottom line, and I needed to wiggle him out, but overall this is probably the best sensing demo I have seen :)
(view all replies)Comment Reply
Yeah, you may have to wiggle a bit...but hopefully you can't get permanently stuck!
(view all replies)Comment Reply
Isn't there simpler ways to do this?
(view all replies)Comment Reply
Maybe! See if you can come up with one.
(view all replies)Comment Reply