< User:JSO

About Me | Talk Page | Sandbox | contribs | My Stuff





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

when [up arrow v] key pressed
if <(jump?) = (0)>
  broadcast [game: jump v]
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 (1)
end
<scratchblocks>
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 v]
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 (1)
end
</scratchblocks>