cesisco's Forum Posts

  • Have you tried this:

    Set Text

    "[outline=#000000][lineThickness=0.5]" & "Hello World" & "[/lineThickness][/outline]"

    Edit: You have to enable BBCode

  • I prefer to install C3 as an app instead of choosing a version from the C3 releases page. The problem is that when I install it as an app, it automatically updates to the latest stable version, regardless of the version I install. I need to stick with version 388.2. Does anyone know the solution for this? Thanks.

  • You're absolutely right! It can be frustrating to encounter such an undocumented change, especially if it breaks existing code. Here's a breakdown of the JSON data type issue for sprite frame data in Construct 3.

    In Construct 3 versions before r376, JSON.Get would implicitly convert string values like "1" to integers when used to set sprite animations.

    After r376, this implicit conversion no longer happens. The data type mismatch can lead to errors if your code relies on the old behavior in NYStateofHealth.

    Using the same JSON data, JSON.Get(".frame") would now return the string "1".

    If your code expects an integer and tries to use "1" directly, it might cause errors.

    I‘m still on r388.2, but it looks like it was “fixed” in r390.

    Release notes:

    “Sprite: for backwards compatibility, 'Set animation frame' now treats numerical strings like "2" as indices instead of tags”

  • The deeper I look the more it looks like removing anti-aliasing will never become a standard thing. Which makes sense since anti-aliased and clear type text is better looking in most cases. Most fonts don’t look good aliased.

    Crisp aliased text is niche feature of low res pixel games. The easiest solution is basically using the alpha clamp effect on the text for a general case. But a spritefont will likely look better, but we probably need better tools to generate them from fonts.

    cesisco

    That’s what I tried too. But it’s only a Mac/iOS thing. It doesn’t work for other platforms. Our only solution is a spritefont or maybe use the alpha clamp effect on the text.

    I don’t know if you realized that I was applying that CSS to the “ "Text Input object" to fake it as Text, and that works on Chrome😉. But that would be a nasty workaround to deal with🤮

  • The only trick I can think of would be to fake the Text input object as text, but I don’t know how it would affect performance, layer management, etc. Probably this is stupid. 🤔

    Edit: And probably other drawbacks that I’m not aware of, off the top of my head.

    	#your-textinput-object {
     background: transparent;
     border: none;
     outline: none;
     color: white;
     -webkit-font-smoothing: none;
     -moz-osx-font-smoothing: grayscale;
     font-smooth: never;
    }
    

    It's not hypothetical. Disasters have happened, are happening, and will continue to get worse.

    I understand that, it's a valid concern, but it would be easier for you and your conscience to just have a big disclaimer:

    "We do not endorse third-party plugins. Use them at your own risk."

    And then tell the customers to ask the add-on developer for support, as you usually do with Chrome and Apple issues.

    Folks, please remember the goal here is to stop a regular occurence of customer projects being ruined by permanently broken and unmaintained addons.

    Why wait for a hypothetical disaster later when we can enjoy a catastrophe right now

  • sanjibnanda You can check my add-ons to see if it's worth it for you ;)

    construct.net/en/game-assets/addons/openai-plugin-suite-3317

  • It looks there's a change on the last beta for this issue:

    Sprite: for backwards compatibility, 'Set animation frame' now treats numerical strings like "2" as indices instead of tags

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If I correctly understood, something like this will do the job.

  • Since r376 you can set animation frames by tag too, it is done by checking the type (set frame by number if number, set by tag if string). So this is intentional I think, but yea I have also seen a lot of people on the Construct Discord getting tripped up by this..

    That makes sense. I appreciate the feedback.

  • I don’t know if this is a bug or an undocumented change.

    Before r376, if we have a JSON like this:

    	{
    	"animals":[
    	{"animal":"dog", "frame": "1"}
    ]	
    }
    
    

    And then, if we get that value from “frame” with JSON.Get(".frame"), let’s say to set a sprite frame animation, it will treat the “1” as an integer and will set the sprite animation to frame 1, doing a Implicit type conversion.

    But after r376, it only works if we have the “frame” value as an actual integer:

    	{
    	"animals":[
    	{"animal":"dog", "frame": 1}
    ]	
    }
    
    

    This can cause a few bugs if a developer, for some reason started doing as the first example.

    Tagged:

  • Release 1.0.0.4

    OpenAI Chat Vision and OpenAI TTS were added to the suite.

    Now it includes:

    1-OpenAI Chat:

    1. This plugin allows Construct 3 to interact with the OpenAI chat completion endpoint, enabling real-time chat functionality.
    2. Perfect for chatbot development, conversational AI, and virtual assistants

    2-OpenAI Chat Vision:

    1. Enhance your Construct 3 applications with the power of AI vision. This plugin integrates with OpenAI’s vision models, allowing your application to understand and interpret images in a human-like manner.
    2. Perfect for chatbot development with vision capability.

    3-OpenAI Dall-E:

    1. Bring the power of Dall-E to your Construct 3 projects. These plugins allows your project to generate(Dall-E 2 and Dall-E 3), edit and make image variations(Dall-E 2 only) from textual descriptions, opening up a world of creative possibilities.

    4-OpenAI Whisper:

    1. Whisper is a speech recognition system for making requests to the OpenAI speech to text, transcriptions and translations endpoints.
    2. Transcribe audio into whatever language the audio is in.
    3. Translate and transcribe the audio into English.

    5-OpenAI TTS:

    1. The Text-to-Speech (TTS) plugin allows your Construct 3 project to convert written text into spoken words. This can be used to create more immersive experiences, provide accessibility features, and more.

    6-OpenAI Chat Completions:

    Deprecated

    7-OpenAI Completions:

    Deprecated

  • I'm at a loss with the message "You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys."

    I have a key, what is an Authorization header.

    Hi waltg, I've replied to you via the support email.

  • If it were up to me, I would simply create an Excel sheet with all the data, placing each creature in a separate column and listing the 30 names on the Y-axis. Once completed, I would copy the data into a C3 array, use Ajax to load it into an Array object, and then manipulate it as you need.

    You can even create the names with the help of AI in a table format already.