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

#1 2010-10-01 09:16:40

myronx
New Scratcher
Registered: 2010-10-01
Posts: 1

how do I...

how do i not let a sprite go through a wall in my game i used the foerver if but its not working

Offline

 

#2 2010-10-01 10:05:35

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: how do I...

myronx wrote:

how do i not let a sprite go through a wall in my game i used the foerver if but its not working

Here's a simple approach that I like to use:
Solid Walls (rotating sprite)  http://scratch.mit.edu/projects/Paddle2SeeFixIt/188807
Solid Walls (non rotating sprite) http://scratch.mit.edu/projects/Paddle2SeeFixIt/188825


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2010-10-01 12:41:22

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: how do I...

You'll need to be a bit more specific. What are your scripts, exactly? What type of sensing are you using? Are your walls sprites separate from the rest of the level, or a solid color on the background?


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer