0 votes
asked by (220 points)

So, I'm trying use the <<scrolldown>> macro posted by TheMadExile here: http://twinery.org/questions/11469/timed-macro-autoscroll-twine-2-sugarcube  in the :typedcomplete event for the Typed.js integration module.

I basically want the page to scroll down only when :typedcomplete fires.

This doesn't work, but I essentially want to be able to do something like this:

$(document).on(':typedcomplete', function () {

So is this possible or am I going to have to find another way to do this?

1 Answer

0 votes
answered by (60.4k points)
selected by
Best answer

You can run macros (and any other TwineScript) with the jQuery wiki() methods. In your case, all you need to do is: 



commented by (220 points)
Works like a charm! Thank you so much!
Welcome to Twine Q&A, where you can ask questions and receive answers from other members of the community.

You can also find hints and information on Twine on the official wiki and the old forums archive.

See a spam question? Flag it instead of downvoting. A question flagged enough times will automatically be hidden while moderators review it.