Discuss Scratch

theoriginalone
New to Scratch
2 posts

"Forever if" blocks not working

I have a program using “forever if” blocks to jump, move, and swing. When I jump and swing at the same time, the sprite hangs instead of falling like it's supposed to. It doesn't affect gameplay too badly, but I intend to add hazards and the glitch also works with moving and swinging. This could create problems when trying to avoid a hazard and being unable to stop. Can somebody help me out a little? What's going on?
ErnieParke
Scratcher
1000+ posts

"Forever if" blocks not working

Well, this sounds like a simple fix, which should be good news for you, but I can't tell 100% till I see your scripts. Could you please show them or even upload your project? Either option is as good as the other.

With regards,

ErnieParke

5632622roblox
Scratcher
100+ posts

"Forever if" blocks not working

Pikachu look like Pikachu are having a problem. Pikachu should try being on 1.4.

My browser / operating system: Cheese 10 (sometimes Cheesuntu), Googleese Chreese 62.0.3202.94 (Co-Jack Flavor) (64 bite-sized cubes), Flash 27.0 (recheese 0)
i like making frankenstein css (using stylish to paste css from one website to another) and results are either good or bad FLASHLIGHT IS FEMALE!!!!!
bloxxer
Scratcher
100+ posts

"Forever if" blocks not working

forever if doesnt exist in 2.0 i think only in 1.4

just use
forever
{
if
{
}
}


Hello if you can read this is a stupid mistake.
TheUltimateCoder3279
Scratcher
18 posts

"Forever if" blocks not working

There isn't a forever if block but there is this (same thing):
forever
if <[awesome?] = [yes]> then
say [you are awesome!] for (2) secs
end
end

You're going to want to check these out:

Who Wants To Be A Millionaire?!
Blocker Platformer Sneak Peek

Thanks!
JRR078
Scratcher
56 posts

"Forever if" blocks not working

That seems like the code is interfering with each other in some way, I don't have any suggestions, but that's what it seems like.
Also, do you mean:
forever
if (...) then
...
end
end
or:
forever if (...) 
...
end

when green flag clicked
forever
see [how many times I change my signature v]
end
“Video games are meant to be just one thing: fun. Fun for everyone.” - Satoru Iwata
One day, I will learn the art of correctly using the “quote” section consistently
Harakou
Scratch Team
1000+ posts

"Forever if" blocks not working

TheUltimateCoder3279 wrote:

There isn't a forever if block but there is this (same thing):
forever
if <[awesome?] = [yes]> then
say [you are awesome!] for (2) secs
end
end
There used to be, though. This thread is 3 years old, so I don't think it's relevant any more.

My signature has gone into hiding.

Powered by DjangoBB

Standard | Mobile