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

#1 2012-04-14 10:28:00

Soulmage
New Scratcher
Registered: 2012-04-14
Posts: 2

Death Ground

Ohaider! Plz Teach Me How To Let The Char. Die On The Ground When Stepped?
[ big_smile ]

Offline

 

#2 2012-04-14 11:43:04

soupoftomato
Scratcher
Registered: 2009-07-18
Posts: 1000+

Re: Death Ground

If you want part of your ground to be poisonous:

when gf clicked
forever
  if <touching color [#FF0000]?>
  change [Lives v] by [-1]
  go to x: [0] y: [0]
end
This example kills the layer whenever they touch the color red (make this the color of the thing you want to hurt him. Mine continues on to change a life counter by 1 and reset him center-stage. However, past it sensing if he has touched the color you need, you can have whatever action you want triggered. (Most likely you would want to reset him to the start of the level, or give a game over screen)


I'm glad to think that the community will always be kind and helpful, the language will always be a fun and easy way to be introduced into programming, the motto will always be: Imagine, Program, Share - Nomolos

Offline

 

#3 2012-04-15 02:11:59

Soulmage
New Scratcher
Registered: 2012-04-14
Posts: 2

Re: Death Ground

[color=red]Thanks Soupoftamato!

Offline

 

Board footer