Discuss Scratch

rollercoaster-test
Scratcher
42 posts

Into Infinity Platforming Glitch

My platforming script isn't working, and I need help with fixing it. It has worked in the past, so I really don't see the problem.
Help! (The platforming script is not attached, it's in the player script. Test it that way.)

Linky

Last edited by rollercoaster-test (Oct. 18, 2015 19:11:02)

Hamish752
Scratcher
1000+ posts

Into Infinity Platforming Glitch

Arghhhh! Everyone panic, because it's not going to work in time! /jk Well, firstly, take a look at the “player” sprite. The “green flag clicked” isn't attatched to the rest of the script.
rollercoasterfan
Scratcher
1000+ posts

Into Infinity Platforming Glitch

Hamish752 wrote:

Arghhhh! Everyone panic, because it's not going to work in time! /jk Well, firstly, take a look at the “player” sprite. The “green flag clicked” isn't attatched to the rest of the script.
That's not the problem, click the forever loop of either and it won't work then.
Hamish752
Scratcher
1000+ posts

Into Infinity Platforming Glitch

rollercoasterfan wrote:

Hamish752 wrote:

Arghhhh! Everyone panic, because it's not going to work in time! /jk Well, firstly, take a look at the “player” sprite. The “green flag clicked” isn't attatched to the rest of the script.
That's not the problem, click the forever loop of either and it won't work then.
Ooooooooh. Oops
Hamish752
Scratcher
1000+ posts

Into Infinity Platforming Glitch

Something in the player script is forcing it to stay down.
rollercoasterfan
Scratcher
1000+ posts

Into Infinity Platforming Glitch

Hamish752 wrote:

Something in the player script is forcing it to stay down.
But what?
Iloverollercoasters
Scratcher
100+ posts

Into Infinity Platforming Glitch

rollercoasterfan wrote:

Hamish752 wrote:

Something in the player script is forcing it to stay down.
But what?

You forgot these blocks:
set [xv v] to [0]
set [yv v] to [0]
rollercoasterfan
Scratcher
1000+ posts

Into Infinity Platforming Glitch

A nice good bump from the bottom of the second page is always a welcoming touch.
Ataxaos
Scratcher
500+ posts

Into Infinity Platforming Glitch

rollercoasterfan wrote:

A nice good bump from the bottom of the second page is always a welcoming touch.
Off-topic, but three users with roller-coaster names in one topic? Wow.

Also, Iloverollercoaster's answer is correct; it doesn't work because you forgot to set the y and x velocity to 0 when the game starts.
If you show the variable “y-velocity” of the player, you'll see that it's -24479; this is what's holding your player down.

I see that you have yet to fix it in the link from your original post, so try this script!
Add this script to your player (I tested it; it works):
when I receive [Intro Complete! v]
go to x: (0) y: (0)
set [Yv v] to [0]
set [Xv v] to [0]
rollercoasterfan
Scratcher
1000+ posts

Into Infinity Platforming Glitch

Ataxaos wrote:

rollercoasterfan wrote:

A nice good bump from the bottom of the second page is always a welcoming touch.
Off-topic, but three users with roller-coaster names in one topic? Wow.

Also, Iloverollercoaster's answer is correct; it doesn't work because you forgot to set the y and x velocity to 0 when the game starts.
If you show the variable “y-velocity” of the player, you'll see that it's -24479; this is what's holding your player down.

I see that you have yet to fix it in the link from your original post, so try this script!
Add this script to your player (I tested it; it works):
when I receive [Intro Complete! v]
go to x: (0) y: (0)
set [Yv v] to [0]
set [Xv v] to [0]
The first account is my test account, the other, my brother.

I think I have solved the problem, so this might not be needed.
FunnyBanana
Scratcher
4 posts

Into Infinity Platforming Glitch

The script looks pretty much flawless. I got it to move left and right, but not up. I'd say rebuild the script, it could be a glitch with Scratch.
when green flag clicked
say [Hi! I'm FunnyBanana!] for (2) secs
if <(answer) = [Hi! ]> then
say [I like strawberries!] for (2) secs
play sound [Eat strawberries]

end
rainbowshy09
Scratcher
4 posts

Into Infinity Platforming Glitch

rollercoasterfan wrote:

Ataxaos wrote:

rollercoasterfan wrote:

A nice good bump from the bottom of the second page is always a welcoming touch.
Off-topic, but three users with roller-coaster names in one topic? Wow.

Also, Iloverollercoaster's answer is correct; it doesn't work because you forgot to set the y and x velocity to 0 when the game starts.
If you show the variable “y-velocity” of the player, you'll see that it's -24479; this is what's holding your player down.

I see that you have yet to fix it in the link from your original post, so try this script!
Add this script to your player (I tested it; it works):
when I receive [Intro Complete! v]
go to x: (0) y: (0)
set [Yv v] to [0]
set [Xv v] to [0]
The first account is my test account, the other, my brother.

I think I have solved the problem, so this might not be needed.
It still does not work
rollercoaster-test
Scratcher
42 posts

Into Infinity Platforming Glitch

Closing topic, unsharing project, it's fixed on my main account.

Powered by DjangoBB