Hopscotchers, this is a big one: you can now use parameters in your custom rules and custom abilities! Now you can write the code once and use it all over your project with slight differences.
Open a new project and start playing with the refreshed starter rules to see parameters in action. The symmetrical mirror drawing and the two-colored gradient background are the Hopscotch team favorites so far. Lastly–open up the new rules to learn more about how they work. There are comments to explain what’s going on!
And as if that wasn’t enough: clones have gotten a total refresh! Instead of cloning an object in its original state, the clone will pick up the properties of that object at that moment. To learn more about clones, watch the brand new clone tutorial series in the video section of the app.
And lastly, for the advanced users, we’ve fixed some bugs in the execution order of code. Now you can use a set variable block right before an if statement, no problemo.
Other bug fixes:
The prompt block will work with local variables.
Comment blocks show more text.
Copying a rule or object now copies the set variable blocks too.
As always, we’d love to hear any thoughts or feedback you have. Leave us a note below or email us at email@example.com.
Awesome update. I already made use of the new parameters system.
I did notice that some rules in old projects (prior to webplayer 2.0.0) do not work anymore (namely the ones in the old version of the custom rules and custom abilities)… this seems like a project-breaking bug.