lightning_'s Forum Posts

  • You're in luck, that's a feature of bbcode!

    > [icon=0] or [icon=tag] - insert an icon to the text. The icons are taken from the animation frames of a Sprite object set in the Icon set property. The icon can be referred to by its zero-based frame index, or by the Tag property of the animation frame.

    https://www.construct.net/en/make-games/manuals/construct-3/plugin-reference/text

    thanks it will help me

  • So what's the issue? Simply append the text.

    On Space pressed : TextInput append text ("Shot fired!" & newline)

    I need to somehow display a weapon icon or symbol between two data "Shooter" and "Victim"

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • When using a weapon, I need to show the following data in text on the right in the logs

    Who shot ------> what was shot (emoji, icon, photo) ------->Who was shot at, approximately in this way, each event needs to be displayed in a text input or in any other object

  • Check out this post:

    https://www.construct.net/en/blogs/ashleys-blog-2/surprising-difficulty-1528

    Try changing spritesheet size in project properties. If it doesn't help - add 1px border to all images. And follow other tips from Ashley's post.

    Thank you, this will probably help me

  • Hi everyone, game developers. In many created sprites, some stripes appear on the side or on top. Although there is no such thing in the sprite itself, it seems to me that Construct 3 itself throws some lines on my sprites, namely on the sides or on top. No matter what I do, I can't solve this problem.

    This is original sprite

    On the preview

    Tagged:

  • I have created several topics but no one answers my topics. Neither the admins nor the most active users of the forum, they just pass by my topic. Maybe I am doing something wrong or creating a topic not according to the rules, what should I fix, ladies and gentlemen?

  • The data comes in

    player nickname and player Y coordinate

    You need to enter them somewhere and output them to text input sorted from the largest value to the smallest by player coordinates, and of course first enter a number, that is, his account number, that is, for example

    1) Jayson 456

    2)Ashley 578

    3)Drop2000 949

  • Доп2000 на мою тему не ответил,ждал от тебя ответ как от активного. Этож вопросы быстро решаются,создал несколько тем и ждад пока доп2000 ответит но не фига ((((

  • I didn't find it anywhere. How to run the game in the background. That is, so that all events in the game occur even if the game browser window tab is not open in the preview. In c2 there was a plugin for this waker

    Tagged:

  • Friends when I play my game in preview from the computer - fps 144. But when I open the game in the phone browser also as preview - it plays at fps 60. How to increase fps in the phone too. mobile game for phones

    Tagged:

  • The mobile preview was work but now not working

  • And by the way, I don't understand. Why is there a preview version. I exported the game to html and transferred it to the server. I haven't tried it in preview yet.

  • I exported the project to html 5 and opened it on open server. I also have reg.php and connect.php files there. But the game doesn't want to send an ajax request to it. Regular registration page

  • Friends, I did everything as stated in the video here youtube.com/watch

    Nothing worked for me. I downloaded and installed the library as it was said. I installed the phpmyadmin database and then did everything according to the instructions.

    I used the author's script reg.php filled everything where necessary. The connection to the database is also correct. I did the project in the constructor myself, but then I used his project because you never know. But he couldn't do anything.

    I just don’t know how to correctly fix the jamb error, where he will fix it himself

    Worked for openserver. I enter the login password email press ok. But nothing appears in the database.

    The project itself was uploaded here on Google Drive. Who can quickly test I will be very grateful

    drive.google.com/drive/folders/...sp=sharing

    Tagged:

  • Friends, i have api from google translator and you need to throw post requests.

    I want to send them using ajax.

    I have already learned how to throw requests to find out the ip address, network data, currencies, etc.

    The other day I found an api from Google for translating words, but I don’t know how to correctly formulate the request and throw

    Here is the request for js

    // Imports the Google Cloud client library
    const {Translate} = require('@google-cloud/translate').v2;
    
    // Creates a client
    const translate = new Translate();
    
    /**
     * TODO(developer): Uncomment the following lines before running the sample.
     */
    // const text = 'The text to translate, e.g. Hello, world!';
    // const target = 'The target language, e.g. ru';
    
    async function translateText() {
     // Translates the text into the target language. "text" can be a string for
     // translating a single piece of text, or an array of strings for translating
     // multiple texts.
     let [translations] = await translate.translate(text, target);
     translations = Array.isArray(translations) ? translations : [translations];
     console.log('Translations:');
     translations.forEach((translation, i) => {
     console.log(`${text[i]} => (${target}) ${translation}`);
     });
    }
    
    translateText();