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

#1 2011-07-01 22:21:18

daddystootiepop
Scratcher
Registered: 2011-07-01
Posts: 14

How do you create a wall that sprite 1 cant pass

Hey readers!!!!! Im working on a game and i want sprite 1 to follow an object i figured that outl but i want a wall to keep it from following it into the air so sprite 1 stays on the ground........well.......hopefully  i didnt confuse you too much....thanx  big_smile

Offline

 

#2 2011-07-01 22:24:14

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: How do you create a wall that sprite 1 cant pass

Can it jump a little?

Offline

 

#3 2011-07-01 22:24:58

daddystootiepop
Scratcher
Registered: 2011-07-01
Posts: 14

Re: How do you create a wall that sprite 1 cant pass

watch a mean????

Offline

 

#4 2011-07-01 22:34:00

daddystootiepop
Scratcher
Registered: 2011-07-01
Posts: 14

Re: How do you create a wall that sprite 1 cant pass

ooooohhhhhhh.......i get what u mean....... i guess...  smile

Offline

 

#5 2011-07-01 22:45:40

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: How do you create a wall that sprite 1 cant pass

then make a variable called move down and if it's touching the wall then make it keep moving down till it's not touching it.

Offline

 

#6 2011-07-01 23:06:02

daddystootiepop
Scratcher
Registered: 2011-07-01
Posts: 14

Re: How do you create a wall that sprite 1 cant pass

thanx sooooooooo much  big_smile

Offline

 

#7 2011-07-02 06:24:16

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: How do you create a wall that sprite 1 cant pass

Imaginelt, that dosent really work, you need it to carry on for 1 seccond after the character stops touching it - once the sprite moves off it, it hangs in midair.


I'm back.
Maybe.

Offline

 

#8 2011-07-02 08:26:19

ImagineIt
Scratcher
Registered: 2011-02-28
Posts: 1000+

Re: How do you create a wall that sprite 1 cant pass

Oh yeah, I forgot that! Thanks Digi!

Offline

 

#9 2011-07-02 11:44:36

daddystootiepop
Scratcher
Registered: 2011-07-01
Posts: 14

Re: How do you create a wall that sprite 1 cant pass

Thanx to both of you this will help me alot in my future projects!!!!!!!  smile

Offline

 

#10 2011-07-02 12:42:22

GamingStudios
Scratcher
Registered: 2011-06-22
Posts: 24

Re: How do you create a wall that sprite 1 cant pass

if you look at my project  http://scratch.mit.edu/projects/GamingStudios/1885708
you can find that and a wall jumping feature!!! that uses the stage as the platform!!!


I <3 LOL cats.
<img src="http://tinyurl.com/6p9mbcn"

Offline

 

#11 2011-07-02 13:55:56

Sphingo
Scratcher
Registered: 2011-07-01
Posts: 87

Re: How do you create a wall that sprite 1 cant pass

Hey
If the wall is painted in the background or a sprite it is simple!
Do forever;
if touching wall (or colour of wall);
move -1 steps

HERE IS AN ATTEMPT OF PICS

[blocks]<when green flag clicked><forever><if><touching[ wall ]><move( -1 )steps>

big_smile

Offline

 

#12 2011-07-03 15:45:21

DigiTechs
Scratcher
Registered: 2011-04-30
Posts: 500+

Re: How do you create a wall that sprite 1 cant pass

Sphingo, you need to press enter after the command to make them work


I'm back.
Maybe.

Offline

 

#13 2011-07-11 00:57:26

legoman70
Scratcher
Registered: 2010-12-11
Posts: 28

Re: How do you create a wall that sprite 1 cant pass

here do this

[blocks]<when green flag clicked><forever if><touching color[ etc<move(-10)steps> [/blocks]

or

[blocks]<when green flag clicked><forever if><touching color[ etc<move(10  )steps>


http://i1224.photobucket.com/albums/ee374/ZombieGamer63/Minecraft/ZombieMinecraftAchievement.png

Offline

 

#14 2011-07-19 07:29:55

blindambition
New Scratcher
Registered: 2011-07-19
Posts: 1

Re: How do you create a wall that sprite 1 cant pass

<pen down><change pen color by( <change pen shade by( <change pen shade by( <set pen size to( <set pen size to( <clear><pen down><change pen color by( <change pen shade by( <change pen size by( <set pen size to(

Offline

 

#15 2011-07-19 09:48:35

xGluttony
Scratcher
Registered: 2011-05-03
Posts: 25

Re: How do you create a wall that sprite 1 cant pass

DO THIS ON THE SPRITE 1!<when green flag clicked><forever><if><touching[ Spritewall<repeat( number you want to move backwards<change x by( -5<end>


http://i55.tinypic.com/2mcx6x5_th.jpg

Offline

 

#16 2011-07-20 15:22:11

Filtaido
Scratcher
Registered: 2009-04-30
Posts: 33

Re: How do you create a wall that sprite 1 cant pass

<when green flag clicked>
<forever>
<set x to( x position of sprite 2)>
<set y to( y position of ground )>


84% of teenagers own cell phones.  Add this to your signature if you like pop tarts.  tongue

Offline

 

#17 2011-07-21 05:18:57

09mains
New Scratcher
Registered: 2011-07-21
Posts: 1

Re: How do you create a wall that sprite 1 cant pass

Hey all reader,
I really need help! my sprite can go through walls and completely frezzes when I try and do somthing it doesnt want to!  sad
Please help me!!!!
Jessie Igglesden x

Offline

 

#18 2011-07-22 14:36:46

poemon1
Scratcher
Registered: 2011-01-12
Posts: 500+

Re: How do you create a wall that sprite 1 cant pass

[blocks] <when green flag clicked>
<forever>
<if>
<touching color[ color of terrain]>
<change x by( X pos - 1)>
<end>
[/blocks]


http://i47.tinypic.com/rrqe13.gif

Offline

 

Board footer