Discuss Scratch

-DragonDreams-
New Scratcher
8 posts

I want to make a platformer!!

So I am brand new (if you look at my profile I joined yesterday) ((from today lol)) I wanted to make a platformer!!! I've seen some cool ones!I whould really like it if someone could help me with the coding for it.
scratchieguy12345678
Scratcher
500+ posts

I want to make a platformer!!

Griffpatch has made a good platformer tutorial: https://scratch.mit.edu/projects/67727504/
-DragonDreams-
New Scratcher
8 posts

I want to make a platformer!!

scratchieguy12345678 wrote:

Griffpatch has made a good platformer tutorial: https://scratch.mit.edu/projects/67727504/
Thanks!! I also like your signiture
misaPuding
Scratcher
1000+ posts

I want to make a platformer!!

-DragonDreams- wrote:

So I am brand new (if you look at my profile I joined yesterday) ((from today lol)) I wanted to make a platformer!!! I've seen some cool ones!I whould really like it if someone could help me with the coding for it.
I can´t help you with the platformer as I absolutely don´t know how to make it, but don´t forget that you can´t make a multiplayer platformer as you are still a New Scratcher, so you can´t create cloud variables (however it´s not so bad, because although people love multiplayer platformers, because when someone manages to make more than just a cloud-stored record variable with cloud variables then people think that it is really cool, you don´t need multiplayer engine for platformer as there is no need to interact with other players in platformers).
goldenlion06
Scratcher
500+ posts

I want to make a platformer!!

I'm sorry, but we will need to know what theme, you might have to create the art though, (i am terrible at art) and how high you want the character to jump, ex.
MT1215
Scratcher
40 posts

I want to make a platformer!!

Hi! If anyone wants to take a step farther and make a SCROLLING PLATFORMER I know the easyest way posible! your player has no code!
Start by making a new sprite with two costumes. Call one Big(but only make it a pixel or two!) call the other one LEVEL and zoom in and draw your level!
Then add this code to it:
whenclickedgotox:0y:0switchcostumetoBigsetsizetoPlayaroundwiththis!%switchcostumetoLEVEL/scratch blocks/ifyoucannotfigueroutmovementIwillpostanothercomment.
MT1215
Scratcher
40 posts

I want to make a platformer!!

Pt 2 of scrolling platformer: add this underneath the Pt 1 code.
foreverifkeyup arrowpressed?thenchangeyby-Playaroundagain!Justmakeitnegitiveifkeyright arrowpressed?thenchangexby-5through-10ifkeyleft arrowpressed?thenchangexbyThesameasrightarrowkeybutpositive
MT1215
Scratcher
40 posts

I want to make a platformer!!

Pt 3:
Make a player sprite and then go to the level sprite and add these codes:
whenclickedMakeavariablecalledYvelocityandsetittozeroforeverMakeablockcalledGravityandputithere
define Gravity like this:
defineGravityifnottouchingYour player sprite?thenchangeY velocityby1changeybyYvelocityiftouchingYour player?thenrepeatuntilnottouchingYour player?changeyby-1setY velocityto0
-DragonDreams-
New Scratcher
8 posts

I want to make a platformer!!

MT1215 wrote:

Hi! If anyone wants to take a step farther and make a SCROLLING PLATFORMER I know the easyest way posible! your player has no code!
Start by making a new sprite with two costumes. Call one Big(but only make it a pixel or two!) call the other one LEVEL and zoom in and draw your level!
Then add this code to it:
whenclickedgotox:0y:0switchcostumetoBigsetsizetoPlayaroundwiththis!%switchcostumetoLEVEL/scratch blocks/ifyoucannotfigueroutmovementIwillpostanothercomment./quoteOkaythanks!!IamgoingtowaituntillIbecomeascratchersocanhaveahighscore!!

Powered by DjangoBB