Banatawa's Forum Posts

  • Try using the Global property set to Yes.

    Global

    By default, all instances are destroyed when the layout ends (e.g. when going to the next layout). If Global is Yes, none of the instances of this object type will be destroyed when switching layouts.

    Use on start of layout to adjust position if needed.

    Where can I find this?

    Is this a behavior? An action?

  • Up

  • Construct 2 already has a backup function called "Save" in the system. To load the backup, use the "load" action. The saves are created in the browser used it seems to me.

  • I was able to solve my problem regarding the direction of the player, it was stupid.

    By cons, I still have the problem of the location of the player.

  • Hello !

    I am French and I write this request with the help of Google translation.

    I would like to know how can we save the player's location when he changes layout? I had a small system with variables to do that, but it only worked between two layouts ...

    I would also like to save his animation, style ... If he looks at the top, I would like that when he changes layout, he still looks at the top.

    Would you have a solution to offer me?

    I look forward to your answers, thank you in advance.

  • Yes !

  • > Hey, I have a simple question.

    > It's possible to make an bot on twitter that tweets variable of my game in construct 2?

    >

    > Exemple : If HumanName variable = "Chara", I want that the bot tweet "Welcome to Chara on brOKtale !" ?

    >

    maybe this can helpyou

    Hey, thanks for your answer.

    I know how to set the name of the player in a variable, but I want that a twitter account tweet something like " "Welcome "&HumanName "

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • On Effacer pressed > set HumanName to left(HumanName,len(HumanName)-1)

    Thanks, it works perfectly !

  • Hey, I have a simple question.

    It's possible to make an bot on twitter that tweets variable of my game in construct 2?

    Exemple : If HumanName variable = "Chara", I want that the bot tweet "Welcome to Chara on brOKtale !" ?

  • Hey

    I'm a french people, so please talk me the more simply as you can.

    So... My problem is that a I have a layout in my project "brOKtale" where the player can set his name.

    That works except the "Effacer" button. In english, it's "delete", I think.

    He should delete a letter from the variable "HumanName" but I don't know how to do that.

    Exemple : HumanName variable is "Chara", if the player use "Effacer" I want that "Chara" change to "Char".

    I'm waiting for answers.

    Thank you in advance.

    - Banatawa

  • Thank you, I was able to solve my problem. You would have no solution for my second problem? If that does not bother you of course.

  • + (no conditions)

    -> TextInput: Set text to left(TextInput.Text, 6)

    -> System: Set charname to TextInput.Text

    -> Text: Set text to charname

    Something like this should work.

    What is "charname"? I do not find this event.

  • + System: len(TextInput.Text) > 5

    -> TextInput: Set text to left(TextInput.Text, 6)

    -> System: Set charname to TextInput.Text

    Something like this should work.

    Thanks, I will test it later

  • Actually I had used left (variable, 6) on "compare variable not equal to", how to use len (text)?

  • I'm not sure I understood correctly but you can use the system expression len to get how many characters.

    len(text)

    Return the number of characters in text.

    you can also use this in a condition to limit the amount of characters you can enter.

    I have already tested using len in the following way: "len (HumanName, 6)" 6 being the maximum number of letters I want to have, not one more. But she did not work.