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

#1 2012-12-29 10:34:40

ocean636
Scratcher
Registered: 2012-12-14
Posts: 8

Platformer games

Help!!! I need loads of help making a platformer game. I've made a few already, but they're no good. Could you please help me?

Offline

 

#2 2012-12-29 12:02:57

letmethink
Scratcher
Registered: 2010-05-09
Posts: 100+

Re: Platformer games

Please can you fully explain what you need help with


Clicky Clicky!!!               I am writing a book...             Look here

Offline

 

#3 2012-12-30 17:37:19

carsoncoolio
New Scratcher
Registered: 2012-12-29
Posts: 2

Re: Platformer games

I have the same issue as ocean636. i want to know how to make a block sprite solid so that my character sprite can jump on it. Like if i wanted my sprite to be able to jump on a blue block suspended in the air, how would I do that?

Offline

 

#4 2012-12-30 18:33:24

lalala3
Scratcher
Registered: 2008-10-03
Posts: 100+

Re: Platformer games

You would go here and find the page you needed.

Edit: Even better, look at the sticky topic named, "List of Helpful Topics for Scripting".

Last edited by lalala3 (2012-12-30 18:35:07)


http://img515.imageshack.us/img515/9374/signature2nt.png

Offline

 

#5 2012-12-30 18:59:47

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Platformer games

You could use wall sensors or color sensing (put 4 unique colors on the top, right, left, and bottom of the sprite to see if it is touching a wall and where it is).  Both are valid, but I would recommend somethings like this:

when gf clicked
forever
move horizontally
if<touching [wall/floor v]?>
go back to where you were before the horizontal move
end
move vertically
if<touching [wall/floor v]?>
go back to where you were before the vertical move
end
If you can tell me in greater detail what you want (acceleration-based gravity?  acceleration-based horizontal movement?  horizontal movement if you're not touching the ground?  wall jumping? etc.) I can try to write you the script if you want.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#6 2012-12-31 15:04:24

carsoncoolio
New Scratcher
Registered: 2012-12-29
Posts: 2

Re: Platformer games

That's just what i needed. Also, how would i switch levels? Like if I wanted to have an exit door, and when my sprite pressed the up button when touching it, the sprite would move on the the next level?

Offline

 

#7 2012-12-31 16:35:50

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Platformer games

when key [up arrow v] pressed
if<touching [door v]?>
change [level v] by (1)
broadcast (join [level ](level))
end

when I receive [level 1 v]
go to x:(-50) y:(-100) // starting place for level 1
set [y velocity v] to (0) // if you're using y velocity
set [x velocity v] to (0) // if you're using x velocity


when I receive [level 2 v]
go to x:(-150) y:(-120) // starting place for level 2
set [y velocity v] to (0) // if you're using y velocity
set [x velocity v] to (0) // if you're using x velocity
For the stage:

when I receive [level 1 v]
switch to costume [costume 1 v]

when I receive [level 2 v]
switch to costume [costume 2 v]
For the door:

when I receive [level 1 v]
go to x:(50) y:(75) // location of door in level 1

when I receive [level 2 v]
go to x:(80) y:(115) // location of door in level 2


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#8 2013-01-02 08:58:03

GrateGames
Scratcher
Registered: 2012-12-30
Posts: 15

Re: Platformer games

u could try adding enemies! Like mine! Here it is! Lord of Knights

Offline

 

#9 2013-01-02 16:08:31

lalala3
Scratcher
Registered: 2008-10-03
Posts: 100+

Re: Platformer games

GrateGames wrote:

u could try adding enemies! Like mine! Here it is! Lord of Knights

No. That's not what the person wanted. This is a blatant attempt to advertise your project.

Also, you guys make it way too easy. Remember, give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime. This is why I chose to link to the Scratch Wiki instead of an actual answer.


http://img515.imageshack.us/img515/9374/signature2nt.png

Offline

 

#10 2013-01-02 16:49:08

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Platformer games

lalala3 wrote:

GrateGames wrote:

u could try adding enemies! Like mine! Here it is! Lord of Knights

No. That's not what the person wanted. This is a blatant attempt to advertise your project.

Also, you guys make it way too easy. Remember, give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime. This is why I chose to link to the Scratch Wiki instead of an actual answer.

If somebody wants an answer, that's what I'm going to give them.  Are you insinuating that reading an answer on wiki is somehow more "character building" or "educational" than reading it on the forums?

Or are you arguing that they'll get a vaguer answer and hence have to struggle more to achieve something that has already been done by somebody else?  I admit there is some value in reinventing the wheel, but if somebody doesn't want to do it, why force them to?


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#11 2013-02-14 11:55:53

ocean636
Scratcher
Registered: 2012-12-14
Posts: 8

Re: Platformer games

Thanks you guys! You've helped alot!  smile

Offline

 

Board footer