Discuss Scratch

viiman25
New Scratcher
6 posts

non functioning speed boost

so i'm remixing a game and i'm adding some stuff to it (like jump pads and speed boosters) but the speed booster only works to the left! If you could help with this problem I would really appreciate it. If i have to delete previous code then do tell me what code and why
details on the game itself
its going to be a platforming game about touching a green circle and conserving momentum from death
ProgrammerDE
Scratcher
100+ posts

non functioning speed boost

Could you post a link to your project?

My prediction would be that you only apply the force to the left disregarding the players' orientation.
viiman25
New Scratcher
6 posts

non functioning speed boost

https://scratch.mit.edu/projects/803328748/
if this link doesnt work then tell me
viiman25
New Scratcher
6 posts

non functioning speed boost

wait why is it working when i open this link but not while editing
ProgrammerDE
Scratcher
100+ posts

non functioning speed boost

I can only open the link if you share the project (or when using your account)
viiman25
New Scratcher
6 posts

non functioning speed boost

i think i've shared it now, and just so you know, the booster block is red
ProgrammerDE
Scratcher
100+ posts

non functioning speed boost

You made the booster block the same color as the lava so you just die and respawn.

Also, in the
if <<touching color [#ff1100] ?> and <key [right arrow v] pressed?>> then

end
you repeat until not touching red which will stop the execution meaning no physics (-> moving) is done so the player is stuck.

Last edited by ProgrammerDE (Feb. 15, 2023 13:47:28)

viiman25
New Scratcher
6 posts

non functioning speed boost

but they aren't the same color?
boost is red and lava is orange.
ProgrammerDE
Scratcher
100+ posts

non functioning speed boost

Not on “back1”, which gets used when I start the game. After doing the above it worked for me.


Edit: I would recommend using completely different colors for the two because it might be difficult to differentiate.

Last edited by ProgrammerDE (Feb. 15, 2023 21:21:26)

viiman25
New Scratcher
6 posts

non functioning speed boost

im giving up on this for now, ill probably try to return to it after a while but not now.

Powered by DjangoBB