Page 2 of 2

Re: DIALOGUE 2.0

PostPosted: Tue Sep 02, 2008 8:11 pm
by pyrometal
Do you think you'd be able to use it if I posted a stripped down version?

Re: DIALOGUE 2.0

PostPosted: Tue Sep 02, 2008 10:43 pm
by DarkParadox
yes!!!!!

Re: DIALOGUE 2.0

PostPosted: Wed Sep 03, 2008 1:09 am
by pyrometal
I'll try to post it soon, maybe on the weekend... My university classes started this week, so I'm slightly busy at the moment...

Re: DIALOGUE 2.0

PostPosted: Sun Sep 14, 2008 8:12 pm
by pyrometal
I posted the graphically stripped version of the code in the first post of this topic. I shall create documentation for using it later. To start the conversation, click on the GE icon! This is to give you a slight idea of HOW to use the code to create dialogues and etc. I've added "answer selection" but it needs some other scripts to use its outputs. The GE icon's code shows one of many methods to do so. Good luck!

--pyro

Re: DIALOGUE 2.0

PostPosted: Sun Sep 14, 2008 9:50 pm
by DarkParadox
YAY!!!!!!!!!!!!!!!!!!!! x9999999999999 cuz i dont want to spam :D :D :D :D :D :D :D :D x99999999999

[Edit] you forgot the DATA FOLDER :( :( :(

Re: DIALOGUE 2.0

PostPosted: Sun Sep 14, 2008 10:52 pm
by pyrometal
Fixed it! Sorry about that...

Re: DIALOGUE 2.0

PostPosted: Wed Sep 17, 2008 12:46 am
by desertgamer
Cool you released the source code...
BUT HOW DOES IT WORK ???
(Lol...) :lol: :oops: :twisted: :lol:

Re: DIALOGUE 2.0

PostPosted: Wed Sep 17, 2008 12:58 am
by pyrometal
Dark Paradox posted in my place the way it works in a seperate post, in General I think... Give it a good read

Re: DIALOGUE 2.0

PostPosted: Tue Oct 07, 2008 4:31 am
by DilloDude
pyrometal wrote:Its not complicated, its just very long to do because you have 95 pixel arrays for every character(letters and number etc) and you have to do every pixel one by one.

You could possibly store the font data in an external file, and load it into an array when you run the game. Then you just have to look up the correct character from the array.
Either you'd have to use an image format that you can make with another program, or make your own editor that saves as a custom format.

By the way, it would be awesome if you could add functionality to change the text size, maybe just have three sizes (normal, small and large). Of course, this would make figuring out where to draw the next line more complicated...

Re: DIALOGUE 2.0

PostPosted: Tue Oct 07, 2008 11:56 am
by pyrometal
Font resizing is for vectorized fonts... It wouldn't work well here. But I can make it so you load the font from an external file fairly easily. Would you want me to?

Re: DIALOGUE 2.0

PostPosted: Wed Oct 08, 2008 4:31 am
by DilloDude
Loading from an external file would be pretty convenient if you want to make your own fonts. If you wanted to do resizing, you'd have to individually make the extra fonts. (If you were going to do that, you could make all sorts of exra stuff... make different characters speak different fonts, have different fonts for sound effects, all sorts of things... wow, headache...)

Re: DIALOGUE 2.0

PostPosted: Wed Oct 08, 2008 10:25 am
by pyrometal
I'll start by exploring the importaion of fonts from external source, then we'll see about the "mix and match" process. I'll do this tonight, about 12 hours from now. I might finish today depending on how many problems I run into while doing this... I'll probably limit the colors used to 3, otherwise this become inefficient very quickly, this algorithm was was to be fast with only 3 things to track (black, white, and transparent pixels). Any more possibilities allow would require a color check every single draw... I may allow A few shades of gray for handmade anti-aliasing...

Re: DIALOGUE 2.0

PostPosted: Thu Oct 09, 2008 1:24 am
by pyrometal
SUCCESS! But before I post the image font importation code, I need to create a tutorial on how to create fonts for this engine... Otherwise people will screw up the required formatting of the image. I shall post a complete demo some time later... This was TERRIBLY hard to do... I kept running in bugs every 2 minutes, I literally fixed 20 things which took me about 5 hours of work. I also had to change the picture font from an horizontal string to a vertical type, which is more awkward to work with... You shall see all this soon enough!

--pyro