Drawing Utils Extension [2.0]

LIBERADO

  • *
  • Posts: 2599
@ETHproductions, maybe decafpanda's issue has something to do with these new fixes:
   
(b9439) Reduced default font spacing to account for increased padding and also added new block to change font spacing (issue #854)
   
(b9450) The "draw text on image" block now takes into account letter spacing (issue #854)
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

decafpanda

  • Posts: 199
I think for some reason the extension is not working at all for him. Here is an example.

When I gave him the file he said all the text looked off center and it could be a result of the extension blocks.  At one point he sent the file back to me to work on.  I immediately saw one of the text events was off center (which wasn't the case before).  I looked at the code and he had put in math code with "width of text" to get it centered.  He put this into the extension's center text block (not a normal draw text block)

On his end, this made that particular text centered perfectly but on my end the text was not centered.

The only thing I can think of is that Stencyl was not reading the logic behind the extension's center text block and reading it as a normal text block.  After the math was calculated it centered the text perfectly.

On my end Stencyl WAS reading  the logic behind the extension's center text block AND his math code witch  made it look off center.

The only conclusion I can come to is that the extension is not working on his end for some reason.

LIBERADO

  • *
  • Posts: 2599
The only conclusion I can come to is that the extension is not working on his end for some reason.
What Stencyl version is he using?
What Stencyl version are you using?
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

ceosol

  • *
  • Posts: 2201
What Stencyl version is he using?

They are off-centered on 9300, 9520 and 9689. I tried all three.

decafpanda

  • Posts: 199

LIBERADO

  • *
  • Posts: 2599
In addition to fixing the aforementioned bug, a block to draw bezier curves could be added, please.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

designpeg

  • *
  • Posts: 610
Hi, I'm using this extension in my game, if I download the latest version of this extension to use with Stencyl 3.4  is it likely to break anything?

ETHproductions

  • *
  • Posts: 429
@decafpanda, @LIBERADO, @ceosol: Thanks for the bug report; I'll try to get that fixed ASAP. I'll also look into making the bezier curve function into a block.

@designpeg: It seems from the above conversation that the "draw text centered" block has stopped working in the latest versions of Stencyl. I'll try to find the problem...
Fontstruct - Stencyl - Website (in progress)

Proud Member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

LIBERADO

  • *
  • Posts: 2599
@ETHproductions, if you add the bezier curve function, please consider this new formula: http://community.stencyl.com/index.php/topic,51883.msg294372.html#msg294372
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

ETHproductions

  • *
  • Posts: 429
Heh, I was just looking at that topic ;-) Your function will allow the block to make more sense to the average user ("draw curve from A to B through C" as opposed to "draw curve from A to B with control C"). Maybe I'll include the "with control" as an option for those already experienced with Bezier curves. Thanks!
Fontstruct - Stencyl - Website (in progress)

Proud Member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

LIBERADO

  • *
  • Posts: 2599
  Including both options would be perfect.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

decafpanda

  • Posts: 199
Thanks for looking into this!

ETHproductions

  • *
  • Posts: 429
Sorry for taking so long to get back to this—I've finally been blessed with a completely open weekend to fix up my extensions. I've made a ton of changes to this latest version of the extension:

- Added a block to draw bezier curves, either with a control point or through a midpoint (using LIBERADO's formula)
- Solved the text alignment bug (it wasn't taking into account letter spacing)
- Fixed a few other bugs with the draw arc/wedge blocks
- Fixed yet another bug that was causing rotated ellipses to be drawn at twice the requested size
- Cleaned up all of the code and moved it into a single file
Fontstruct - Stencyl - Website (in progress)

Proud Member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.

LIBERADO

  • *
  • Posts: 2599
Thank you very much for the fixes and additions to this great extension.
I'm spanish, excuse me for my bad English.
I'm not a private teacher. Please, post your questions in the public forum.

HopFrog

  • *
  • Posts: 38
Thanks! A fantastic extension  :)