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

#1 2013-04-05 14:08:58

SpaShadow
New Scratcher
Registered: 2013-04-05
Posts: 3

back down

as you see in my portal test project, when you put a portal in the air and one on the ground and go though it you are still in the air. the question is how do get back on the ground?

and my 2nd question is how do i keep the portals in a fix spot?

i'm making a new version of this so if you want me to post an updated version so you can see just ask, so far nothing has changed in the new version

Offline

 

#2 2013-04-07 17:49:59

cauzality
New Scratcher
Registered: 2013-03-19
Posts: 44

Re: back down

unless you want him to fall, you could make another portal up above to take him back; you could control when it "opens" and "closes" by controlling when it's visible or not by using the broadcast block in the control drawer. Then in the new portal sprite's scripts, use When i receive blocks:

when I receive [open v]
show
when I receive [close v]
hide

Offline

 

#3 2013-04-09 02:48:52

SpaShadow
New Scratcher
Registered: 2013-04-05
Posts: 3

Re: back down

thanks, but i want the sprite to fall back down to the ground

Offline

 

#4 2013-04-09 21:59:44

cauzality
New Scratcher
Registered: 2013-03-19
Posts: 44

Re: back down

when gf clicked
forever
   do stuff
You probably already have a when green flag clicked stack of blocks in your character's script with a forever loop under it; try adding this if block somewhere in that.

when gf clicked
forever
   do stuff
   if < not < touching color [#B5B5B5]? > >
      change y by [-10]
end

Offline

 

#5 2013-04-12 12:56:01

SpaShadow
New Scratcher
Registered: 2013-04-05
Posts: 3

Re: back down

thank you, that has fixed it

Offline

 

Board footer