mindfaQ's Forum Posts

  • v0.1.0

    https://github.com/AwesomeAxolotl/translation_overlay

    Kinda happy I can alread swap out translations for the interface. For now can just view images in a folder, no overlay editing capabilities yet.

  • Oh okay.

    Set text to:

    text.Text & RegexMatchAt(Keyboard.StringFromKeyCode(Keyboard.LastKeyCode), "[0-9.]", "gi", 0)[/code:12u0cnjw]
    instead.
    
    Edit: if you wanna prevent F-keys to fire off, you'd also have to match differently, because of this (if you think this is a problem).
  • I have this problem as well. In non-debug-mode it works fine.

    r221

  • I would assume spawning many spritefont objects which then you can move separately (either through behavior or manually). You could for example use the sine behavior and set the cycle position for each further letter a bit further into the sine cycle.

  • You don't need a textbox for that.

    Say you are waiting for input. Then you can activate the following event (if you only want to accept numbers):

    https://drive.bitcasa.com/send/ZoS-vHik ... LYaDLNYOjo

    Obviously works just as well with spritefont. You can also easily add a blinking marker at the end or highlight the text, or pretty much do whatever you want.

  • 1) the expression is textbox.text

    2) system -> compare two values; if you have more than one textbox of each type, you need to pick the correct instances

  • What is there to know?

    You can use project files + ajax or perhaps a dictionary object to store your level data. Project files have the advantage to only being loaded into memory when you need them, while the dictionary would have to be filled immediately.

  • Place it in C:\Program Files\Construct 2\effects

    It is a webgl effect. If you need to support canvas2d, then you need to do something like R0j0hound suggested or keep using your solution, I think.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'll talk about the looping instead of how to optimize it performance-wise (generating chunks with canvas or paster is a good idea, you will end up with about two big sprites that you will move at the bottom at any time).

    If you wanna know the height value at a specific x, you can look up:

    height = array.at(xvalue%array.width)

    So if you wanna know the height at x = 4000, you will end up looking in the array at 399. The operation is called modulo.

  • For me it works, but I have not tried it with every exporter.

    (edit: seems to be compatible with nw.js)

  • I think the outline effect does the same (moving into 8 directions to create the outline). So it might still be slow, but at least it is easier on your code.

  • This is just a little project I'll be working on. It will probably help me to keep development alive until it is functional, if I post it somewhere. Sorry if it bothers anyone.

    project on github: https://github.com/AwesomeAxolotl/translation_overlay

    latest version: 0.1.0

    Current outline:

    1) Purpose:

    Overlay polygonal / elliptic masks and spritefont text over images loaded from disk. I want to use it to overlay translation skripts over speech bubbles from raw manga images or japanese digital illustrations. It should generate a json file that another user could load in (provided he has the same image files) to see where texts belong and what they say.

    2) Features:

    • different fonts (will use SpriteFont+)
    • different text color
    • text outline (stroke; will use Outline Effect by R0j0hound)
    • masking
    • color picking (for masking when you don't wanna use black or white)
    • text placement, basic editing
    • image navigation (zooming, panning)
    • file navigation inside the folder
    • export text and masks placements to reload elsewhere
    • autosave
    • undo / redo

    possible:

    • add some general-purpose icons to use (arrows, hearts, ... ?)

    probably not:

    • tablet / mobile support (non-nwjs; should be fairly easy to adapt as webservice, if it can access the images from webservers, though)
    • text object & webfont support (mainly want to use spritefont for better performance, but could fiddle with adding the possibility to use fonts instead)
  • Why not use the print button on your keyboard in combination with any image handling program or the snipping tool?

  • There is also a timer behavior that makes stuff like this more traceable.

  • I think "On any touch start" should work faster. Can you check it?