Quantcast
Channel: Help! with 2.0 - Twine Forum
Browsing all 1844 articles
Browse latest View live
↧

Timed sound effects on mobile?

So basically when I use something like <<timed 2s>><<audio "bgm_song1" loop play>><</timed>>\, it works fine on my laptop browser but when I run the html on my...

View Article


Line formatting question (SUGARCUBE 1.x)

Hello everyone. I'm working on a single player jrpg-ish turn-based combat system. I'm not particularly sure how to summarize the problem I'm having so I'll just try to be as detailed as possible: Below...

View Article


Ctrl + Z?

Stupid question and I'm hoping that I've just missed it, but is there an undo shortcut for when you've made a mistake entering text into a passage? I've accidentally deleted work but ctrl+z doesn't...

View Article

[Harlowe] Sound effect to play on click

Hi all. Sorry for another question for something that is surely basic. I've tried following other guidelines on this forum and JavaScript/CSS/HTML tutorials, but can't quite get what I want to achieve....

View Article

dynamically change button text [Twine 2, SC 2]

Hey everybody, I'm in need of a button (which triggers an audio play macro), which can be pushed only twice. My go was: <<set $counter to 1>> <<set $btntxt to $counter+1 + " more...

View Article


Need help from JavaScript pros! [Twine 2 / SC]

Hey everybody, lacking deeper knowledge of JavaScript I am facing a major problem here: For an educational game I want to include passages, in which the users have to drag and drop words into the right...

View Article

How to make a time system?

Hi everyone, I'm having a lot of problems trying to make a time system for my game. I want a sturdy time system because I want to make a business managment simulator kind of game, so I have to keep...

View Article

[Sugarcube 2] Twine 2: Adding sidebar elements after certain passages

I'm presently trying to add menus and stat displays to the sidebar- I'm using StoryMenu and StoryCaption, and both work fine until I try to add an if statement. I'd like to prevent these from...

View Article


Whitespace appearing after a macro (Harlowe)

Hey! I’m working on a character creation system in Twine 2.0 and have run into a problem with whitespace. At the moment the *buttons* work the way I want them to, however the code seems to be very...

View Article


[SugarCube 2] Creating choices within the same passage?

So I have a long passage. I wish to include multiple choices that lead to different blocks of text displayed within the same passage. To do this, say I have 2 buttons representing 2 different options....

View Article

Time limit on choices in game (telltale-style?) [SugarCube 2]

I have multiple buttons corresponding to multiple choices the player can make. How do I add a time limit after which one of these choices is automatically selected? Also preferably display the timer if...

View Article

Twine 2.0 Localization?

Hey there, I've already searched through the forum/google but I still wonder whether twine 2.0 provides an easy system to localize the story into different languages? Something like an ID system which...

View Article

Image may be NSFW.
Clik here to view.

how do i locate a text and pics in harlow

i want : my text, pic, video , to be at a specific place, like Y:??? X:??? cause actualy picture only go at the total left and i need 1 at the left 3 at the right and text in the middle (yeah that a...

View Article


Embed Harlowe in HTML page?

I have a website with its own navigation bars on the top, right, and bottom sides of the page. I am trying to make a page that is a Harlowe story, but still has the site's navigation bars. We tried...

View Article

Comparing variables to find the highest value (TWINE 2, HARLOWE)

How do I set up an if statement to check if a variable is the highest out of four separate variables. I assume I can say: (if: $variable1 > $variable2 and $variable3 and $variable4)[run script A]...

View Article


Changing layout in sugarcube 2

I am trying to setup the layout for multiple panes using multiple divs. my simple test code i cant seem to get working each box is about 1/5th lower than the previous, so they don't line up at all. I...

View Article

(pow:) macro is broken, takes wrong number of arguments

(pow:), the exponentiation macro, isn't working for me. According to the Harlowe 1.2.2 documentation, (pow:) is supposed to take exactly two values, the base and the exponent. But when I write (pow:...

View Article


Check if the contents of a variable are an object or not

I'm using Sugarcube. Simple question that I can't seem to figure out: How do I take an object <<set $foo = { bar : 0 }>> and check if it is or is not an object: <<if...

View Article

[Sugarcube] Adding content to the Sidebar

So I'm wondering how you add content to the sidebar. I'm gonna be honest, I have no idea where to even begin. Essentially, what I want is my story's UI to be located on the sidebar. A "continue" button...

View Article

[SC 2.6.2] Need help with addclass macro. (possible CSS-dumbness)

For a visual feedback system, I want to highlight <td>s in a table to show the player their development: <<set $path to [1,2,1,2,2,3,1,2,1,2]>> <table id="eval"> <tbody>...

View Article
Browsing all 1844 articles
Browse latest View live