its a little bit broken but its ok because this is just a test if i use it for something a little more important then i ll refine it you odnt have to read the section below, only if you want to help with making this movement thing better, and also then you wouldnt need to redd the whole thing there are alot of unused things in here so if you can please try to understand why they dont work and do something with them. for example i have a sprite called "something" that is supposed to go up and down repetedly and check if you are below or above the ground. if you are above it then it should teleport you up until it detects that youre above the ground, but i couldnt get it to detect when its touching the floor so if you can, please try to fix it. if you want information about the other unused sprote here, then read this: its supposed to go over the entire screen and detect when its touching the ground. if its touching the ground then it should put the Y value of where it touched the ground in a list called "groundY". then i tried to make it know whenever you are below the ground by checking if all of the items on the list are greater than the Y value of the player. What it should do is lift the player up when its below the ground. also the other unused sprite should do that. also if you go to fast then you just go through the ground so it would be handy if you could fix that too. (i made a sprite called "SlopeDetector" which is supposed to check if there is a slope infront of you and then lift you up a little which works like this: the is a little dot that always goes infront of the feet of the player and when it touches the ground it changed the Y value of the player by 10. there is also another one which is for the back of the player, because when you bouce off the wall to fast you can face the ground with your back and there is (was) no slope detector cfor the back so it would just slide through the ground and the player would just fall through it. a part of why i made a slope detector for the player's back is also the reason i even started typing this section (ofcrouse im talking about the one where you just go to fast then you would slide through the ground) is because when you go to fast it just doesnt detect when it touches something. thisis also the problem i had with the first thing i wrote. if you can try to make the code of the unused things work please remix this and let me know
most of the Y and X movement code is from another project of mine what do yall think? :D