This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-04-21 10:39:45

Pennylover
Scratcher
Registered: 2010-01-13
Posts: 11

Character Walks Though Obstacles

I'm trying to make a RPG. I want my character to not walk though walls and other obstacles. I cannot seem to come up with an efficient and effective way to do this. Does any have any ideas?

Offline

 

#2 2011-04-21 10:55:56

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: Character Walks Though Obstacles

What kind of view is your RPG?  Bird's eye?  Side view?

If it's bird's eye view, you can do something like this:
http://i53.tinypic.com/15qp2qh.gif
(Black would be the color of your walls, but obviously you can change that color in the script.  You can also substitute that color with a sprite, just change it to [if touching "Sprite"])

Last edited by Kileymeister (2011-04-21 11:02:36)


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

#3 2011-04-21 13:22:25

Pennylover
Scratcher
Registered: 2010-01-13
Posts: 11

Re: Character Walks Though Obstacles

Thank you so much! It worked perfectly!  big_smile

Offline

 

Board footer