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

#1 2012-12-25 19:19:06

D-Man9293
Scratcher
Registered: 2012-12-17
Posts: 56

Help putting lava in snowman game.

I have a project called Move'n'jump Snowman, and it's good, but it could be better. I know how: Lava. But I can't get my snowman to melt when he touches the lava!!! Could someone please help me with that?

Signed, D-Man9293.


Check out my signups for the game show  Scratch Island Survival!

Offline

 

#2 2012-12-27 10:18:15

Kileymeister_test
Scratcher
Registered: 2010-01-31
Posts: 100+

Re: Help putting lava in snowman game.

Two ways:  Either make all instances of the color red act like lava, or make a lava sprite.

You can put a script like this:
http://i49.tinypic.com/4v2tfs.gif
Or just put if section at the bottom of your movement script.
Now when your snowman touches lava, he can switch to a melting costume to show that he melted, then move back to where he started, good as new.  (Change the Go to X:0 Y:0)  numbers to wherever he starts from.

You can also switch the "touching [red]" with a "touching [sprite: lava]" piece if you made a lava sprite and not a lava color.

Last edited by Kileymeister_test (2012-12-27 10:18:47)


Kileymeister's test account.  I upload engines and demos and stuff for public use.
Currently Working on: Grapple Arms!

Offline

 

Board footer