When game starts, but not when scene changes

A feature I’d like to see in Hopscotch is:

A new rule that is like when game starts, but it doesn’t run every time the scene changes.

I’d use it for this type of project:

Every project

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

Creating clones when game starts but not when the scene changes

17 Likes

it’ll be convenient, but for information you can set a variable and add a conditional

but it would be cool to have this

5 Likes

So like a “When Game Starts” and “When Scene is Changed” / “When Scene is Switched to (scene)”

5 Likes

yes but this would be much clearer/easier to read in my opinion

6 Likes

yep ik i just want to say how to reproduce this atm

3 Likes

can someone tell me how to do this?

1 Like
Set (Timer) to -1

When game is playing
increase Timer by 1
wait 0

When timer = 0
’Code goes here

1 Like

thank you!

1 Like
When Game Starts
  Check Once if Clone Index = 0 and (Self) RunOnce = 0
  Set RunOnce to 1
  // your usual code here
  End
End

bobinny, that code will not work if it’s in an object that is on the bottom of the bird eye’s view

1 Like

oh i see tysm!

2 Likes

@Yuanyuan & @t1_hopscotch, edit history

yes, this is on topic

1 Like

Very good idea!

edit history 2

2 Likes

Will definitely consider this!

5 Likes

:D thank you!

3 Likes