Quote:
Originally Posted by meezcat
For my class, I get to design a Alice program of my choice. I am making a western town with a buffalo walking around. I have the buffalo being moved by the "Let the arrow keys move ____" command. I want to make is so the buffalo can't walk inside of buildings, but I have no idea how to. I've tried using commands like "If buffalo is within 2 meters of salloon move buffalo 10 meters backwards" but they don't work. Does any one have any ideas?
|
hmmm... Well try doing what I'm doing for my pokemon game. I would use cubes for collision detection. It would be in a method that would be 'while the world is running'. Here's the pokemon game to show you what I mean. Move with the arrow keys. Tell me if this works. (and if you like the pokemon game, even though it's 99% unfinished)
My avatar is from the anime "Hyouka".......
You've probably never seen it, much less heard of it.....
You should watch it........
print("Hello World")
This is python code.
Lakers > Clippers
Vikings > Packers
Cardinals > Brewers/Pirates/Cubs/Reds