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

#1 2012-08-08 05:46:35

JamieBruce
Scratcher
Registered: 2012-08-05
Posts: 52

jumping game

I want to make a jumping game but how?  hmm


help my project "the adventures of oreo,sandstone and flopsy"
[url=file:///C:/Users/Jamie/Desktop/JBcaptain/JBcaptain.htmL[/url]

Offline

 

#2 2012-08-08 06:11:22

Zarule6
New Scratcher
Registered: 2012-08-02
Posts: 36

Re: jumping game

JamieBruce wrote:

I want to make a jumping game but how?  hmm

well that depends what type of jumping game you want to make,like a platformer Game (go to this page if you want examples or an description ->    click here )

Generally its done by the following then.

                                                                                                                 when space key pressed
        change y by 20
        change x by 20
        wait 0.3 secs
        change x by 20
        change y by -20

Offline

 

#3 2012-08-08 07:47:28

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

Re: jumping game

Zarule6 wrote:

JamieBruce wrote:

I want to make a jumping game but how?  hmm

well that depends what type of jumping game you want to make,like a platformer Game (go to this page if you want examples or an description ->    click here )

Generally its done by the following then.

                                                                                                                 when [space v] key pressed
        change y by (20)
        change x by (20)
        wait (0.3) secs
        change x by (20)
        change y by (-20)

Fixed. This might help too.


FOR ALL THE NEWS ON UPDATES FOR SIMPLISTICRAFT, CLICK HERE.

Offline

 

#4 2012-08-11 16:57:04

maxamillion321
Scratcher
Registered: 2011-06-17
Posts: 500+

Re: jumping game

You use these scripts.

go to x:(0)y:(0)
or

glide x:(0)y:(0)

Offline

 

#5 2012-08-11 17:53:07

zammer990
Scratcher
Registered: 2012-01-22
Posts: 500+

Re: jumping game

Velocities or cosine arcs work better


http://i45.tinypic.com/2ynq7nn.jpg Play now!

Offline

 

#6 2012-08-11 18:05:58

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: jumping game

zammer990 wrote:

Velocities or cosine arcs work better

This.


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

#7 2012-08-11 18:22:40

chrisbown
Scratcher
Registered: 2011-07-29
Posts: 100+

Re: jumping game

jontmy00 wrote:

Zarule6 wrote:

JamieBruce wrote:

I want to make a jumping game but how?  hmm

well that depends what type of jumping game you want to make,like a platformer Game (go to this page if you want examples or an description ->    click here )

Generally its done by the following then.

                                                                                                                 when [space v] key pressed
        change y by (20)
        change x by (20)
        wait (0.3) secs
        change x by (20)
        change y by (-20)

Fixed. This might help too.

and that's how you push the button.


check out this: Tank physicshttp://scratch.mit.edu/projects/hamstercake11/3082288

Offline

 

Board footer