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

#1 2012-05-16 20:57:55

bizzib
Scratcher
Registered: 2010-03-10
Posts: 14

What is this?

http://joren.tk/blocks/pluginlab.htm
Or if the link doesn't work read below

when I receive [game: jump v]
set [jump? v] to (1)
change y by (2)
set [v speed v] to (5)

when [up arrow v] key pressed
if <(jump?) = (0)>
  broadcast [game: jump]
end

when I receive [game: start v]
repeat until <not <(screen) = (screen)>> 
  change y by (v speed)
  if <not <touching [ground v]?>>
    change [v speed v] by (-0.25)
  else
    change y by (((v speed) + (1)) * (-1))
    set [v speed v] to (0)
    set [jump? v] to (0)
    wait until <<not <touching [ground v]?>> or <(jump?) = (1)>>
  end
end

when I receive [game: start v]
set [ghost v] effect to (100)
repeat until <not <(screen) = (screen)>> 
  set x to ( [x position v] of [sensor2 v] )
end

when I receive [game: jump v]
set [jump? v] to (1)
change y by (2)
set [v speed v] to (5)

when [up arrow v] key pressed
if <(jump?) = (0)>
  broadcast [game: jump]
end

when I receive [game: start v]
repeat until <not <(screen) = (screen)>> 
  change y by (v speed)
  if <not <touching [ground v]?>>
    change [v speed v] by (-0.25)
  else
    change y by (((v speed) + (1)) * (-1))
    set [v speed v] to (0)
    set [jump? v] to (0)
    wait until <<not <touching [ground v]?>> or <(jump?) = (1)>>
  end
end

when I receive [game: start v]
set [ghost v] effect to (100)
repeat until <not <(screen) = (screen)>> 
  set x to ( [x position v] of [sensor2 v] )
end

Then at the bottom it says in hyperlink blue: parse script!

I got the link from another post. It's a closed topic though.

My question is: What...does...this...mean?

Offline

 

#2 2012-05-16 20:59:01

bizzib
Scratcher
Registered: 2010-03-10
Posts: 14

Re: What is this?

One thing I forgot to mention, clicking the parse script doesn't do anything.

Offline

 

#3 2012-05-16 22:42:08

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: What is this?

Hmm...It looks like a jumping script, I notice some things in there to make sure you don't jump again while in midair...It also seems to have some sort of gravity effect, but I couldn't tell you precisely what it would do, besides the stuff I already mentioned.


Why are the secret organizations getting all the attention?  mad

Offline

 

#4 2012-05-17 05:48:40

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

Re: What is this?

bizzib wrote:


when I receive [game: jump v]
set [jump? v] to (1)
change y by (2)
set [v speed v] to (5)

when [up arrow v] key pressed
if <(jump?) = (0)>
  broadcast [game: jump]
end

when I receive [game: start v]
repeat until <not <(screen) = (screen)>>  
  change y by (v speed)
  if <not <touching [ground v]?>>
    change [v speed v] by (-0.25)
  else
    change y by (((v speed) + (1)) * (-1))
    set [v speed v] to (0)
    set [jump? v] to (0)
    wait until <<not <touching [ground v]?>> or <(jump?) = (1)>>
  end
end

when I receive [game: start v]
set [ghost v] effect to (100)
repeat until <not <(screen) = (screen)>>  
  set x to ( [x position v] of [sensor2 v] )
end

when I receive [game: jump v]
set [jump? v] to (1)
change y by (2)
set [v speed v] to (5)

when [up arrow v] key pressed
if <(jump?) = (0)>
  broadcast [game: jump]
end

when I receive [game: start v]
repeat until <not <(screen) = (screen)>>  
  change y by (v speed)
  if <not <touching [ground v]?>>
	change [v speed v] by (-0.25)
  else
	change y by (((v speed) + (1)) * (-1))
	set [v speed v] to (0)
	set [jump? v] to (0)
	wait until <<not <touching [ground v]?>> or <(jump?) = (1)>>
  end
end

when I receive [game: start v]
set [ghost v] effect to (100)
repeat until <not <(screen) = (screen)>>  
  set x to ( [x position v] of [sensor2 v] )
end

A jumping script?


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

Offline

 

#5 2012-05-30 22:51:40

bizzib
Scratcher
Registered: 2010-03-10
Posts: 14

Re: What is this?

sonicfan12p wrote:

Hmm...It looks like a jumping script, I notice some things in there to make sure you don't jump again while in midair...It also seems to have some sort of gravity effect, but I couldn't tell you precisely what it would do, besides the stuff I already mentioned.

Thanks anyway...

Offline

 

Board footer