HOW TO PUT SUBTITLES IN A GAME??
Probably you already know how to do but this is a guide anyway so OK.
Step 1:
subtitles block:
add a big (dark is better) block where we will add behaviors
Step 2:
alpha logic:
add 2 inputs (mailboxes in the example) and a label. Inputs send 2 (inputs): if the input is "show sbtitles the block alpha and the òabel alpha will be setted on 100%, if the input is "hide subtitles the alpha will be 0. (note: better to set alpha on 0 once).
Step 3:
text in the list
add a “text list” object and write in it the subtitles in order, or use a “list modify” block to add em during the game.
Step 4:
use the text list
add the input "next subtitle (another mailbox block in the example) to add 1 to a number, trought another (value 1) number block and then connect it with the “one” list input.
Step 5:
send the text list
connect the “one” list output with the “text” label input
done.
Hope this was useful. If ya have any question, ask me.
Also, this is the example game i made and you can copy and paste code from there.
Or copy the direct code (where i added the list modify block and other outputs):
{"data":{"behavior":{"v":"2","nodes":[{"inputCount":4,"outputCount":2,"name":"subtitles example","behaviorType":"logic.NodeGroup","x":-90,"y":-320,"group":"","id":"cba00595e4ed3c4e","isMenuItem":true,"originBundleId":null,"ownBundleId":null,"originPk":null,"v":2,"version":2},{"inputCount":7,"outputCount":5,"name":"Text List","behaviorType":"logic.data.TextList","x":450,"y":96,"group":"cba00595e4ed3c4e","id":"cb8faf70a8ef834f","startVal":["subtitle 1","subtitle 2","subtitle 3","subtitle 4","subtitle 5"],"copy":false},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-180,"y":-160,"group":"cba00595e4ed3c4e","id":"cb8fc05c85f2b649","startVal":0,"roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":-180,"y":-48,"group":"cba00595e4ed3c4e","id":"cb90afd5a596304d","startVal":100,"tag":"","roundMode":1},{"inputCount":4,"outputCount":4,"name":"Label","behaviorType":"logic.hud.Label2","x":630,"y":-112,"group":"cba00595e4ed3c4e","id":"cb91f6fe4b75fe4f","text":"Label","textColor":6264506,"fontName":"oduda","scale":10,"textAlign":"left","maxWidth":0,"xO":61,"yO":300,"pin":false,"alpha":100,"kerning":0,"outlineColor":0,"outlineSize":0,"weight":0,"outlineBlur":0,"lineHeight":1,"ext":false},{"inputCount":1,"outputCount":1,"name":"Alpha","behaviorType":"logic.properties.Alpha","x":0,"y":-256,"group":"cba00595e4ed3c4e","id":"cb922adcd3aa6e46"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":0,"y":112,"group":"cba00595e4ed3c4e","id":"cb93ac37e7cf474e","startVal":1,"tag":"","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":180,"y":112,"group":"cba00595e4ed3c4e","id":"cb93dce08f5ef340","startVal":0,"tag":"","roundMode":1},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-360,"y":-160,"group":"cba00595e4ed3c4e","id":"cba06b1bceea3c41","portId":"cba00595e4ed3c4ei0","tag":"show","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-360,"y":-32,"group":"cba00595e4ed3c4e","id":"cba07219fe58244d","portId":"cba00595e4ed3c4ei1","tag":"hide","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":-180,"y":128,"group":"cba00595e4ed3c4e","id":"cba0b454b041d34b","portId":"cba00595e4ed3c4ei2","tag":"next","dataType":2},{"inputCount":3,"outputCount":1,"name":"Text List Modify","behaviorType":"logic.data.ListModify","x":270,"y":256,"group":"cba00595e4ed3c4e","id":"cba0e10c5bdae043","mode":1,"copy":false},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":0,"y":240,"group":"cba00595e4ed3c4e","id":"cba10c148e8ad342","portId":"cba00595e4ed3c4ei3","tag":"new","dataType":2},{"inputCount":0,"outputCount":1,"name":"Once","behaviorType":"logic.triggers.Once","x":180,"y":48,"group":"cba00595e4ed3c4e","id":"cba139b7ea388e47","resetOnLevelStart":false},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":360,"y":-224,"group":"cba00595e4ed3c4e","id":"cba19c856f0ed84b","portId":"cba00595e4ed3c4eo0","tag":"actual","dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":360,"y":-96,"group":"cba00595e4ed3c4e","id":"cba1a3f03a288c41","portId":"cba00595e4ed3c4eo1","tag":"alpha","dataType":2}],"links":[{"input_id":"cba0e10c5bdae043i0","output_id":"cb8faf70a8ef834fo0"},{"input_id":"cb91f6fe4b75fe4fi0","output_id":"cb8faf70a8ef834fo1"},{"input_id":"cb922adcd3aa6e46i0","output_id":"cb8fc05c85f2b649o0"},{"input_id":"cb91f6fe4b75fe4fi1","output_id":"cb8fc05c85f2b649o0"},{"input_id":"cba1a3f03a288c41i0","output_id":"cb8fc05c85f2b649o0"},{"input_id":"cb91f6fe4b75fe4fi1","output_id":"cb90afd5a596304do0"},{"input_id":"cba1a3f03a288c41i0","output_id":"cb90afd5a596304do0"},{"input_id":"cb93dce08f5ef340i2","output_id":"cb93ac37e7cf474eo0"},{"input_id":"cba19c856f0ed84bi0","output_id":"cb93dce08f5ef340o0"},{"input_id":"cb8faf70a8ef834fi3","output_id":"cb93dce08f5ef340o0"},{"input_id":"cb90afd5a596304di1","output_id":"cba06b1bceea3c41o0"},{"input_id":"cb8fc05c85f2b649i1","output_id":"cba07219fe58244do0"},{"input_id":"cb93ac37e7cf474ei1","output_id":"cba0b454b041d34bo0"},{"input_id":"cb8faf70a8ef834fi0","output_id":"cba0e10c5bdae043o0"},{"input_id":"cba0e10c5bdae043i2","output_id":"cba10c148e8ad342o0"},{"input_id":"cb8faf70a8ef834fi2","output_id":"cba139b7ea388e47o0"}],"frames":[]}}}```





