nutmix's Recent Forum Activity

  • We have purchased new fonts for the game, e.g. VAG Round. The font is pretty key to the game design.

    These look great in preview on the local machine, but dont work on any other Pc or mobile - you just get something like Times New Roman.

    Currently the fonts scale nicely when we scale the game to fit the window, we would want to keep that too.

    Is this possible, or are we stuck with the hand full of web safe fonts like in 1999? The designers will kill me if I tell them this...

  • Wow. That viewport stuff works, thanks. I need to draw some diagrams to get my head around it.

  • Thank god you were here, I would have spent hours searching for a string function for this.

    Ive put in a ".":

    str(int(balance))&"."&zeropad(int(balance*100)%100, 2)

    Thanks again!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The text looks the same, its the position which is about 7 pixels too low in FF. The same project with the same layout looks fine in all browsers in R99. I have not seen this effect till 103.

    Ill create a capx.

  • If we have the players balance, which is a number set to 100 or 10.5 or similar, we want to show it as a text object to 2 decimal places. I can't find any way to do this, if you say

    Global number balance = 100

    ...

       txtBalance set text to balance

    it formats it to the min number of decimal places possible, e.g. "100.0" is displayed as "100" and 10.50 is displayed as "10.5" not "10.50"

    Any ideas?

  • Even with the origin set to 0,0, objects are not the same in the designer as they are in the browser. I have not seen this problem with R99 or earlier, I believe its a bug in R103. The result is I can get it to look ok in FF, or ok in IE, but not both which is a bit of a show stopper.

    See the following two screen shots:

    1: This is the layout in C2. I move the objects (e.g. "WON: ?100" too low to make them look ok in FF)

    <img src="http://www.ohds.co.uk/c2/wonPosC2.PNG" border="0" />

    2) Now you can see in FF, its moved the text up a bit:

    <img src="http://www.ohds.co.uk/c2/wonPosFF.PNG" border="0" />

    3) But now I check IE, and its the same as C2, So is too low:

    <img src="http://www.ohds.co.uk/c2/wonPosIE.PNG" border="0" />

  • I want to anchor a button to the bottom center of the screen.

    To set its position, I'm using:

    System Every tick

       set X to windowWidth/2

       Set Y to WindowHeight-100-(spin_btn.Height/2)

    The button has its origin set to the center.

    The result is that the X & Y values vary widly with the screen size. E.g the longer the window, the more it disappears off below the window. The shorter the window, the more the object launches into outer space. Same with the X value. Its only actually correct when the window size happens to be the same a the window size set in the project.

    Here is a 1 sprite capx file:

    https://www.dropbox.com/s/gx2e1gnfn1t1uyy/middleAnchorProblem.capx

    This is making life very hard...

  • Nice trick! Seems to work well. This will save some posts, thanks!

  • Hi, I cant find any man pages for variable scope, does anyone know if there is one?

    1) What are the scope of local vars? E.g. if I create local vars at the top of a group, are they local to a group, the event sheet, or just the next event?

    2) Are global vars global to all event sheets?

    3) To try and simulate objects for better encapsulation and reuse, I want to create vars local to one event sheet. Is this possible, as you only seem to be able to create globals at this level?

    4) I see objects have a "global" setting. This seems odd, as objects seem to be global even if set to "no". E.g. if I copy an object from one layout to another, then modify the copied one, when I create an instance of the object on the first layout, it actually uses the settings from the second layout.

  • I can never find what I'm looking for, and there is no search function for the manual. E.g. I was looking for lerp under expressions page, and didnt know to look under system expressions so had to waste everyone time asking in the forms how to find it. Doing a browser search in the manual page doesnt find anything. Using the "search scirra.com" box only returns forum posts it seems.

    Presumably it cant be hard to make the manual searchable, or downloadable so we can search it ourselves? I would even buy a printed manual if it was updated a bit so I could use an index.

  • Nimtrix, doh! I was looking under expressions:

    http://www.scirra.com/manual/78/expressions

    Which is where the in C2 expression help takes you.

    Its a real shame that you cant search the manual for things like this - I can never find what I'm looking for.

  • Interesting, I didnt now C2 had lerp. Its not in the manual or in the help on expressions so I didnt know it was there - how did the first person find it?

    Mipey - nice example, thanks.

    All this manual maths to move an object from A to B cumon C2, give us a built in MoveTo behavior with easing - you know you want to!

nutmix's avatar

nutmix

Member since 16 Aug, 2012

None one is following nutmix yet!

Trophy Case

  • 13-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies