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

#1 2007-07-06 13:18:54

Boopaloo
Scratcher
Registered: 2007-06-05
Posts: 75

HELP ME!!! I WANNA MAKE A PLATFORM GAME!

I really wanna make a platform game. I've made a character that can jump and move with the arrow keys. The character can sort of stand on platforms..... but it doesn't really work  sad       Somebody HELP ME!

Offline

 

#2 2007-07-06 15:38:16

Mayhem
Scratcher
Registered: 2007-05-26
Posts: 1000+

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

Post your project and we can take a look.


Web-spinning Spider:  http://scratch.mit.edu/projects/Mayhem/18456
3D Dungeon Adventure:  http://scratch.mit.edu/projects/Mayhem/23570
Starfighter X: http://scratch.mit.edu/projects/Mayhem/21825
Wandering Knight: http://scratch.mit.edu/projects/Mayhem/28484

Offline

 

#3 2007-07-07 09:24:21

Nick60
Scratcher
Registered: 2007-06-17
Posts: 100+

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

Il tell you how to make him stand.

First get what ever it is on the top (i.e Green Flag, "If key pressed")

1. Now put the ORANGE block called "Forver if"

2. Put one of the blues in the "Sensing" and then  select "touching color [] ?" 
[Just select the color you want him to stand on]
[Or for sprites just select "touching ____ "

3.  Now put how far it will move if touching the sprite or the color!
Most people just select.. "change X by 1 and Change Y by 1



-Nick


Let's  Be Blue!

Offline

 

#4 2007-07-09 16:24:54

FunkyStudios
Scratcher
Registered: 2007-07-03
Posts: 15

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

I don't under stand can you please post the whole thing together.

Offline

 

#5 2007-07-09 17:05:48

S65
Scratcher
Registered: 2007-05-18
Posts: 100+

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

Assuming you just want your character to move along flat one-color surfaces with no walls, slopes, or mid-air platforms (walls, slopes and mid-air platforms are where the programming can get complicated), a basic engine allowing for left movement, right movement, and jumping/gravity would work like this:

when green flag clicked
     forever
         if key left arrow pressed
                  change x by -2
         if key right arrow pressed
                   change x by 2
         if key space pressed
              if touching color []
                   if jumping = 0
                       set jumping to 1
                        repeat 20
                            change y by 2
                        set jumping to 0

when green flag clicked
     forever
              if not touching color []
                   if jumping = 0
                          repeat until touching color []
                                change y by -2

(replace color [] with color of platform)

The jumping variable is just a flag to indicate that you're jumping so the gravity script which pulls you down doesn't take place. When space is pressed, it sets the jumping flag to 1, and changes your y position by 2 20 times so that you go up. Then it sets jumping to 0, so the gravity effect takes place, which pulls you down until you're touching the []-color platform.

I'm sorry if I explained this badly, I suck at explaining things.  sad

Offline

 

#6 2007-07-10 13:59:19

FunkyStudios
Scratcher
Registered: 2007-07-03
Posts: 15

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

Thanks

Offline

 

#7 2007-07-13 01:55:52

arman106
Scratcher
Registered: 2007-07-11
Posts: 3

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

i dont get

Offline

 

#8 2007-07-13 01:57:02

arman106
Scratcher
Registered: 2007-07-11
Posts: 3

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

i mean i do everything but i can only jump on platforms not stand on them or move on them!

Offline

 

#9 2007-07-13 12:06:22

Boopaloo
Scratcher
Registered: 2007-06-05
Posts: 75

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

THANKYOU PEOPLE!!!! i wuv u all  smile

Offline

 

#10 2007-07-13 18:35:13

Boopaloo
Scratcher
Registered: 2007-06-05
Posts: 75

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

Nearly everthing is working, sort of..... but I want the character to chance costumes when he's walking. I've tryed this code:

When right arrow pressed
Forever if <Right arrow pressed>
change x by 3
point in direction 90
Repeat until <NOT right arrow key pressed>
switch to costume 1walk
wait 0.25 secs
switch to costume 2walk

But for some reason it just goes all juddery and doesn't move when I press the arow keys??? Aaaaarrrggg!!! Please help me someone!!!

Offline

 

#11 2007-07-13 18:58:45

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

Get rid of the forever if
move the "change x by 3" into the repeat-until loop

Offline

 

#12 2007-07-14 10:57:48

Boopaloo
Scratcher
Registered: 2007-06-05
Posts: 75

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

WAHAY! IT WORKS!!! thankyou sooo much! now all i have todo is think of a story and then i will be finished  smile

Offline

 

#13 2007-07-16 00:56:50

arman106
Scratcher
Registered: 2007-07-11
Posts: 3

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

ive been trying to get my guy to STAND on the platform but he onlu JUMPS on the platform. How do i get him to stand on the platforms?

Offline

 

#14 2007-07-16 01:17:36

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

Make A Forever if touching color or sprite change y by 2,3,4, or 5


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#15 2007-07-19 16:30:35

KGameLover1
Scratcher
Registered: 2007-06-04
Posts: 5

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

I need help! I wanna make a platform game with mid air platforms. Can you help? I would greatly appreciate it. Thanks!

Offline

 

#16 2007-07-20 01:43:47

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

See my game Tanks that I made for you. It's not finished, though. Click the blue highlited text of my website name on the left then click the project Tanks. Then download it and look at it's scripts. Hope that helps.


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#17 2007-07-30 11:11:38

Boopaloo
Scratcher
Registered: 2007-06-05
Posts: 75

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

Whats the best way to make the backgrounds change?

Offline

 

#18 2007-08-06 14:19:37

arby
Scratcher
Registered: 2007-06-01
Posts: 1

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

Keep it simple, take a look at mine:

http://scratch.mit.edu/users/arby

Offline

 

#19 2007-08-14 14:12:59

Llamalover
Scratcher
Registered: 2007-05-18
Posts: 100+

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

Check this http://scratch.mit.edu/projects/Llamalover/27039 out for loads of cool changing effects, feel free to take the scripts!


Be nice, I'm an old lady  wink

Offline

 

#20 2007-08-25 11:01:49

adriangl
Scratcher
Registered: 2007-07-02
Posts: 1000+

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

take pinball and try to make a new one


Scratchin' since 2007

Offline

 

#21 2007-08-26 02:13:20

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

Hello, Boopaloo! When I finish the platforms, I can help you with the scrolling part. I've already tried it with Max, and it worked.  wink


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#22 2007-12-12 22:40:52

dimentio
Scratcher
Registered: 2007-10-27
Posts: 8

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

Nice.

Offline

 

#23 2008-05-17 15:58:20

LoneFox
Scratcher
Registered: 2008-03-23
Posts: 15

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

what do you mean "not right arrow key pressed"?

Offline

 

#24 2008-05-17 16:07:31

redsooty9
Scratcher
Registered: 2008-03-06
Posts: 69

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

I could help you with the Gravity and stuff just do forever if NOT touching colour (whatever the platform colour is) then in the forever if block put in a change y by -1(higher the number to make the Sprite go down faster. And there we go!


Redsooty9

Offline

 

#25 2008-06-29 18:41:50

sonick636
Scratcher
Registered: 2008-05-18
Posts: 2

Re: HELP ME!!! I WANNA MAKE A PLATFORM GAME!

I had the same trouble!


Kung Fucius says: Those who sleep with itchy butt wake up with smelly fingers!

Offline

 

Board footer