The challenging part is how to inform Alice that the character is within a certain distance from the maze. [Within Threshold] works for smaller objects, but not for larger objects with greater length.
The maze does not have walls, but is just one large entity.
How do I prevent the character I am using from touching the walls of the maze?How do you prevent objects from colliding on Alice?
sorry I haven't used Alice since freshman year in college. But I remember our saying for said class: Alice is a dirty dirty girl. I feel your pain.
It may be that the [within threshold] function you are talking about is distance to the middle of the object rather than to its circumference. if this is the case, try making the walls shorter and stack them next to each other.
Or you can try putting an invisible object at each end of the wall and write the program so the character cannot go between the object.
Alice was a good way to visualize object oriented programming, but when I used it years ago it was horrible at complex functionality. I had to write a game for my intro to computer engineering class. I broke Alice a couple of times writing it. I think i have it laying around. Its a RPG. Ill post it if I can find it.
good luck
~SS
No comments:
Post a Comment