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

#1 2012-01-28 13:25:11

pkease
Scratcher
Registered: 2011-12-31
Posts: 24

Platform games with jumpp

I can not seem to make platform games. HELP!!!! how do you make sprites jump and make platform?

Offline

 

#2 2012-01-28 13:29:50

hello12345678910
Scratcher
Registered: 2009-07-11
Posts: 100+

Re: Platform games with jumpp

Check the wiki and the Platforming tutorial

Last edited by hello12345678910 (2012-01-28 13:31:55)


http://tinyurl.com/8yt32o9 http://tinyurl.com/6tgwp5r || Fish = F+I+S+H = 6+9+19+8 = 42<<The answer to Life, the Universe and Everything

Offline

 

#3 2012-01-28 13:38:30

treebark1313
Scratcher
Registered: 2011-05-23
Posts: 90

Re: Platform games with jumpp

when gf clicked
forever
if <up arrow key pressed>
  change y by [10]
end
should do it, combined with a basic falling engine(gravity)

Last edited by treebark1313 (2012-01-28 13:38:59)


When life gives you 100 reasons to frown,
show life you have 1000 reasons to smile. - Unknown

Offline

 

#4 2012-01-28 14:02:32

jimmyboy798
New Scratcher
Registered: 2012-01-26
Posts: 19

Re: Platform games with jumpp

when gf clicked
forever 
if <not<touching [ground v]?>>
repeat until <touching ground>
change y by [1]
end
end
if <key [up arrow v] pressed?>
change y by [10]

Offline

 

#5 2012-01-28 14:42:58

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Platform games with jumpp

jimmyboy798 wrote:

when gf clicked
forever 
if <not<touching [ground v]?>>
repeat until <touching [ground v]?>
change y by (-1)
end
end
if <touching [ground v]?>
if <key [up arrow v] pressed?>
change y by (10)
end
end

Fixed it a bit.

Last edited by rdococ (2012-01-28 14:43:12)

Offline

 

#6 2012-01-28 14:48:48

slayerrobe7
Scratcher
Registered: 2011-06-24
Posts: 500+

Re: Platform games with jumpp

rdococ wrote:

jimmyboy798 wrote:

when gf clicked
forever 
if <not<touching [ground v]?>>
repeat until <touching [ground v]?>
change y by (-1)
end
end
if <touching [ground v]?>
if <key [up arrow v] pressed?>
change y by (10)
end
end

Fixed it a bit.

forgot the "-" in -1


!!!When it comes to Scratch2.0 I am totally like freaking out!!!

Offline

 

#7 2012-01-28 15:33:01

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

Re: Platform games with jumpp

Clicky  big_smile


Why

Offline

 

#8 2012-01-28 16:30:15

JSO
Community Moderator
Registered: 2007-06-23
Posts: 1000+

Re: Platform games with jumpp

There are a bunch of simple jumping scripts available on this page on the Scratch Wiki  smile


http://oi48.tinypic.com/2v1q0e9.jpg

Offline

 

#9 2012-01-28 18:37:52

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: Platform games with jumpp

when [up arrow v] key pressed
repeat [10]
   change y by [5]
end
repeat [10]
    change y by [-5]
end
The top is a hat block  smile

Last edited by funelephant (2012-01-28 18:38:32)


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#10 2012-01-29 05:54:05

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

Re: Platform games with jumpp

when green flag clicked
set (y velocity) to [0]
forever
if <touching color [#36E813]?>
  if <key [up arrow v] pressed?>
  set [y velocity v] to (10)
  else
  set [y velocity v] to (1)
  end
 else
   change [y velocity v] by (-1)
end
change y by (y velocity)
end

Last edited by RedRocker227 (2012-01-29 05:54:36)


Why

Offline

 

#11 2012-01-29 06:20:03

rdococ
Scratcher
Registered: 2009-10-11
Posts: 1000+

Re: Platform games with jumpp

when green flag clicked
forever
if <key [left arrow v] pressed?> // Movement left
change [x velocity v] by (-1)
end
if <key [right arrow v] pressed?> // Movement right
change [x velocity v] by (1)
end
if <touching [ground v]?> // Jumping
if <key [up arrow v] pressed?>
change [y velocity v] by (1)
end
else // Gravity
change [y velocity v] by ((y velocity) * (-0.5))
end
change [x velocity v] by ((x velocity) * (-0.5))
change x by (x velocity)
change y by (y velocity)

Last edited by rdococ (2012-01-29 09:29:46)

Offline

 

#12 2012-01-29 06:34:55

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

Re: Platform games with jumpp

rdodoc, you need to put a "?" before the ">". Then it'll work  wink


Why

Offline

 

#13 2012-01-29 09:06:18

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: Platform games with jumpp

treebark1313 wrote:

when gf clicked
forever
if <up arrow key pressed>
  change y by [10]
end
should do it, combined with a basic falling engine(gravity)

It barley jumps...


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#14 2012-01-29 09:09:25

G0D_M0D3
Scratcher
Registered: 2011-11-28
Posts: 1000+

Re: Platform games with jumpp

funelephant wrote:

treebark1313 wrote:

when gf clicked
forever
if <up arrow key pressed>
  change y by [10]
end
should do it, combined with a basic falling engine(gravity)

It barley jumps...

So, change the value of y.


I made a MC texture pack! Get it at planetminecraft!
http://i.imgur.com/0EG0u.png

Offline

 

#15 2012-01-29 09:28:38

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: Platform games with jumpp

G0D_M0D3 wrote:

funelephant wrote:

treebark1313 wrote:

when gf clicked
forever
if <up arrow key pressed>
  change y by [10]
end
should do it, combined with a basic falling engine(gravity)

It barley jumps...

So, change the value of y.

She wants to know how to make the full block -_-


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#16 2012-01-29 09:43:02

Dinoclor
Scratcher
Registered: 2010-06-10
Posts: 1000+

Re: Platform games with jumpp

Version I use:

when flag clicked
forever
if (up key pressed)
if (touching ground)
change y by [10]
end
end
end

Last edited by Dinoclor (2012-01-29 09:45:02)


This is a temporary signature. It will exist until I think of something witty.

Offline

 

Board footer