#hey i wanted to know if scribble can help me do the next thing:
1 messages · Page 1 of 1 (latest)
We have a setting up guide over here
Efficient multi-effects text renderer for GameMaker Studio 2.3
If you want a plug n play, you can swap out draw_text and draw_text_ext with draw_text_scribble and draw_text_scribble_ext
Other than that
The main change you'll need to make is removing string_copy and just getting the current text position and adding that to draw_text_scribble_ext
Setting a colour for one part of the text blue and the rest white, yes it's possible
Efficient multi-effects text renderer for GameMaker Studio 2.3
`"[c_blue]Bob[c_white]: Hey there everyone!"
I want to clarify that this is important
hm got an idea how i would need to do that?
Remove this line
Use story[cur_story] in place of text_draw
draw_text_scribble_ext(margin, margin, story[cur_story], 1, char)
on the next like it gives my a yellow sign saying text_draw only refrenced once
^^^^
ok
i need to do it everywhere in the code?
Right
They have different arguments
draw_text_scribble_ext(margin, margin, story[cur_story], width, char)
Efficient multi-effects text renderer for GameMaker Studio 2.3
One good thing is to double cross reference the docs over here too
wdym?
oh ok sorry for the confusion
draw_text_scribble_ext(width,choice_pos, text, -1, width);
whats wrong with this?
it prints it wrong in game
.
draw_text_ext(x, y, string, sep, w);
draw_text_scribble_ext(x, y, string, width, [charCount])
There's an argument difference
i know i tried to use whats here
i didnt puit the arguments by the normal draw_text_ext
So your x is width, your y is choice_pos, string is text, width is -1?
Where is charCount?
i saw its optinal and thought i didnt need it
From your code, it suggests that you're doing a typewriter effect
And as a disclaimer
Do not use a “string_copy() typewriter” with Scribble, an example being https://www.yoyogames.com/en/blog/coffee-break-tutorial-easy-typewriter-dialogue-gml. Instead, use the charCount argument to control how much text to draw.
charCount is your char variable
So instead of doing this
You just plug in char straight into charCount
are we talking about thwe third line?
You don't have string_copy anymore so you're fine
But you'll have to do about the same for everything that's got a typewriter effect going on
In this case, this looks like choices
this is how it looks like now
So you don't need to have charCount
with char after 1
You don't need to change all of your arguments either
so which arguments should i have i got confused
draw_text_ext(x, y, string, sep, w);
draw_text_scribble_ext(x, y, string, width, [charCount])
Compare against these two
You don't need to change x/y/string
And you only need to remove sep
Get rid of it
yes
okay its all fixed but the typewriter effect is gone
Are you still incrementing char
What is char being incremented as atm?