Hello there. I am far into Slimeith's quest 3 development when I went to finally work on the game's basic movement system. However I can not get it to work. Scrolling: I am trying to make it that it only scrolls with the tiles. So if I was going left it would stop scrolling once there were no more tiles left. Slimeith is supost to be able to keep traveling left until he hits the egde of the screen. Take this video as an example of what I want. https://www.youtube.com/watch?time_continue=1&v=GsaMo1TCNuA See how the stage scrolls with Meta Knight until he gets near the edge of it, then he starts moving the way he is going until he hits the edge of the screen. This is what I am aiming for. Collision: The collision in this does not work. It either prevents Slimeith from moving at all or lets him move through the ground. The scrolling should probally be fixed first before getting over to fix this. Other important notes: The locations of the tiles in this are stored as a 12 digit number. The first and sixth digit telling whether it is positive or negative and the rest telling where it should go. All tiles are in a 480 by 360 grid. I'm trying to get the scrolling to work by telling the game where it is allowed to go to and then stopping it if the game is not allowed to go there. The borders are stored as an item in a list, the first two numbers telling the game how many coordinates there are in the list with the rest of the numbers being the coordinates that the game is allowed to go into. Please remix this with the fixed code and tell me which scripts you changed/added and any variables you added as I will be backpacking the scripts into the sprites in the game as I took out a lot of things that were not used in scrolling or collision to prevent leaks. Thank you if you can fix this. This means a lot to me and I will be eternally thankful as this is a important part of the game. I worked really hard on the rest of the game, and it wouldn't be complete until this is fixed. Thanks to powercon5 for the set size technique to let the sprites scroll off the stage. I coded very thing else (so far).
So all I added was a rough way to check if Slimeh is touching anything, and if it gets past the sensors, then it has a little backup script in the sensors. But, if the opposite sensors are touching anything, it kinda does nothing.