Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Sprite Teleports Through the Ground Glitch
- PoTigger
-
20 posts
Sprite Teleports Through the Ground Glitch
In my platformer game I have a very weird glitch where my sprite falls through the ground. It is very annoying and when I try dragging him up to the top he just goes back to the bottom of the screen. I have searched all of the scripts and have found nothing wrong. Please help this is preventing me from making my platformer. If you would like to see the game click this link: https://scratch.mit.edu/projects/87878467/#player
- drmcw
-
1000+ posts
Sprite Teleports Through the Ground Glitch
Initialising things helps particularly the start position and the y velocity.
- Ataxaos
-
500+ posts
Sprite Teleports Through the Ground Glitch
https://scratch.mit.edu/projects/87878467/#playerThis is one of the most common problems when people try to make platformers - it happens when you forget to reset the velocity (especially the y-velocity, if your sprite keeps teleporting through the ground) at the start of the game/each level. In my platformer game I have a very weird glitch where my sprite falls through the ground. It is very annoying and when I try dragging him up to the top he just goes back to the bottom of the screen. I have searched all of the scripts and have found nothing wrong. Please help this is preventing me from making my platformer. If you would like to see the game click this link:
Make sure you have these blocks:
- PoTigger
-
20 posts
Sprite Teleports Through the Ground Glitch
Thank you soooo much Ataxaos, this helped tons but I still have one problem. After the first level the sprite will not move. Please help me
- Ataxaos
-
500+ posts
Sprite Teleports Through the Ground Glitch
It's because your “sensor” sprite sets the variable “Can-Go” to 0. Thank you soooo much Ataxaos, this helped tons but I still have one problem. After the first level the sprite will not move. Please help me
I assume that the sensor is supposed to move with the sprite?
But right now, you didn't give it any movement scripts, so it just stays in one spot.
- PoTigger
-
20 posts
Sprite Teleports Through the Ground Glitch
Oh! That was silly of me. I get it now, so thank you very much! My platformer should be working in proper order now thanks.
- CodeRedTeacher
-
2 posts
Sprite Teleports Through the Ground Glitch
my sprite keeps telaprting arond
- scubajerry
-
1000+ posts
Sprite Teleports Through the Ground Glitch
CodeRedTeacher
You should start a new topic and also share your project and provide a link.
You should start a new topic and also share your project and provide a link.
- Discussion Forums
- » Help with Scripts
-
» Sprite Teleports Through the Ground Glitch