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

#1 2012-05-04 10:07:17

Lilhardy94
Scratcher
Registered: 2012-04-12
Posts: 25

sprite touching

how do i make one sprite not be able to pass through another? kind of like a person cant run through a pole lol

Offline

 

#2 2012-05-04 10:31:04

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: sprite touching

when gf clicked
forever
 set [last x pos v] to (x position)
 set [last y pos v] to (y position)
 move (1) steps // replace with your moving code
 if <touching [wall sprite v]?>
  go to x: (last x pos) y: (last y pos)
 end

Offline

 

Board footer