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

#1 2012-11-03 19:15:51

fillergames
Scratcher
Registered: 2012-10-15
Posts: 1000+

How do you do this?

I want to make a collectible object in my scrolling game but i don't know how to do this one thing. You see in my game when objects get far away from the player, or the player collected the object. All the scripts in the objects stop then they hide. when they get close to the player they show and they scripting starts again. 

But a glitch makes it when they get near the player they show an there scripting starts again
when they get close to the player the scripting starts again after the player already got the object. I want to make them hide if the player already got them

How do i do this without variables.


http://i50.tinypic.com/2ufvxc5_th.gif Grammer? Whats grammar?

Offline

 

#2 2012-11-03 19:23:54

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

Re: How do you do this?

Well, without variables, you can do it so that after you collect the object, it switches to costume that is only 1 pixel, and then set that sprite's ghost effect to 100. Make sure to set the ghost effect to 0 in the beginning though, otherwise it'll always stay hidden.

Offline

 

#3 2012-11-03 19:32:07

fillergames
Scratcher
Registered: 2012-10-15
Posts: 1000+

Re: How do you do this?

TorbyFork234 wrote:

Well, without variables, you can do it so that after you collect the object, it switches to costume that is only 1 pixel, and then set that sprite's ghost effect to 100. Make sure to set the ghost effect to 0 in the beginning though, otherwise it'll always stay hidden.

Thanks!


http://i50.tinypic.com/2ufvxc5_th.gif Grammer? Whats grammar?

Offline

 

Board footer