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

#1 2007-11-03 13:23:15

11alex
Scratcher
Registered: 2007-06-15
Posts: 100+

NEED HELP: Wall

Ok, I need help with all the wall programs, while scrolling. My game has walls as sprites and I can't do 'move -2' steps or 'touching color' , so, please help!
Oh, and it is 'point towards mouse' pointer type.

Please help! 

-----------------------------------------------------EXTRAS--------------------------------------------------------------

Here is what I tried but useless:   
                                              ]
Sprite1:                                     ]         walls what I tried>
<when green flag clicked>           ]     
<forever>                                   ]       <when green flag clicked>
<point towards( mousepointer      ]       <forever>
-------------------------------------------------       <if><touching[ wall
                                                         <move(-1  )steps>


www.flowbolt.com

Offline

 

#2 2007-11-03 13:44:29

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: NEED HELP: Wall

Use colour sensing to make it so that if the front of the car is touching a wall do not alter the scrolling variables.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#3 2007-11-03 13:56:08

11alex
Scratcher
Registered: 2007-06-15
Posts: 100+

Re: NEED HELP: Wall

But then it can't move at all


www.flowbolt.com

Offline

 

#4 2007-11-03 16:29:42

11alex
Scratcher
Registered: 2007-06-15
Posts: 100+

Re: NEED HELP: Wall

please, anyone, help!


www.flowbolt.com

Offline

 

#5 2007-11-04 01:14:06

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: NEED HELP: Wall

<when green flag clicked>
<forever>
<point towards( mouse pointer
<move( ---- )steps>
<if><touching[ wall
<turn cw( 180 )degrees>
<move( ---- )steps>
<end>


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#6 2007-11-04 03:32:39

11alex
Scratcher
Registered: 2007-06-15
Posts: 100+

Re: NEED HELP: Wall

Ok, but any other ideas?


www.flowbolt.com

Offline

 

#7 2007-11-04 04:56:06

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: NEED HELP: Wall

What? Don't you like this one?


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#8 2007-11-04 05:02:30

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: NEED HELP: Wall

<when green flag clicked>
<forever>
<point towards( mouse pointer
<move( 3 )steps>
<if><touching[ wall
<move( -3 )steps>
<end>

Tat way the spite wouldn' turn bakk each time it touches a wal.


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#9 2007-11-04 10:32:06

11alex
Scratcher
Registered: 2007-06-15
Posts: 100+

Re: NEED HELP: Wall

you see, with scrolling all directions ,its  different, so you need varaibles mean -1 and stuff


www.flowbolt.com

Offline

 

Board footer