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

#1 2011-09-18 12:39:19

babbet
Scratcher
Registered: 2011-07-23
Posts: 100+

Help!

okay so i making a game where you can draw a black line and if the sprite isn't on that line it falls and when it hits the edge of the screen it loses a life, i am having troubles doing this (such as, even if it is touching color black it falls anyway) so please give suggestions on how to help, i already uploaded it to my page, so you can see it, it's called Transformice,

Thank you


https://lh3.googleusercontent.com/-SBVvDiIX0PY/Tm6OBd27mnI/AAAAAAAABR4/b--gXKoPlkU/babbet400x150.jpg

Offline

 

#2 2011-09-18 12:44:58

LS97
Scratcher
Registered: 2009-06-14
Posts: 1000+

Re: Help!

if touching color black
    change y by 1
else
    change y by -4
end if

how does that work for you?

Offline

 

#3 2011-09-18 12:48:52

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

Re: Help!

And also,

Code:

if touching edge
  change lives by -1

Offline

 

Board footer