- Jan 3, 2021
- 9
- 2
I'm working on a dating game (with extremely limited Twine knowledge ) where I want videos and images to appear depending on the girl currently on a date. Variables are set with $date.name and $date.lastname.
I want to use folder paths like the following
girls/FirstnameLastName/video1.mp4
However I can only display media from the first folder using
[img["girls/"+$date.name + "dinner.jpg"]]
<video src="girls/dance.mp4" width="800" autoplay loop muted></video>
and have unsure how to write code to move past the first folder. I have tried using the paths girls/Firstname and girls/Firstname LastName using incorrect code and can't find any info on how to do this.
Bad code used:
[img["girls/"+$date.name/+$date.name + "facial.jpg"]]
<video src="fake/"+$date.name/+$date.name + "facial.mp4" width="800" autoplay loop muted></video>
Any help would be greatly appreciated.
I want to use folder paths like the following
girls/FirstnameLastName/video1.mp4
However I can only display media from the first folder using
[img["girls/"+$date.name + "dinner.jpg"]]
<video src="girls/dance.mp4" width="800" autoplay loop muted></video>
and have unsure how to write code to move past the first folder. I have tried using the paths girls/Firstname and girls/Firstname LastName using incorrect code and can't find any info on how to do this.
Bad code used:
[img["girls/"+$date.name/+$date.name + "facial.jpg"]]
<video src="fake/"+$date.name/+$date.name + "facial.mp4" width="800" autoplay loop muted></video>
Any help would be greatly appreciated.