New (block?) idea

#1

A feature I’d like to see in Hopscotch is: When is touching in blue blocks

image

I’d use it for this type of project:

Here are some examples of Hopscotch code that could be improved if we had this:

When self is tapped, Check once if (Object A) is touching (Object B)
(Do Nothing)

Here is an example design I’ve made:

image

I’ve seen something similar in another programming languages, it looks like this:

I don’t think I have…

17 Likes
#2

You could do

When text is pressed
Check once if self go = 1
Jump like a crazy person
End
End

But good idea, it would make it simpler

7 Likes
#3

This might be cool…

7 Likes
#4

This would be awesome to have!
I think there’s secret blocks for it…

3 Likes
#5

There are?

2 Likes
#6

That sounds like a very nice idea!

1 Like
#7

I don’t think so. @Awesome_E is there?

2 Likes
#8

hm… I dont know but could there be a block for “When game reaches time (Lets say the 14th of june) [14 June 2019] do” and then it does something and I dont like that timestamp block thing and the JSON and stuff so it would be nice for that to be a block. But yeah the new block you want could be useful.

2 Likes
#9

But you literally just described the WaitTilTimestamp block…

1 Like
#10

Although it might look complex, it’s actually really simple! Go onto a website that displays the current unix timestamp. Add 3 zeros, and then that is the current time, in a number! If you put set a variable to that number, then do this:

Repeat Forever
Increase (Var) by 1
Wait til Unix Timestamp (Var)
End

It will find the exact time, in Unix.

Basically, it looks complicated, but once you’ve got it, it’s fairly simple. :smile:

2 Likes
#11

Great idea! If you can use booleans like that in Scratch, we should be able to do it in Hopscotch! Also, I’d suggest a “not” command for the “touching” part!

#12

There are other languages with this, and it would be a great idea. I think it wouldn’t be too hard to develop either, and you can get a concept of what this would look like with my Shortcut by changing the conditional parameter to a game rule parameter

1 Like
#13

There aren’t. You can change the parameters but it doesn’t do anything

1 Like
#14

Or by just dragging the ‘when touching’ from a when block into the check once if. :smile:

2 Likes
#15

That actually works?

1 Like
#16

Yep. You need to time it right tho.

1 Like
#17

Wow that’s awesome! Cool!

2 Likes
#18

That could be done with check if else.

4 Likes
#19

yeah, but isnt that JSON?

2 Likes
#20

Well it’s getting into the JSON files I think.

3 Likes