#hey i wanted to know if scribble can help me do the next thing:

1 messages · Page 1 of 1 (latest)

stark comet
#

Future questions can be asked in #juju___scribble

#

We have a setting up guide over here

#

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

fierce pivot
#

is it possible to do what i wanted?

#

i heard with scribble its suppose to be easier

stark comet
#

Setting a colour for one part of the text blue and the rest white, yes it's possible

#

`"[c_blue]Bob[c_white]: Hey there everyone!"

fierce pivot
#

okay

#

thanks a lot!

stark comet
fierce pivot
#

hm got an idea how i would need to do that?

stark comet
#

Remove this line

#

Use story[cur_story] in place of text_draw

#

draw_text_scribble_ext(margin, margin, story[cur_story], 1, char)

fierce pivot
#

on the next like it gives my a yellow sign saying text_draw only refrenced once

stark comet
fierce pivot
#

ok

fierce pivot
stark comet
#

Yes

#

If you want to use scribble everywhere then yes

fierce pivot
#

do i also need to change draw_set_color?

#

also i cant seem to find draw_text

fierce pivot
stark comet
#

They have different arguments

#

draw_text_scribble_ext(margin, margin, story[cur_story], width, char)

#

One good thing is to double cross reference the docs over here too

fierce pivot
#

oh ok

#

also where did you see draw_text?

stark comet
#

wdym?

fierce pivot
#

you told me to replace draw_text

#

i cant seem to find it

stark comet
#

I said "you can swap out"

#

Not said that "you have to swap out"

fierce pivot
#

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

stark comet
#

draw_text_ext(x, y, string, sep, w);
draw_text_scribble_ext(x, y, string, width, [charCount])

#

There's an argument difference

fierce pivot
#

i didnt puit the arguments by the normal draw_text_ext

stark comet
#

Where is charCount?

fierce pivot
#

i saw its optinal and thought i didnt need it

stark comet
#

From your code, it suggests that you're doing a typewriter effect

#

And as a disclaimer

fierce pivot
#

how do i use char count?

#

and also what arugments do you think i need to use then?

stark comet
#

charCount is your char variable

#

So instead of doing this

#

You just plug in char straight into charCount

fierce pivot
#

are we talking about thwe third line?

stark comet
#

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

fierce pivot
#

this is how it looks like now

stark comet
#

So you don't need to have charCount

fierce pivot
#

with char after 1

stark comet
#

You don't need to change all of your arguments either

fierce pivot
#

so which arguments should i have i got confused

stark comet
#
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

fierce pivot
#

like this?

#

draw_text_scribble_ext(margin, choice_pos + prev_height, text, width);

stark comet
#

yes

fierce pivot
#

okay i see the problem

#

i removed the sep but the problem remains

stark comet
#

You're drawing it twice

#

And char needs to be at the end

fierce pivot
#

okay its all fixed but the typewriter effect is gone

stark comet
#

Are you still incrementing char

fierce pivot
#

no

#

i just deleted the first line

stark comet
#

No

#

You need to keep that

fierce pivot
#

okay so i dont get my mistake

#

char is at the end

stark comet
#

What is char being incremented as atm?

fierce pivot
#

can you elaborate a bit?

#

im not quite sure what do you mean

#

okay i found out the solution

#

im sorry for the trouble im just new to game development

#

thanks so much for the help