Discuss Scratch

PlasmaMonkeyFanClub
Scratcher
23 posts

Platformer script not allowing sprite to go higher than a certain y position when pressing against a wall.

Here is the project link (ignore the asset optimisation problems, and other glitches lol)
https://scratch.mit.edu/projects/853937539/
Thank you so much to anyone who can help!!!
supa-panda
Scratcher
100+ posts

Platformer script not allowing sprite to go higher than a certain y position when pressing against a wall.

I don't see any bugs could you give specific instructions on how to trigger it?
greentreebee
Scratcher
100+ posts

Platformer script not allowing sprite to go higher than a certain y position when pressing against a wall.

i reviewed the code and there's nothing wrong i dont think. maybe this guy just wants veiws
supa-panda
Scratcher
100+ posts

Platformer script not allowing sprite to go higher than a certain y position when pressing against a wall.

… In witch case we just gave him what he wanted
PlasmaMonkeyFanClub
Scratcher
23 posts

Platformer script not allowing sprite to go higher than a certain y position when pressing against a wall.

The easiest way to trigger it is if you go to the staircase to the viewing area, then instead of entering, hold W and D so that you jump against the top wall but get stuck on the top of the screen instead of transitioning to the next scene. This might not seem like that much of a problem, but if I have a cross-scene platform the game will basically start going crazy when the player is falling from the top part into the bottom part while pressing against it. Again thank you so much!
PlasmaMonkeyFanClub
Scratcher
23 posts

Platformer script not allowing sprite to go higher than a certain y position when pressing against a wall.

greentreebee wrote:

i reviewed the code and there's nothing wrong i dont think. maybe this guy just wants veiws
There has to be smthn wrong tho otherwise the glitch wouldn't happen. I've looked at it for 2 hours and couldn't find it that's why I posted it here. Also I put the project on my alt specifically so that it WOULDN'T get views because its like 5% of the way through development, and it's super glitchy.

Edit: I don't even need the views anyway since I get an amount I'm content with on most of my projects on my main…

Last edited by PlasmaMonkeyFanClub (June 10, 2023 20:54:29)

greentreebee
Scratcher
100+ posts

Platformer script not allowing sprite to go higher than a certain y position when pressing against a wall.

supa-panda wrote:

… In witch case we just gave him what he wanted

yeah
PlasmaMonkeyFanClub
Scratcher
23 posts

Platformer script not allowing sprite to go higher than a certain y position when pressing against a wall.

greentreebee wrote:

supa-panda wrote:

… In witch case we just gave him what he wanted

yeah
Did you just ignore what I said…
I literally provided a more specific example, and also quoted you directly
I geniunely need help, I'm not trying to view grab, I don't need views on a garbage WIP, that's why I didn't post it on this account. If you can't, someone else please help because it's borderline game-breaking.
supa-panda
Scratcher
100+ posts

Platformer script not allowing sprite to go higher than a certain y position when pressing against a wall.

Found a way to fix the issue
PlasmaMonkeyFanClub
Scratcher
23 posts

Platformer script not allowing sprite to go higher than a certain y position when pressing against a wall.

supa-panda wrote:

Found a way to fix the issue
Thanks! I will try that
PlasmaMonkeyFanClub
Scratcher
23 posts

Platformer script not allowing sprite to go higher than a certain y position when pressing against a wall.

PlasmaMonkeyFanClub wrote:

supa-panda wrote:

Found a way to fix the issue
Thanks! I will try that
It causes the game to go crazy when switching scenes sometimes, I'm SUPER confused
I tried inserting it in different parts of the forever loop, but of course it goes back to its original state with the stuck on the ceiling glitch
greentreebee
Scratcher
100+ posts

Platformer script not allowing sprite to go higher than a certain y position when pressing against a wall.

supa-panda wrote:

Found a way to fix the issue
how do u take screenshots like that?
PlasmaMonkeyFanClub
Scratcher
23 posts

Platformer script not allowing sprite to go higher than a certain y position when pressing against a wall.

greentreebee wrote:

supa-panda wrote:

Found a way to fix the issue
how do u take screenshots like that?
Windows + Shift + S
Then click on the popup on the right side of the screen, and it will take you to an image editor which you can then save

Powered by DjangoBB