Discuss Scratch

lizardz25
Scratcher
30 posts

Game platformer script

https://scratch.mit.edu/projects/238828534/
I cannot get the collision physics to work correctly. The sprite1 sprite continuously bobs up and down and I do not know why. Please help.

Hello, Stone   ge! Who takes the Pandorica takes the           bad news, everyone, because g
about, it's r      distracting. Could you all just stay still a       because I. AM. TALKING! The quest
Answer: I do.  xt question, who's co ing to take it from me   Come on! Look at me – No plan, no
else: I don't have anything to lose! So,      e sitting up there in your silly little spaceshi
the Pandorica tonig t, just remembe          g in your way! Remember every b
thing – Let somebody else try fi
Who else misses Matt Smi ?

Amy! Rory! Get in the TARDIS! The kumquats are back!
DerpyHead0
Scratcher
1000+ posts

Game platformer script

ok i don't feel like looking through everything to find the exact issue, honestly these scripts are longer than they should be.
look at this project.

anyways, i assume the reason you bob is this:

1) not touching ground, move down.
2) touching ground, move out of ground.
3) not touching ground, move down.
4) touching ground, move out of ground.
….
basically, it keeps moving it up and down, that's why you get the bobbing.

Last edited by DerpyHead0 (Aug. 14, 2018 20:50:47)


when I start as a clone
delete this clone
lizardz25
Scratcher
30 posts

Game platformer script

DerpyHead0 wrote:

ok i don't feel like looking through everything to find the exact issue, honestly these scripts are longer than they should be.
look at this project.

anyways, i assume the reason you bob is this:

1) not touching ground, move down.
2) touching ground, move out of ground.
3) not touching ground, move down.
4) touching ground, move out of ground.
….
basically, it keeps moving it up and down, that's why you get the bobbing.
Sorry about the long script - I programmed in a lot of other things that don't matter for the collision and inputs. I know what it's doing, but everything I try is not working. I just want to know a way to fix it.

Hello, Stone   ge! Who takes the Pandorica takes the           bad news, everyone, because g
about, it's r      distracting. Could you all just stay still a       because I. AM. TALKING! The quest
Answer: I do.  xt question, who's co ing to take it from me   Come on! Look at me – No plan, no
else: I don't have anything to lose! So,      e sitting up there in your silly little spaceshi
the Pandorica tonig t, just remembe          g in your way! Remember every b
thing – Let somebody else try fi
Who else misses Matt Smi ?

Amy! Rory! Get in the TARDIS! The kumquats are back!
DerpyHead0
Scratcher
1000+ posts

Game platformer script

lizardz25 wrote:

Sorry about the long script - I programmed in a lot of other things that don't matter for the collision and inputs. I know what it's doing, but everything I try is not working. I just want to know a way to fix it.
the script has too many random bits in it that patching it is actually harder than restarting.

when I start as a clone
delete this clone

Powered by DjangoBB