• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

How to add subtitles to Sonic game?

W

Wafi Hussain

Guest
Hello! I am trying to figure out ways to add subtitles to my Sonic fangame since I have voice actors, who did their dialogues. So what I did is I created objects for dialogues featuring their sounds. I created two events for the dialogue object:

obj_dialogue

Destroy Event:
// I use this as a reference originally from a ring sound effect
if audio_is_playing(diagsound)
audio_stop_sound(diagsound)
audio_play_sound(diagsound,1,false)

Collision Event for obj_Sonic:
if other.action != 26
instance_destroy()

diagsound contains a sound having two characters talking. I would also need to make sure that the dialogue matches the voice.

I learned that if I draw a sprite for the subtitles that would make it easier but I am not sure how to do it. I was using the dialogue engine to see if this works but then I found it complicated. What are your suggestions? Thanks!
 

MaxLos

Member
Maybe a combination of audio_is_playing and draw_text could work?

So in the draw event you could have:
Code:
 if audio_is_playing(hey_tails) draw_text(0,0,"Hey Tails!");
 
Top