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

#1 2009-10-13 07:58:21

Starpally
Scratcher
Registered: 2009-10-13
Posts: 2

How do i make wall so u can't go pass them

Can someone plz help me do this  smile

Offline

 

#2 2009-10-13 08:54:56

jacool
Scratcher
Registered: 2008-01-25
Posts: 1000+

Re: How do i make wall so u can't go pass them

If you mean in a platformer game, use hit sensors (usually an invisble sprite at the side of the main character).
When the hitsensor touches the wall it changes a specific variable to true.

In the main character you have to make a walking script like this.

When Green Flag Clicked:
     Forever If (Right Arrow Key) and (RightSensor = true):
          Change X by 5


http://i571.photobucket.com/albums/ss159/JacobKar/svensktiger-1.png

Offline

 

#3 2009-10-13 12:34:09

Locomule
Scratcher
Registered: 2009-08-24
Posts: 500+

Re: How do i make wall so u can't go pass them

http://archblogger.wordpress.com/2008/11/06/make-a-game-like-super-mario-world-demo/


aka Pain from DragonSpires, Delrith Online, BotBattle, Urban Dead etc etc lol

Offline

 

#4 2009-10-14 08:47:38

Starpally
Scratcher
Registered: 2009-10-13
Posts: 2

Re: How do i make wall so u can't go pass them

Ok but the game i am trying to make it is amaze type of game and i want it so the sprite can go pass the wall. How would i do that? plz let me know how i would do that if u can.  smile

Offline

 

#5 2009-10-14 10:12:59

jacool
Scratcher
Registered: 2008-01-25
Posts: 1000+

Re: How do i make wall so u can't go pass them

Starpally wrote:

Ok but the game i am trying to make it is amaze type of game and i want it so the sprite can go pass the wall. How would i do that? plz let me know how i would do that if u can.  smile

Use the scripts I wrote  smile


http://i571.photobucket.com/albums/ss159/JacobKar/svensktiger-1.png

Offline

 

Board footer