View Single Post
Seren Seren's Avatar

JCF Member

Joined: Feb 2010

Posts: 866

Seren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to allSeren is a name known to all

Aug 21, 2016, 05:41 AM
Seren is offline
Reply With Quote
Quote:
Originally Posted by MilloCz View Post
1) I assume it's not possible to trick drawString into drawing text with multiple lines? (unless I make more drawString's each one for each line)
Read up on jjTEXTAPPEARANCE. Properties of your interest are at and newline. See also the table in the constructor, showing that you can in fact avoid jjTEXTAPPEARANCE usage altogether if your case allows using STRING::SPIN. There is currently no way to customize vertical spacing of text.
Quote:
Originally Posted by MilloCz
2) What's some fancy way to prevent player from moving? I know every frame I can set his xPos and yPos, but it doesn't look too good - how do I make him standing still (even when he's pressing arrows)?
Setting key input properties to false achieves this most easily. It may require to be done in onPlayerInput.
__________________

I am an official JJ2+ programmer and this has been an official JJ2+ statement.