Discuss Scratch

AwesomePizzaDude
Scratcher
16 posts

Game is broken for no reason?

Hey, a few years ago my friend made a platformer, but after, I believe, a change to the scratch engine, the broke in some ways:

1. You can't come up when inside a platform. For example, on a downwards slope, you can start on the top of it, and go down normally, but when you try to walk back up, you just go inside it. Also, when inside you can't jump. This wasn't always an issue, previously it was just the below issue, but now this is here and I can't for the life of me find out why.
2. There is an invisible barrier somewhere above. It differs on each level, but as far as I know it's always there in some way or another.

I have NO IDEA how to fix this, even after an hour of testing. PLEASE PLEASE PLEASE help me here. If anybody can find out why these things are happening, I would be extremely grateful. Thanks! c:

The game I need help with: https://scratch.mit.edu/projects/116324170/
The game the movement scripts came from, might help you idk: https://scratch.mit.edu/projects/34478522/

Edit: I've told him everything and he says the barrier probably differs on each level because the background gets brighter in each level. It must be a particular colour that causes this, but I've looked at all the sensing blocks involving colour in the player's sprite, and I've found nothing. Either that or I'm not too observant. Hopefully you guys can help.

Last edited by AwesomePizzaDude (Jan. 14, 2020 07:27:02)

ramenosu
Scratcher
52 posts

Game is broken for no reason?

AwesomePizzaDude wrote:

Hey, a few years ago my friend made a platformer, but after, I believe, a change to the scratch engine, the broke in some ways:

1. You can't come up when inside a platform. For example, on a downwards slope, you can start on the top of it, and go down normally, but when you try to walk back up, you just go inside it. Also, when inside you can't jump. This wasn't always an issue, previously it was just the below issue, but now this is here and I can't for the life of me find out why.
2. There is an invisible barrier somewhere above. It differs on each level, but as far as I know it's always there in some way or another.

I have NO IDEA how to fix this, even after an hour of testing. PLEASE PLEASE PLEASE help me here. If anybody can find out why these things are happening, I would be extremely grateful. Thanks! c:

The game I need help with: https://scratch.mit.edu/projects/116324170/
The game the movement scripts came from: https://scratch.mit.edu/projects/34478522/

Edit: I've told him everything and he says the barrier probably differs on each level because the background gets brighter in each level. It must be a particular colour that causes this, but I've looked at all the sensing blocks involving colour in the player's sprite, and I've found nothing. Either that or I'm not too observant. Hopefully you guys can help.
This is probably because of Scratch 3. It mostly broke a lot of games and nobody knows why. I'll look into the games and see what I can do to help.

i play games.

when I receive [homework]
say [SCREAM]
AwesomePizzaDude
Scratcher
16 posts

Game is broken for no reason?

Anything yet?
gor-dee
Scratcher
1000+ posts

Game is broken for no reason?

in the Issac Newton custom block, firstly get rid of the touching colour and replace with touching “Ground”. Unless you think this will mess up later level but it seems like it's just there to detect ground and using touching colour is really laggy. Next put a repeat until loop round the “Change Y by” block, put a
<not <>>
in it and copy all the touching OR touching OR touching blocks and put them in the NOT.

now right click on the custom block, EDIT and click “run without screen refresh”
finally rearrange the custom blocks in the forever loop in the “when i receive player” script to movement, issac N.,come up

now it starts to work
AwesomePizzaDude
Scratcher
16 posts

Game is broken for no reason?

thanks so much! c:

Powered by DjangoBB

Standard | Mobile