ErudioLtd's Forum Posts

  • Thanks again Blackhornet

  • There is a sample CAPX in the original post. There is also a tutorial someone else wrote.

    https://www.scirra.com/tutorials/629/sp ... when-where

    Can i use one array on mulitple Sprite text objects?

  • Well it didnt seem to want to install for me. Doesnt matter anyway i have found out how to do it using the array system.

    Thanks a lot for your help

  • Thanks a lot. Great application and sorry about saying no tut. i had the example capx. already downloaded i just forgot as i am dumb.

    Thanks

  • Hi,

    I am using GYFM to create a sprite font from a normal font (gil mt schoolbook) but the spacing of the characters are not all the same?

    In the text file created by GYFM it talks about copying a .json string into a command for an array (array.load) but array.load isnt a command .

    I assume it means The load action on the array but how do i then tie it to the sprite font?

    If there is any material like a tutorial or soemthing i would be very grateful if you could point me in the direction of it.

    Thanks

  • I have just read up on SF+ and that would mean i wouldnt have to use the array stuff but it doesnt seem to work?

    Any alternatives to this? thanks

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi i have used GYFM to create a spritefont from my font and changed the properties so it matches those in the text file. However the spacing between each character is off, some are much further apart than others. Im not sure about the Array it talks about in the text file so im not too sure i am using it correctly.

    Any ideas?

    Thanks

  • I am making a educational card game and want to use a specific font (due to the way schools like to have specific fonts to teach the kids because it will confuse them if there are different shapes for the same letter).

    How would i package a font face with a NWJs app so that the game can use it even if they don't already have the font face installed on their computer?

    Also, if this isn't doable how would I make it so that the game can detect if the user has the font face installed and change the font face used if they don't.

    Thanks,

    All advice appreciated.

  • Ah, Cheers.

    Realised i could do what i needed by just detecting the characters and making the font size smaller if it hits certain thresholds.

    Thanks.

  • I am developing a game in which the user is able to enter words which will then appear on placards during gameplay.

    I don't want to limit them on how many characters they can use and so would rather the text scale to fit the placard no matter how many characters (within reason).

    I know there is Rex_Text_resize plugin but this doesn't seem to be loading in for me (getting error reading " 'GetPluginSettings' global, but it is not a function).

    All advice appreciated.

    Thanks

  • you can do this alternatively

    like

    if score is greater than 0 then do anything

    I'm not too sure what you mean.

    The basic idea of what i want to do is:

    1) Be able to save a set of words in a text file and also save the sets name defined by the user. (done)

    2) Be able to change the drop down menus names to what the person has named it.

    3) Dont show the save slot on the drop down if no set has been saved in that slot.

    Thanks for the advice

  • i think you are having a confusion here , local storage is not your files and folders , local storage is like a dictionary ( a register ) but the values are saved in a browser session so the next time you run the game the values are still there, and it is used for saving high scores, user data, etc . it has nothing to do with files and folders.

    Hi, I now realise this is saving values rather than files. I have attempted to save a value to SaveFile.AsJson and then on start up check that the value exists and then to add something to the drop down menu.

    Is there a way to use Ajax to determine if a file exists or not?

    Thanks for the advice

  • I am attempting to use the local storage action to check if something exists and then "if exists" add something to a drop down menu.

    I am telling the action to check for "NWJs.Appfolder&Save1.txt" but it doesn't seem to be working correctly. Is this the correct format for the path in regards to if exists actions?

    If not i would greatly appreciate any advice; if it is, i must be doing something else wrong but at least i can rule this out.

  • Cheers Buddy.

    Decided in the end just to save directly to NWJS.Appfolder instead as the game being marketed at schools and stuff and they probably not happy to have stuff saved in different folders.

    Thanks a lot though.

  • The project files get compressed into package.nw file (html5 export just has the files uncompressed in the root folder).

    Cheers, realised this shortly after posting and used the URL request instead