Jump to content


Photo

Font creation code rewritten!


  • This topic is locked This topic is locked
54 replies to this topic

#1 Mike.Dailly

Mike.Dailly

    Evil YoYo Games Employee

  • Administrators
  • 4578 posts
  • Version:GM:Studio

Posted 22 March 2011 - 02:26 PM

Posted Image

The one on the left is the OLD font creation code, while the one on the right is the new code.


I thought I'd let everyone see the cool new font code that's in 8.1. It fixes several issues. The first being the Anti-aliasing is now correct, but the second (and probably more important) is that it now longer "clips" text. If you look at the lower font (which I've been told is a problem one), the Q and 2 on the left are cropped, while on the right they now appear correctly.

I have a feeling this will be the "must have" feature of 8.1 for many, so wanted to share it with you. We didn't know if we were going to manage to fix this in time so didn't want to get your hopes up. But it's in... and looks great!


Another cool little feature I added over the weekend was a proper "search". In the new Standard Edition you can now search ALL scripts for text. So no longer are you limited to searching just scripts for things, it'll now search scripts, objects, room creation code, instance creation code, timelines and triggers! This was another one we wanted in, but weren't sure we'd make it...

Enjoy!
  • 28

#2 Davve

Davve

    GMC Member

  • GMC Member
  • 4066 posts
  • Version:GM:Studio

Posted 22 March 2011 - 02:28 PM

Great job! Glad that the search function will not only be limited to scripts :D
  • 0

1Amdi.png Swxmo.png RDHEw.png 17Ezd.png


#3 Smarty

Smarty

    GMC Member

  • GMC Elder
  • 7479 posts
  • Version:GM:Studio

Posted 22 March 2011 - 02:34 PM

Another cool little feature I added over the weekend was a proper "search". In the new Standard Edition you can now search ALL scripts for text. So no longer are you limited to searching just scripts for things, it'll now search scripts, objects, room creation code, instance creation code, timelines and triggers! This was another one we wanted in, but weren't sure we'd make it...

Excellent.

I'm just wondering though - does that mean that the menu option Scripts > Check all scripts also automatically checks scripts across all these items, or is that one still limited to the script resources only? I'm guessing they might have used the same routine to iterate through the scripts.

Edited by Smarty, 22 March 2011 - 02:40 PM.

  • 0

#4 Mike.Dailly

Mike.Dailly

    Evil YoYo Games Employee

  • Administrators
  • 4578 posts
  • Version:GM:Studio

Posted 22 March 2011 - 02:55 PM

That one menu item now searches ALL scripts at once.
  • 0

#5 paul23

paul23

    GMC Member

  • Global Moderators
  • 4030 posts
  • Version:GM:Studio

Posted 22 March 2011 - 03:07 PM

has the font drawing also been sped up a bit? - Cause it IS quite slow (to the point I pre rendered all my text).


It might be me, but the second thing will probably be most usefull (and as I doubt structures made it) probably the best upgrade of gamemaker as a whole.. I fear it might not search in code action though?
  • 0

#6 gnysek

gnysek

    GMC Member

  • GMC Member
  • 580 posts
  • Version:GM:Studio

Posted 22 March 2011 - 03:12 PM

I wanted to write something good about that fonts.... but after I read about search feature I felt happy like Michael Phelps after he got first gold medal... little feature, but it will save many, many minutes for me, more than any other change.

It's good that you've updated fonts, since it's very easy to draw them on surface as strip, export as PNG and then import in Photoshop to create some nice-looking fonts with outlines etc., maybe now they will look even greater!
  • 0

Previously game developer at YoYoGames, Currently PHP developer in DB-Team
Programming and working with: GML/C#/PHP/JS/MySql/CSS/HTML

Follow 
@GameMakerUpdate to get info about latest versions of GM when they are released: https://twitter.com/GameMakerUpdate

(it's managed by bot, not by human, remember)


#7 paul23

paul23

    GMC Member

  • Global Moderators
  • 4030 posts
  • Version:GM:Studio

Posted 22 March 2011 - 03:16 PM

I wanted to write something good about that fonts.... but after I read about search feature I felt happy like Michael Phelps after he got first gold medal... little feature, but it will save many, many minutes for me, more than any other change.

It's good that you've updated fonts, since it's very easy to draw them on surface as strip, export as PNG and then import in Photoshop to create some nice-looking fonts with outlines etc., maybe now they will look even greater!

uhm why don't you just type them inside photoshop to begin with?
  • 0

#8 Yal

Yal

    Not Tsuka

  • Global Moderators
  • 10685 posts
  • Version:GM:Studio

Posted 22 March 2011 - 03:16 PM

Looks awesome! When one zooms in on that image, it's impossible to miss the difference. You really deserve a pat on the back for this.

Just one question: empty images for the space character. I've ran across several topics with people having problems with the space character being zero width since they used an empty subimage for the space character when creating a font this way. Oh... perhaps I misread "font creation code" and wrongly assumed it was about font_create_from_sprite()... If so, just ignore these two points.

(Of course, it's possible to add a white line of 001-alpha pixels to get a space the width you want, so this is not really an issue for creative users)



I welcome the option to search in everything as well - it's gonna be pretty nifty. If it's actually a search-replace, I promise I will paint my house green as a tribute to your marvellous work. :)

Edited by Yal, 22 March 2011 - 03:16 PM.

  • 1

- The above is my personal opinion and in no way representative of Yoyogames or the GMC, except when explicitly stated -

 

Open this spoiler for my games:

Spoiler

Some useful game engines: (all completely free to use, even commercially, as long as you replace all included graphics / music first).
SisterEngine RPG Engine - - YaruFPS 3D Collision Engine -- YaruPlatEngine Platform Engine

New user? Can't draw but want to look unique? You can request a new avatar in this thread!


#9 thatshelby

thatshelby

    GMC Member

  • GMC Member
  • 3823 posts
  • Version:GM8

Posted 22 March 2011 - 03:31 PM

Nice new font rendering? Awesome.
  • 0

#10 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • GMC Elder
  • 9603 posts
  • Version:GM:Studio

Posted 22 March 2011 - 03:38 PM

Nice :) . I never really cared much about the anti-aliasing on fonts (though it is mighty pretty :P), but the clipping on characters annoys me to no end. I'm so glad that's fixed.

And being able to search in non-script code...heaven!

Thank you for your hard work, YYG :) .

-IMP ;) :)
  • 0

:GM123: Are you an artist who likes creating original creature designs? Maybe you can help out with Elementa here! Give it a look; you might like the idea :)

:bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny:


#11 Mike.Dailly

Mike.Dailly

    Evil YoYo Games Employee

  • Administrators
  • 4578 posts
  • Version:GM:Studio

Posted 22 March 2011 - 03:51 PM

It might be me, but the second thing will probably be most usefull (and as I doubt structures made it) probably the best upgrade of gamemaker as a whole.. I fear it might not search in code action though?


code action?? As in an object events "action" code? yep... searches in there too...
  • 0

#12 Erik Leppen

Erik Leppen

    GMC Member

  • GMC Member
  • 2668 posts
  • Version:GM:Studio

Posted 22 March 2011 - 04:02 PM

Now this is great news. I was multiple times disturbed by the fact that font rendering was weird. Not just clipping, but entire columns of pixels were being removed from the left and duplicated on the right, on all symbols. I hope (and expect) this is all gone now. By the way, am I right that the new font rendering image contains hinting? The vertical lines seem to be aligned to whole pixels now.

Another cool little feature I added over the weekend was a proper "search". In the new Standard Edition you can now search ALL scripts for text. So no longer are you limited to searching just scripts for things, it'll now search scripts, objects, room creation code, instance creation code, timelines and triggers! This was another one we wanted in, but weren't sure we'd make it...

Little? This was one of my big wishes! :D ::lmao:: So great it's finally there!

Now I just hope it also searches in D&D action arguments :snitch:

Edited by Erik Leppen, 22 March 2011 - 04:04 PM.

  • 0

promo_briquidmini_500x150.png


#13 LSnK

LSnK

    NaN

  • GMC Member
  • 1188 posts

Posted 22 March 2011 - 04:04 PM

[Full search]

Posted Image
  • 0

#14 Mike.Dailly

Mike.Dailly

    Evil YoYo Games Employee

  • Administrators
  • 4578 posts
  • Version:GM:Studio

Posted 22 March 2011 - 04:13 PM

Now I just hope it also searches in D&D action arguments :snitch:


Mmm... no doesn't search here.... are they gonna be that big? Do you really need to search them? I'll have a look and see how hard it'll be. Object/event/action searching is a massive pain.. loop inside loop inside loop inside...well.. you get the idea. But I'll look and see...
  • 0

#15 Dark Matter

Dark Matter

    RPG Expert

  • GMC Member
  • 3196 posts
  • Version:GM:Studio

Posted 22 March 2011 - 04:25 PM

Another cool little feature I added over the weekend was a proper "search". In the new Standard Edition you can now search ALL scripts for text. So no longer are you limited to searching just scripts for things, it'll now search scripts, objects, room creation code, instance creation code, timelines and triggers! This was another one we wanted in, but weren't sure we'd make it...

This will be so useful. Great work!
  • 0
String Distortion (Now Staff Picked!)

The .gmx format disassembly

I'm always happy to help with a problem or question you have regarding Game Maker. Feel free to ask me anything you want!

#16 Manuel777

Manuel777

    InvaderGames

  • GMC Member
  • 3554 posts
  • Version:GM:Studio

Posted 22 March 2011 - 04:47 PM

We love you mr daily! Great job! :wub:
  • 0

#17 Smarty

Smarty

    GMC Member

  • GMC Elder
  • 7479 posts
  • Version:GM:Studio

Posted 22 March 2011 - 04:49 PM


Now I just hope it also searches in D&D action arguments :snitch:

Mmm... no doesn't search here.... are they gonna be that big? Do you really need to search them? I'll have a look and see how hard it'll be. Object/event/action searching is a massive pain.. loop inside loop inside loop inside...well.. you get the idea. But I'll look and see...

If you do, I think you'd have to insert the keyword return to have it evaluated as a script rather than an expression. Because the expressions themselves would fail the script check.
  • 0

#18 commander of games

commander of games

    Kaos Kreator

  • GMC Member
  • 2883 posts
  • Version:GM:Studio

Posted 22 March 2011 - 05:03 PM

YES! I've never really encountered the clipping problem with fonts, but the fact that there is now proper anti-aliasing is great! Is it optional in the Font Properties though? Some people might like their text to not be anti-aliased. Not sure why they would(Maybe to give it a more 'crisp' feel?), but its always good to have options. :)

As for the new full searching... Well:


[Full search]

Posted Image


  • 1

InvaderX.gif


#19 Dark Matter

Dark Matter

    RPG Expert

  • GMC Member
  • 3196 posts
  • Version:GM:Studio

Posted 22 March 2011 - 05:07 PM

Will you be able to do a search and replace for every piece of code too?
This would also be really useful.
  • 0
String Distortion (Now Staff Picked!)

The .gmx format disassembly

I'm always happy to help with a problem or question you have regarding Game Maker. Feel free to ask me anything you want!

#20 HaRRiKiRi

HaRRiKiRi

    GMC Member

  • GMC Member
  • 1364 posts

Posted 22 March 2011 - 05:08 PM

O YES! I thought I am the only one irritated with the font drawing. Not only the clips but also the overlaps and lines and so on. They were just unusable (to the point that I, ironically, today remade all my fonts for my project into sprite strips.. all for nothing now I guess).

uhm why don't you just type them inside photoshop to begin with?

Font sprite strips need to have a specified width between characters. If you just copy them into a paint program they will just line up like normal characters, but we need them mono sized. That is what I did to my fonts as well. It takes like 10 lines of code to make a font strip export program in GM. Then modify as you wish (in my case I fixed all these bugs), and then use that strip into my project.

Edited by HaRRiKiRi, 22 March 2011 - 05:09 PM.

  • 0

#21 Shadowrend

Shadowrend

    Master of Shadows

  • GMC Member
  • 3054 posts
  • Version:GM8

Posted 22 March 2011 - 05:17 PM

Nice. What also would be nice is for you to make the gmk also store the fonts currently used. Therefor, you could share gmk's without the need to give font installations also. I don't know if this exists, but it never worked for me. The only font's that worked, were the default ones.

PS: It would be like totally cool that we could get font effects also :)
PPS: Yeah, I know it's possible trough surfaces, etc, but this way it would be much simpler for everyone.

Edited by Shadowrend, 22 March 2011 - 05:19 PM.

  • 0

#22 Dark Matter

Dark Matter

    RPG Expert

  • GMC Member
  • 3196 posts
  • Version:GM:Studio

Posted 22 March 2011 - 05:29 PM

Nice. What also would be nice is for you to make the gmk also store the fonts currently used. Therefor, you could share gmk's without the need to give font installations also. I don't know if this exists, but it never worked for me. The only font's that worked, were the default ones.

PS: It would be like totally cool that we could get font effects also :)
PPS: Yeah, I know it's possible trough surfaces, etc, but this way it would be much simpler for everyone.

This would mean you could easily illegally share fonts which would normally have to be purchased.
What kind of font effects do you mean?
  • 0
String Distortion (Now Staff Picked!)

The .gmx format disassembly

I'm always happy to help with a problem or question you have regarding Game Maker. Feel free to ask me anything you want!

#23 thatshelby

thatshelby

    GMC Member

  • GMC Member
  • 3823 posts
  • Version:GM8

Posted 22 March 2011 - 05:30 PM

This would mean you could easily illegally share fonts which would normally have to be purchased.



Not exactly... the font can only be used inside the GMK, no where else. Also, what stops someone from making a font-spritesheet of this purchased font? Fonts are among the most easy things to pirate.
  • 0

#24 HaRRiKiRi

HaRRiKiRi

    GMC Member

  • GMC Member
  • 1364 posts

Posted 22 March 2011 - 05:31 PM

This would mean you could easily illegally share fonts which would normally have to be purchased.

By that logic you shouldn't be able to store sprites in the gmk either.

What kind of font effects do you mean?

Probably things like outline (which would be awesome).
  • 0

#25 Dark Matter

Dark Matter

    RPG Expert

  • GMC Member
  • 3196 posts
  • Version:GM:Studio

Posted 22 March 2011 - 05:32 PM


This would mean you could easily illegally share fonts which would normally have to be purchased.



Not exactly... the font can only be used inside the GMK, no where else. Also, what stops someone from making a font-spritesheet of this purchased font? Fonts are among the most easy things to pirate.

It'd be fairly easy to extract the font data, I'd imagine. Yes, I know fonts may be easy to steal anyway, but that's not really the point...
  • 0
String Distortion (Now Staff Picked!)

The .gmx format disassembly

I'm always happy to help with a problem or question you have regarding Game Maker. Feel free to ask me anything you want!

#26 BlueMoonProductions

BlueMoonProductions

    BlueMoonProductions

  • GMC Member
  • 241 posts
  • Version:GM:Studio

Posted 22 March 2011 - 05:32 PM

Nice. What also would be nice is for you to make the gmk also store the fonts currently used. Therefor, you could share gmk's without the need to give font installations also. I don't know if this exists, but it never worked for me. The only font's that worked, were the default ones.


http://gmc.yoyogames...dpost&p=3719371
  • 0

#27 Dark Matter

Dark Matter

    RPG Expert

  • GMC Member
  • 3196 posts
  • Version:GM:Studio

Posted 22 March 2011 - 05:34 PM


Nice. What also would be nice is for you to make the gmk also store the fonts currently used. Therefor, you could share gmk's without the need to give font installations also. I don't know if this exists, but it never worked for me. The only font's that worked, were the default ones.


http://gmc.yoyogames...dpost&p=3719371

It compiles them into the EXE, but not the GMK, so you can't share files with new fonts.
  • 0
String Distortion (Now Staff Picked!)

The .gmx format disassembly

I'm always happy to help with a problem or question you have regarding Game Maker. Feel free to ask me anything you want!

#28 YellowAfterlife

YellowAfterlife

    GMC Member

  • Global Moderators
  • 4128 posts
  • Version:GM:Studio

Posted 22 March 2011 - 05:36 PM

Right font AA? Finally. Well done!

Mmm... no doesn't search here.... are they gonna be that big? Do you really need to search them? I'll have a look and see how hard it'll be. Object/event/action searching is a massive pain.. loop inside loop inside loop inside...well.. you get the idea. But I'll look and see...

For that, it would be wise to allow searching in D&D's. And, hopefully, all D&D actions of codebox type.
After all, if you have seen some 'sources' of some Game Maker games, you might have noticed people prefer adding code directly to objects instead of making script's. Perhaps this is just a matter of clicks to be done.
Also, for some reason, events work a little bit faster than scripts (by ~5-7%). I was always wondering why does that happen.
  • 0
_.gifnDCITkv.png

#29 commander of games

commander of games

    Kaos Kreator

  • GMC Member
  • 2883 posts
  • Version:GM:Studio

Posted 22 March 2011 - 05:44 PM

What kind of font effects do you mean?


Outline, glow, etc?

The ability to have a glowing font would be a godsend. I had to go through hell to get the fonts in my current game to work without lagging(Most of them have a glow effect around them, though that is optional on the smaller text). Eventually it boiled down to screenshotting the font in a GM window and pasting it into Photoshop. Unfortunatly I'm still unable to get the characters to align properly.
  • 0

InvaderX.gif


#30 Mike.Dailly

Mike.Dailly

    Evil YoYo Games Employee

  • Administrators
  • 4578 posts
  • Version:GM:Studio

Posted 22 March 2011 - 05:46 PM

Search now works on all paramaters/arguments in D&D events. Will now even pick up arguments to scripts, or if you use a D&D function to set a variable.

No, you can't put fonts into the GMK; that's illegal. Sorry.

We do have a method of doing outlines and dropshadows we wantto use in the future, and while we're one step closer... we aren't there just yet. sorry.
  • 3

#31 LSnK

LSnK

    NaN

  • GMC Member
  • 1188 posts

Posted 22 March 2011 - 05:48 PM

Also, for some reason, events work a little bit faster than scripts (by ~5-7%). I was always wondering why does that happen.

I'm always hoping they'll add script_replace() so I can do away with that. Inline script expansion, hell yeah.
  • 0

#32 YellowAfterlife

YellowAfterlife

    GMC Member

  • Global Moderators
  • 4128 posts
  • Version:GM:Studio

Posted 22 March 2011 - 06:04 PM

No, you can't put fonts into the GMK; that's illegal. Sorry.

Maybe it could be done to show a small label saying "Font missing:\n(font name)" in a corner of font preview box. That would likely do the trick.

I'm always hoping they'll add script_replace() so I can do away with that. Inline script expansion, hell yeah.

I have once 'implemented' that via a 'special' object with huge number of creation events (ev_create). Obviously, that works slower than normal event calling, but it did a trick for project that I needed it for. You can PM me if you need a gmk of that.

Edited by YellowAfterlife, 22 March 2011 - 06:09 PM.

  • 0
_.gifnDCITkv.png

#33 Erik Leppen

Erik Leppen

    GMC Member

  • GMC Member
  • 2668 posts
  • Version:GM:Studio

Posted 22 March 2011 - 06:13 PM


Now I just hope it also searches in D&D action arguments :snitch:


Mmm... no doesn't search here.... are they gonna be that big? Do you really need to search them? I'll have a look and see how hard it'll be. Object/event/action searching is a massive pain.. loop inside loop inside loop inside...well.. you get the idea. But I'll look and see...

Yes please :P If you want to be complete you should also check D&D action arguments. This is the only way to be sure you have replaced all occasions of a variable name that has e.g. been renamed or removed. And technically those are GML. To give two examples: I quite often use the :GM060: action; and the test expression is GML for sure. Also, because I use :GM070: for scripts that do not have a return value, I often use :GM072: where value is scriptname(arguments).

Also, if you search in action arguments, one automatically searches in the single argument of the :GM071: Comment action. which is useful beause you can then let comments contain certain keywords and search for them if you can't find certain code anymore (one of my common gripes when working with larger games).

So, long story short, if it's possible, please do :unsure:

Oh you have already done this. Okay then, this is even greater!

 
By the way, has font rendering been sped up in the process? Just wondering :)
  • 0

promo_briquidmini_500x150.png


#34 LSnK

LSnK

    NaN

  • GMC Member
  • 1188 posts

Posted 22 March 2011 - 06:30 PM

I have once 'implemented' that via a 'special' object with huge number of creation events (ev_create). Obviously, that works slower than normal event calling, but it did a trick for project that I needed it for. You can PM me if you need a gmk of that.

Nah, I've done something like that as well. It's just that with script-modifying functions I could implement it in the general case, which would make for a nice "magical speed up" extension. :p


Edit:

Better 2D and 3D support with a 24bit ZBuffer and faster rendering.

@Mike: What's faster, specifically?

Edited by LSnK, 22 March 2011 - 07:03 PM.

  • 0

#35 gnysek

gnysek

    GMC Member

  • GMC Member
  • 580 posts
  • Version:GM:Studio

Posted 22 March 2011 - 07:04 PM

Back to font - you can display it in GM aligned to grid (in for loop, also it can be aligned as you want), in photoshop it's not possible because every letter have other width (... if you want to enter all letters on another layers and align them manually you can spend one hour for that of course) - that's why I'm using GM. And you can save from surface transparent PNG. It's much, much faster to make this way, so GM is helpful at this point.

Edited by gnysek, 22 March 2011 - 07:30 PM.

  • 0

Previously game developer at YoYoGames, Currently PHP developer in DB-Team
Programming and working with: GML/C#/PHP/JS/MySql/CSS/HTML

Follow 
@GameMakerUpdate to get info about latest versions of GM when they are released: https://twitter.com/GameMakerUpdate

(it's managed by bot, not by human, remember)


#36 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 22 March 2011 - 07:15 PM

Standard Edition

I hope you aren't hinting at multiple product versions. It's fine with just as Lite and Pro.

Edited by TheMagicNumber, 22 March 2011 - 08:35 PM.

  • 4

#37 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • GMC Elder
  • 9603 posts
  • Version:GM:Studio

Posted 22 March 2011 - 07:24 PM

What kind of font effects do you mean?


Outline, glow, etc?

The ability to have a glowing font would be a godsend. I had to go through hell to get the fonts in my current game to work without lagging(Most of them have a glow effect around them, though that is optional on the smaller text). Eventually it boiled down to screenshotting the font in a GM window and pasting it into Photoshop. Unfortunatly I'm still unable to get the characters to align properly.

Outlines and shadows are easy enough to do with just the drawing functions. Glow, not so much... though if there was an easy way to blur things (i.e. draw blurred text), it would be a piece of cake to make a glow... But really, glow is one of only a small handful of effects that can be applied to text that you can't easily do now.

-IMP ;) :)
  • 0

:GM123: Are you an artist who likes creating original creature designs? Maybe you can help out with Elementa here! Give it a look; you might like the idea :)

:bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny:


#38 HaRRiKiRi

HaRRiKiRi

    GMC Member

  • GMC Member
  • 1364 posts

Posted 22 March 2011 - 08:01 PM

Outlines and shadows are easy enough to do with just the drawing functions. Glow, not so much... though if there was an easy way to blur things (i.e. draw blurred text), it would be a piece of cake to make a glow... But really, glow is one of only a small handful of effects that can be applied to text that you can't easily do now.

No one says its hard. I can do glow too. The problem is speed. If we had a special drawing function for that then it wouldn't be a problem. Right now it is possible to do anything 2d in GM (which is the reason I use it for all 2d project, be it games or programs) and the only limitation is speed. With surfaces this limitation was pushed far far back, but it stills exists.
  • 0

#39 Schyler

Schyler

    Noskcirderf Derf

  • GMC Member
  • 2680 posts
  • Version:GM:Studio

Posted 22 March 2011 - 09:35 PM

Everyone is going to hate me for saying, but please don't add font effects. There are more useful things you could be working on.
  • 2

#40 Dark Matter

Dark Matter

    RPG Expert

  • GMC Member
  • 3196 posts
  • Version:GM:Studio

Posted 22 March 2011 - 09:36 PM

Just because there are multiple things that'd be good to see, doesn't mean the less important ones (in your opinion) should not be worked on at all.
Outlined text would be useful.
  • 0
String Distortion (Now Staff Picked!)

The .gmx format disassembly

I'm always happy to help with a problem or question you have regarding Game Maker. Feel free to ask me anything you want!

#41 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • GMC Elder
  • 9603 posts
  • Version:GM:Studio

Posted 22 March 2011 - 09:52 PM

I'm sorry, but of all the font effects to use, you chose the easiest-to-replicate as your example of support? Seriously, how hard is this?:

for (p=0; p<360; p+=45) {
  draw_text(xx + lengthdir_x(1,p), yy+lengthdir_y(1,p), "TEXT");
}
draw_text(xx, yy, "TEXT");

-IMP ;) :)
  • 0

:GM123: Are you an artist who likes creating original creature designs? Maybe you can help out with Elementa here! Give it a look; you might like the idea :)

:bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny:


#42 Dark Matter

Dark Matter

    RPG Expert

  • GMC Member
  • 3196 posts
  • Version:GM:Studio

Posted 22 March 2011 - 09:54 PM

Easy, but slow at the moment.
  • 0
String Distortion (Now Staff Picked!)

The .gmx format disassembly

I'm always happy to help with a problem or question you have regarding Game Maker. Feel free to ask me anything you want!

#43 Desert Dog

Desert Dog

    GMC Member

  • GMC Elder
  • 6409 posts
  • Version:Unknown

Posted 22 March 2011 - 09:58 PM

I wish there was a simple way of adding bold into text your writing, other than clunky work-arounds.
  • 1
HTML5 games for mobile:
HexDogs Bugz Burn! Captain George Golfing Block Memory

Games for Androids
*NEW* Word Dog - Published by Dangerous_Dave


Code: General Array Functions - GM-S friendly. sorting, shuffling. Includes a quicksort.
Use the quicksort to sort ds_lists 10-18 times faster than ds_list_sort()!

#44 Dark Matter

Dark Matter

    RPG Expert

  • GMC Member
  • 3196 posts
  • Version:GM:Studio

Posted 22 March 2011 - 10:01 PM

I wish there was a simple way of adding bold into text your writing, other than clunky work-arounds.

Yeah, and colour.
draw_text(32,64,"Hello there, this text is red");
EDIT: It's actually converting that to bold automatically, but I was using [b] tags.

Edited by Dark Matter, 22 March 2011 - 10:02 PM.

  • 2
String Distortion (Now Staff Picked!)

The .gmx format disassembly

I'm always happy to help with a problem or question you have regarding Game Maker. Feel free to ask me anything you want!

#45 commander of games

commander of games

    Kaos Kreator

  • GMC Member
  • 2883 posts
  • Version:GM:Studio

Posted 22 March 2011 - 10:26 PM

Everyone is going to hate me for saying, but please don't add font effects. There are more useful things you could be working on.


Just because you don't see it as usefull, doesn't mean others won't. I would find glow very usefull, others may find shadows, outlines, etc. usefull.

I'm sorry, but of all the font effects to use, you chose the easiest-to-replicate as your example of support? Seriously, how hard is this?:

for (p=0; p<360; p+=45) {
  draw_text(xx + lengthdir_x(1,p), yy+lengthdir_y(1,p), "TEXT");
}
draw_text(xx, yy, "TEXT");

-IMP ;) :)


I don't have access to GM at the moment, so I'm going to assume that makes glowing text. The problem is that its slow. Only a small amount in my game caused it to lag to the point of being unplayable, and thats before I had even added anything complex.
  • 0

InvaderX.gif


#46 Mr. RPG

Mr. RPG

    GMC's Forum Troll

  • GMC Member
  • 3174 posts
  • Version:GM:Studio

Posted 22 March 2011 - 10:38 PM

I am not understanding something. What is this font creation code Mike is talking about?

Edited by Mr. RPG, 22 March 2011 - 10:38 PM.

  • 0

#47 HaRRiKiRi

HaRRiKiRi

    GMC Member

  • GMC Member
  • 1364 posts

Posted 22 March 2011 - 10:48 PM

I'm sorry, but of all the font effects to use, you chose the easiest-to-replicate as your example of support? Seriously, how hard is this?:

NOBODY SAYS ITS HARD!!!! The problem is that your drawing the text 9 times (and 16 lengthdir's combined with a for cycle..) and that is VERY slow. If you think we want functions just because they are hard, then we have no need for newly implement dot product function, or data structures or many other functions. Many of these can be easily replicated. The advantage is speed, and that is why we want these functions natively. As a user who joined in 2004 you should be one of the first persons to understand this.

I am not understanding something. What is this font creation code Mike is talking about?

He fixed problems many people had with fonts. They were cut off or overlapping which made them unusable. That is what he is talking about.

Edited by HaRRiKiRi, 22 March 2011 - 10:49 PM.

  • 0

#48 ParodyKnaveBob

ParodyKnaveBob

    theUndiscovered

  • GMC Member
  • 1537 posts
  • Version:GM:Studio

Posted 23 March 2011 - 12:21 AM

I have a feeling this will be the "must have" feature of 8.1 for many, so wanted to share it with you. We didn't know if we were going to manage to fix this in time so didn't want to get your hopes up. But it's in... and looks great!

Very nice! I must say, I expected I'd wait to install the new 8.1 until after I'd finished with my current semi-experiment project, but yes, this one feature is must-have enough that I've changed my mind and will try it much sooner than later. $:^ ]

Another cool little feature I added over the weekend was a proper "search". In the new Standard Edition you can now search ALL scripts for text. So no longer are you limited to searching just scripts for things, it'll now search scripts, objects, room creation code, instance creation code, timelines and triggers! This was another one we wanted in, but weren't sure we'd make it...

Enjoy!

Search now works on all paramaters/arguments in D&D events. Will now even pick up arguments to scripts, or if you use a D&D function to set a variable.

Awesome. Very good feature which I'm sure many will greatly enjoy! And, the feature I asked for in the request thread?--RTF-reviewing everything at once? Well, being able to search through all the text in a single Ctrl+F run was one of the major reasons for my request anyway! Little did I know you were already working on this instead. Rock on, and thank you. $:^ ]

No, you can't put fonts into the GMK; that's illegal. Sorry.

We do have a method of doing outlines and dropshadows we wantto use in the future, and while we're one step closer... we aren't there just yet. sorry.

Thank you here, too, for confirming/explaining the issue of GMK-embedded fonts and the preview of some quickie font effects!

--

I welcome the option to search in everything as well - it's gonna be pretty nifty. If it's actually a search-replace, I promise I will paint my house green as a tribute to your marvellous work. :)

Alright, Yal, "pictures or it didn't happen!" $;^ b

--

Regards, $:^ }
  • 0
theUndiscovered ~ Brandon W. Horton ~ ParodyKnaveBob ~ $:^ J

#49 IceMetalPunk

IceMetalPunk

    InfiniteIMPerfection

  • GMC Elder
  • 9603 posts
  • Version:GM:Studio

Posted 23 March 2011 - 01:28 AM

@HaRRiKiRi: Alright, well excuse me. No need to shout. I do understand the desire for native functions to speed up common tasks. When I posted the code here, I didn't have access to GM to test it; I really didn't think drawing text 9 times was going to slow the game down in any noticeable way. Now that I'm home, I've tested it, and I realize that it does, in fact, add a significant amount of time (in a test comparing outlined text to a simple draw_text, run 10000 times each, there's a 14-second difference, which is obviously a lot). It's much more inefficient than I had expected, so I concede that.

However, text effects are still not really a priority cause, so if we ever see native support for them, I sincerely doubt it would be in a minor version upgrade. It's much more suited to a major version, like GM9 or GM10.

-IMP ;) :)
  • 0

:GM123: Are you an artist who likes creating original creature designs? Maybe you can help out with Elementa here! Give it a look; you might like the idea :)

:bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny: :excl: :bunny:


#50 Big J

Big J

    GMC Member

  • GMC Member
  • 2852 posts
  • Version:GM8.1

Posted 23 March 2011 - 02:43 AM

I don't know what's fixed, the two screen shots look identical. Good job anyway.
  • 0

Read this before contacting me with a mentor request. This text file is subject to amendments at any time, without notice.

 

Get your GM 8.1 Anti-Aliasing here!
2712265.png





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users