Discuss Scratch
- Discussion Forums
 - » Help with Scripts
 - » Help with my platformer
        
         
- GalaxyGamingscratch1
 - 
                            
						
						
                            Scratcher
                        
						
						 
70 posts
Help with my platformer
So, i was just watching Griffpatch's classic platformer tutorial (I'm still in episode 1) and I got a glitch. Can someone help me? It appears that I can walk through walls…
https://youtu.be/VLv-2J9nGpc
                        
                        
                    https://youtu.be/VLv-2J9nGpc
- Funky_2
 - 
                            
						
						
                            Scratcher
                        
						
						 
20 posts
Help with my platformer
So, i was just watching Griffpatch's classic platformer tutorial (I'm still in episode 1) and I got a glitch. Can someone help me? It appears that I can walk through walls…Yeah that also happened to me, I don't know a way to fix that so I just gave up on my plataformer and started making other things.
https://youtu.be/VLv-2J9nGpc
- Thingied
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
Help with my platformer
Can you link the project, even if it's unshared? It's really hard to help when there's no context at all.
                        
                        
                    - GalaxyGamingscratch1
 - 
                            
						
						
                            Scratcher
                        
						
						 
70 posts
Help with my platformer
Can you link the project, even if it's unshared? It's really hard to help when there's no context at all.https://scratch.mit.edu/projects/598775007/
- Thingied
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
Help with my platformer
Here's the new scripts:

If you're interested in when this happens in the video, go to the chapter titled “Horizontal Collisions” or timestamp 15:24.
                        
                        
                    
If you're interested in when this happens in the video, go to the chapter titled “Horizontal Collisions” or timestamp 15:24.
- GalaxyGamingscratch1
 - 
                            
						
						
                            Scratcher
                        
						
						 
70 posts
Help with my platformer
Here's the new scripts:I did change my blocks, but it could still walk through walls.
If you're interested in when this happens in the video, go to the chapter titled “Horizontal Collisions” or timestamp 15:24.

- Thingied
 - 
                            
						
						
                            Scratcher
                        
						
						 
1000+ posts
Help with my platformer
I did change my blocks, but it could still walk through walls.Didn't remove the change x by block.

- PEN8Aaluno4
 - 
                            
						
						
                            New Scratcher
                        
						
						 
2 posts
Help with my platformer
hello! I need help with a problem, I was watching Griffpatch's classic platformer tutorial, I did everything that was taught, but the code from episode 6 isn't working, which is for vertical levels, I can even go to levels above 100, but I can't go down, I can't go back to levels below 100
Can anyone help me?
ola! preciso de ajuda com um problema, eu estava assistindo o Griffpatch's classic platformer tutorial, eu fiz tudo que foi ensinado, mas o código do episódio 6 não está funcionando, que é o de leveis verticais, eu até consigo ir leveis acima de 100, mas não consigo descer, eu não consigo voltar para leveis abaixo de 100
alguém consegue me ajudar?
video link:
https://www.youtube.com/watch?v=_KpiiOSMn6w&list=PLy4zsTUHwGJIATydhFeZa5pspLZR7yE__&index=6
                        
                        
                    Can anyone help me?
ola! preciso de ajuda com um problema, eu estava assistindo o Griffpatch's classic platformer tutorial, eu fiz tudo que foi ensinado, mas o código do episódio 6 não está funcionando, que é o de leveis verticais, eu até consigo ir leveis acima de 100, mas não consigo descer, eu não consigo voltar para leveis abaixo de 100
alguém consegue me ajudar?
video link:
https://www.youtube.com/watch?v=_KpiiOSMn6w&list=PLy4zsTUHwGJIATydhFeZa5pspLZR7yE__&index=6
- DatCoder999
 - 
                            
						
						
                            Scratcher
                        
						
						 
61 posts
Help with my platformer
try this
make sure to set the block to without screen refresh
                        
                        
                    define gravity
forever
change y by (gravity)
change [gravity] by (-1)
if <touching [ground] ?> then
repeat until <not <touching [ground] ?>>
change y by (1)
end
end
end
make sure to set the block to without screen refresh
- DatCoder999
 - 
                            
						
						
                            Scratcher
                        
						
						 
61 posts
Help with my platformer
sorry wrong thing
do this
these should fix issue
                        
                            do this
define move (steps)
forever
change x by (((<key [a] pressed?> - <key [d] pressed?>)*(steps)))
if <touching [wall] ?> then
change x by ((-1)*(steps))
end
end
when green flag clicked
if <key [space] pressed?>
set [gravity] to [12]
end
define gravity
forever
change [gravity] by (-1)
change y by (gravity)
if <touching [ground] ?>
set [gravity] to [0]
repeat until <not <touching [ground] ?>>
change y by (1)
end
end
end
these should fix issue
Last edited by DatCoder999 (Oct. 18, 2023 21:15:19)
- DatCoder999
 - 
                            
						
						
                            Scratcher
                        
						
						 
61 posts
Help with my platformer
hello! I need help with a problem, I was watching Griffpatch's classic platformer tutorial, I did everything that was taught, but the code from episode 6 isn't working, which is for vertical levels, I can even go to levels above 100, but I can't go down, I can't go back to levels below 100
Can anyone help me?
ola! preciso de ajuda com um problema, eu estava assistindo o Griffpatch's classic platformer tutorial, eu fiz tudo que foi ensinado, mas o código do episódio 6 não está funcionando, que é o de leveis verticais, eu até consigo ir leveis acima de 100, mas não consigo descer, eu não consigo voltar para leveis abaixo de 100
alguém consegue me ajudar?
video link:
https://www.youtube.com/watch?v=_KpiiOSMn6w&list=PLy4zsTUHwGJIATydhFeZa5pspLZR7yE__&index=6
wait can you record a video of the issue and send it to me
- DatCoder999
 - 
                            
						
						
                            Scratcher
                        
						
						 
61 posts
Help with my platformer
So, i was just watching Griffpatch's classic platformer tutorial (I'm still in episode 1) and I got a glitch. Can someone help me? It appears that I can walk through walls…or watch this
https://youtu.be/VLv-2J9nGpc
skip to the movement script part
Last edited by DatCoder999 (Oct. 18, 2023 21:21:15)
- Discussion Forums
 - » Help with Scripts
 - 
            » Help with my platformer 
         
            



