Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » how to make a scrolling platformer???
- 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
add physics and boom
Woah, a signature! :: control
- Fighthill
- Scratcher
22 posts
how to make a scrolling platformer???
Ok, I can show you but there will be lots of code! I will talk about 2 sprites. Those are the only sprites. 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
Make a platforms sprite. Do this code on the platforms sprite.
when green flag clickedBlank should be a costume that has nothing.
switch costume to [ Blank]
set size to (1000) %
switch costume to [ Level 1]
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 clickedPut this in the platforms sprite too. Put the same numbers that I put.
forever
if <key [ right arrow] pressed?> then
change x by (-8)
end
if <key [ left arrow] pressed?> then
change x by (8)
end
end
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?
- 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)
- Discussion Forums
- » Help with Scripts
- » how to make a scrolling platformer???