Discuss Scratch

bsteichman
Scratcher
100+ posts

how to make a scrolling platformer???

make a big sprite with like 800x size make it move around when you press the arrow keys..
add physics and boom

Woah, a signature! :: control
Fighthill
Scratcher
22 posts

how to make a scrolling platformer???

grandhallhi wrote:

HI! I think i'm going to try making a scrolling platformer, but i don't know HOW , does anyone know?
when green flag clicked
say [thnx! :D] for (2) secs
Ok, I can show you but there will be lots of code! I will talk about 2 sprites. Those are the only sprites.
Make a platforms sprite. Do this code on the platforms sprite.
when green flag clicked
switch costume to [ Blank]
set size to (1000) %
switch costume to [ Level 1]
Blank should be a costume that has nothing.
Level 1 should be your level. Make sure the platforms are super small in the costume because small it will be big in the screen.
Now do this code in the platforms sprite.
when green flag clicked
forever
if <key [ right arrow] pressed?> then
change x by (-8)
end
if <key [ left arrow] pressed?> then
change x by (8)
end
end
Put this in the platforms sprite too. Put the same numbers that I put.
when green flag clicked
forever
if <<key [ up arrow] pressed?> and <touching [ Player] ?>> then
repeat (8)
change y by (-8)
end
repeat (8)
change y by (8)
end
end
Waffelchen
Scratcher
17 posts

how to make a scrolling platformer???

Can someone make a FULL tutoriel?
mike24062013
Scratcher
6 posts

how to make a scrolling platformer???

OMG
GamesAlt34
Scratcher
82 posts

how to make a scrolling platformer???

try this:
when green flag clicked
forever
change y by (0.45)
end

Test stuff because I have no idea.

when green flag clicked
if (pick random () to (100)) then
help a guy :: custom


else
i don't know how to do it :: custom
end
Waffelchen
Scratcher
17 posts

how to make a scrolling platformer???

say [HELP! SOMEONE! ]
glide (10) secs to x: (scrolling) y: (Platformer)
Waffelchen
Scratcher
17 posts

how to make a scrolling platformer???

when green flag clicked
[scratchblocks
set to
set [ x-velocity v] to [0]
forever
broadcast [Tick v]
end

when I receive [Tick v]
(Tick)

end

define Tick
if <key [right arrow v] pressed?> then
change [x-velocity v] by (1)
if <key [right arrow v] pressed?> then
change [x-velocity v] by (-1)


end



Is that right?

Last edited by Waffelchen (March 22, 2021 15:46:51)

Powered by DjangoBB