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

#1 2012-03-20 14:08:53

aaron1725
New Scratcher
Registered: 2012-03-07
Posts: 1

makeing things invisable

im making a gun game game and i need the zombies to disepear

Offline

 

#2 2012-03-20 14:18:50

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

Re: makeing things invisable

when gf clicked
wait until <touching [Bullet v]?>
hide
This should go in Help With Scripts though.


Why

Offline

 

#3 2012-03-20 15:19:04

turkey3
Scratcher
Registered: 2011-12-04
Posts: 500+

Re: makeing things invisable

The

Hide
Block is what you need.

Last edited by turkey3 (2012-03-20 15:19:34)

Offline

 

#4 2012-03-20 15:32:54

AgentRoop
Scratcher
Registered: 2012-02-11
Posts: 1000+

Re: makeing things invisable

The hide block can be found in the Looks section.

hide
you could also do this:
set [ghost] effect to (100)
but they both work to make it invisible. Usually the hide block works better.


La La
I wrote an album.

Offline

 

#5 2012-03-20 15:35:31

AgentRoop
Scratcher
Registered: 2012-02-11
Posts: 1000+

Re: makeing things invisable

aaron1725 wrote:

im making a gun game game and i need the zombies to disepear

you only need to say game once.  big_smile


La La
I wrote an album.

Offline

 

#6 2012-03-20 18:31:03

TorbyFork234
Scratcher
Registered: 2012-03-01
Posts: 1000+

Re: makeing things invisable

AgentRoop wrote:

The hide block can be found in the Looks section.

hide
you could also do this:
set [ghost] effect to (100)
but they both work to make it invisible. Usually the hide block works better.

But if he's making the game right, then the zombies will keep on coming towards the person and the person will start losing health all the time so what you should do it this

when gf clicked
forever
if <<dead>=[1]> //Where, you make a variable to broadcast that the zombie is dead
hide
go to x:[1000] y:[1000]
if <(distance to [person v]) < [70]> // where the person you're controlling is "person"
repeat until <(distance to [person v]) < [70]>
go to x:[1000] y:[1000]
end
go to x:[1000] y:[1000]
end
end
That should work better than just hide

Offline

 

#7 2012-03-20 19:16:10

AgentRoop
Scratcher
Registered: 2012-02-11
Posts: 1000+

Re: makeing things invisable

TorbyFork, i dont think that you have to worry about problems like that. You can still get hurt if you change ghost, but if you use the simple hide, it usually keeps the sprite from doing anything. Thats what happens in my games, anyways. Ghost is used if you want the sprite to keep doing what its doing, but be invisible. hide is used when you want to make a sprite turn invisible and not affect the game anymore at all.


La La
I wrote an album.

Offline

 

Board footer