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

#1 2012-03-02 22:13:56

quiznite
New Scratcher
Registered: 2012-03-02
Posts: 4

how do I freeze my character?

does anyone know how to make your character freeze, like sleeping or dead? someone please help! i really need this information for my level "sawmill".

Offline

 

#2 2012-03-03 00:34:14

CheeseMunchy
Scratcher
Registered: 2008-10-13
Posts: 1000+

Re: how do I freeze my character?

Uh, just make him do nothing I guess. XD


6418,

Offline

 

#3 2012-03-03 00:47:06

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: how do I freeze my character?

Could you show us what scripts you are using and specify what the problem is?

Last edited by trinary (2012-03-03 00:47:16)


http://trinary.tk/images/signature_.php

Offline

 

#4 2012-03-03 04:08:26

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: how do I freeze my character?

when gf clicked
repeat until <whatever freezes the sprite?>
moving script
end


Why

Offline

 

#5 2012-03-05 01:27:07

quiznite
New Scratcher
Registered: 2012-03-02
Posts: 4

Re: how do I freeze my character?

thanks guys  wink

Offline

 

#6 2012-03-05 01:51:25

quiznite
New Scratcher
Registered: 2012-03-02
Posts: 4

Re: how do I freeze my character?

this is my script trinary (or anyone else who can help) and my problem is when he dies, you can still controll him

[scratchblocks]
forever
when gf clicked
wait until [touching Sprite1 v]
play sound [scream-male1 v]
switch to costume [DEAD DX (saw) v]
change x by [-1]
change y by [1]
wait [3] secs
play sound [SpaceRipple v]
switch to costume [ALIVE! ( big_smile  v]
go to x: [-210] y- [-2]

Offline

 

#7 2012-03-05 02:40:33

quiznite
New Scratcher
Registered: 2012-03-02
Posts: 4

Re: how do I freeze my character?

sorry, ill try again

[scratchblocks]
forever
when gf clicked
wait until [touching Sprite1 v]
play sound [scream-male1 v]
switch to costume [DEAD DX (saw) v]
change x by [-1]
change y by [1]
wait [3] secs
play sound [SpaceRipple v]
switch to costume [ALIVE! v]
go to x: [-210] y- [-2

Offline

 

#8 2012-03-05 03:01:32

Fordark
Scratcher
Registered: 2010-08-02
Posts: 100+

Re: how do I freeze my character?

Put [/scratchblocks] at the end and use the preview button before posting.

when gf clicked
forever
wait until [touching Sprite1 v]
play sound [scream-male1 v]
switch to costume [DEAD DX (saw) v]
change x by [-1]
change y by [1]
wait [3] secs
play sound [SpaceRipple v]
switch to costume [ALIVE! v]
go to x: [-210] y: [-2]

Last edited by Fordark (2012-03-05 03:02:09)


http://dl.dropbox.com/u/34855482/Fordarksig.png

Offline

 

#9 2012-03-05 08:12:16

G0D_M0D3
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: how do I freeze my character?

1) Make a variable called 'moving?' or 'frozen?' or something to that effect.

2) Wrap a {'if (moving?) = 1} around your movement script.

3) Make a trigger for freezing.

You can see a demo here: http://scratch.mit.edu/projects/owetre18/1646623

(press P to pause/unpause or freeze/unfreeze)

I made that project. It's my old account.

I needed to start over for undisclosed reasons.


I made a MC texture pack! Get it at planetminecraft!
http://i.imgur.com/0EG0u.png

Offline

 

Board footer