Discuss Scratch

igorbog12
Scratcher
19 posts

"Jump" block.

For new scratchers, there can be a “jump block”
Basically you can control the speed, how high and more
Here is the block:
jump speed: (0) y: (0)

This would be quite useful.
Example:
when [ space] key pressed
jump speed: (0) y: (0)

If there is a ceiling, then you can easily use this
when [ space] key pressed
jump speed: (5) y: (5)

when green flag clicked
forever
if <touching [ ceiling] ?> then
jump speed: (-5) y: (-5)

That script would make the player fall to the ground.
You can use this script to make a sprite fall off a block.
jump speed: (-5) y: (-5)

It will stop once you have fell to the ground unless there is a
forever
around it. There can be a repeat too.
You cannot wall jump, you can only jump with the block (or fly if you put repeat or forever)
The block can be located in “Motion”
You also won't be able to jump in the air with this block (flying)

Last edited by igorbog12 (April 17, 2017 10:59:07)

Forum_Helper1
New Scratcher
500+ posts

"Jump" block.

Too many variables involved:
Speed and height you have.
Can the player wall jump?
What about if the player jumps right under a block?
What if the player jumps off of a block.
When does it stop?

Please clarify more.
-FH1
igorbog12
Scratcher
19 posts

"Jump" block.

Forum_Helper1 wrote:

Too many variables involved:
Speed and height you have.
Can the player wall jump?
What about if the player jumps right under a block?
What if the player jumps off of a block.
When does it stop?

Please clarify more.
-FH1
Done
Forum_Helper1
New Scratcher
500+ posts

"Jump" block.

igorbog12 wrote:

For new scratchers, there can be a “jump block”
Basically you can control the speed, how high and more
Here is the block:
jump speed: (0) y: (0)

This would be quite useful.
Example:
when [ space] key pressed
jump speed: (0) y: (0)

If there is a ceiling, then you can easily use this
when [ space] key pressed
jump speed: (5) y: (5)

when green flag clicked
forever
if <touching [ ceiling] ?> then
jump speed: (-5) y: (-5)
Well, a negative speed would be going backwards in time. Wouldn't a negative y value just make it jump as if gravity were inverted?
Also, the only time it will jump is when it is touching the ceiling, never another time, unless you have another script.

That script would make the player fall to the ground.
You can use this script to make a sprite fall off a block.
jump speed: (-5) y: (-5)

It will stop once you have fell to the ground unless there is a
forever
around it. There can be a repeat too.
You cannot wall jump, you can only jump with the block (or fly if you put repeat or forever)
The block can be located in “Motion”

How is this true?
My comments are in bold

Last edited by Forum_Helper1 (April 17, 2017 10:48:50)

igorbog12
Scratcher
19 posts

"Jump" block.

Forum_Helper1 wrote:

igorbog12 wrote:

For new scratchers, there can be a “jump block”
Basically you can control the speed, how high and more
Here is the block:
jump speed: (0) y: (0)

This would be quite useful.
Example:
when [ space] key pressed
jump speed: (0) y: (0)

If there is a ceiling, then you can easily use this
when [ space] key pressed
jump speed: (5) y: (5)

when green flag clicked
forever
if <touching [ ceiling] ?> then
jump speed: (-5) y: (-5)
Well, a negative speed would be going backwards in time. Wouldn't a negative y value just make it jump as if gravity were inverted?
Also, the only time it will jump is when it is touching the ceiling, never another time, unless you have another script.

That script would make the player fall to the ground.
You can use this script to make a sprite fall off a block.
jump speed: (-5) y: (-5)

It will stop once you have fell to the ground unless there is a
forever
around it. There can be a repeat too.
You cannot wall jump, you can only jump with the block (or fly if you put repeat or forever)
The block can be located in “Motion”

How is this true?
My comments are in bold
Negative Y will bring the sprite down, like a Fall block.
Forum_Helper1
New Scratcher
500+ posts

"Jump" block.

igorbog12 wrote:

Forum_Helper1 wrote:

igorbog12 wrote:

For new scratchers, there can be a “jump block”
Basically you can control the speed, how high and more
Here is the block:
jump speed: (0) y: (0)

This would be quite useful.
Example:
when [ space] key pressed
jump speed: (0) y: (0)

If there is a ceiling, then you can easily use this
when [ space] key pressed
jump speed: (5) y: (5)

when green flag clicked
forever
if <touching [ ceiling] ?> then
jump speed: (-5) y: (-5)
Well, a negative speed would be going backwards in time. Wouldn't a negative y value just make it jump as if gravity were inverted?
Also, the only time it will jump is when it is touching the ceiling, never another time, unless you have another script.

That script would make the player fall to the ground.
You can use this script to make a sprite fall off a block.
jump speed: (-5) y: (-5)

It will stop once you have fell to the ground unless there is a
forever
around it. There can be a repeat too.
You cannot wall jump, you can only jump with the block (or fly if you put repeat or forever)
The block can be located in “Motion”

How is this true?
My comments are in bold
Negative Y will bring the sprite down, like a Fall block.
Actually, no it won't.
If you think about it, a positive value will make it go up, and then down.
Logically, a negative value will do the opposite. It brings it down and then up.
Sigton
Scratcher
1000+ posts

"Jump" block.

Learning to make a basic platforming engine isn't hard, and if you don't want to there are plenty of people who have made ones available for use.

Using this “jump” block would end up confusing people, because they aren't able to see and understand how it works and what is happening. There are plenty of examples and tutorials teaching you how to make platforming engines available, and it would be much more educational and worth your while to use those

Sigton
igorbog12
Scratcher
19 posts

"Jump" block.

what am I supposed to do then
:(
igorbog12 has failed to make a custom block. Detecting problem…
Error 0x000f1
igorbog12
Scratcher
19 posts

"Jump" block.

How would it be confusing if you just choose the speed and height?
It would be easier because sometimes people can fly (jump in the air all the time)
Sigton
Scratcher
1000+ posts

"Jump" block.

igorbog12 wrote:

How would it be confusing if you just choose the speed and height?
It would be easier because sometimes people can fly (jump in the air all the time)
Because it doesn't show you how it works. You don't understand what makes it jump.

Sigton
igorbog12
Scratcher
19 posts

"Jump" block.

Sigton wrote:

igorbog12 wrote:

How would it be confusing if you just choose the speed and height?
It would be easier because sometimes people can fly (jump in the air all the time)
Because it doesn't show you how it works. You don't understand what makes it jump.

Sigton
It makes the sprite jump?
The one you put the block in.

Last edited by igorbog12 (April 17, 2017 11:31:04)

Sigton
Scratcher
1000+ posts

"Jump" block.

igorbog12 wrote:

Sigton wrote:

igorbog12 wrote:

How would it be confusing if you just choose the speed and height?
It would be easier because sometimes people can fly (jump in the air all the time)
Because it doesn't show you how it works. You don't understand what makes it jump.

Sigton
It makes the sprite jump?
The one you put the block in.
But it doesn't show you the true code behind it. Doing it yourself means you fully understand how and why it works. You don't get these things when you have a block to do it for you.

Sigton
Pezd
Scratcher
100+ posts

"Jump" block.

Sigton wrote:

igorbog12 wrote:

Sigton wrote:

igorbog12 wrote:

How would it be confusing if you just choose the speed and height?
It would be easier because sometimes people can fly (jump in the air all the time)
Because it doesn't show you how it works. You don't understand what makes it jump.

Sigton
It makes the sprite jump?
The one you put the block in.
But it doesn't show you the true code behind it. Doing it yourself means you fully understand how and why it works. You don't get these things when you have a block to do it for you.

Sigton

Scratch is about learning basic code. You can learn through experimenting. If scratch has blocks like these, then starting people who do scratch won't be able to improve much because they aren't experimenting themselves.
jromagnoli
Scratcher
1000+ posts

"Jump" block.

igorbog12 wrote:

what am I supposed to do then
:(
igorbog12 has failed to make a custom block. Detecting problem…
Error 0x000f1
https://scratch-mit-edu.ezproxyberklee.flo.org/projects/153477455/ super simple version. Thank me later.
lolad
Scratcher
54 posts

"Jump" block.

I like the block, but think it should be a blue, motion block. Not a red list block
jump speed: (0) y:(0)::motion
braxbroscratcher
Scratcher
1000+ posts

"Jump" block.

lolad wrote:

I like the block, but think it should be a blue, motion block. Not a red list block
jump speed: (0) y:(0)::motion
List blocks are more of a orange-brown than a red. Red's for undefined blocks (ones that don't exist in Scratch).

awesome5185
Scratcher
1000+ posts

"Jump" block.

No support, I feel like this is just a custom block.
lolad
Scratcher
54 posts

"Jump" block.

braxbroscratcher wrote:

lolad wrote:

I like the block, but think it should be a blue, motion block. Not a red list block
jump speed: (0) y:(0)::motion
List blocks are more of a orange-brown than a red. Red's for undefined blocks (ones that don't exist in Scratch).

Ok
Penguin9090_new
Scratcher
500+ posts

"Jump" block.

No support.
Learning a platforming engine isn't that hard, and this block doesn't do anything that is easily workaroundable.
Aya203146
New Scratcher
1 post

"Jump" block.

i can't make it move

Last edited by Aya203146 (June 9, 2017 03:08:42)

Powered by DjangoBB