brendanpoke's Recent Forum Activity

  • Thanks for the replies.

    Could you also tell me what is the correct syntax for the parameters?

    I still don't know javascipt very well and I don't understand what "e" means ( (...command.split(",").map(e => e.trim())) )

    Shouldn't the syntax for entering the parameters also be the one in this image? I tried but it doesn't work. Instead your example does.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    i found this topic where the answer was given which says to use scripting.

    But I tried and it doesn't work, I'm not very experienced in scripting so can you explain me how to do it?

    I'm not clear if I also have to write my function via script or it's fine with the construct editor too (it would be easier that way).

    construct.net/en/forum/construct-3/how-do-i-8/call-function-name-146123

  • It doesn’t work because everything within quotes is just text and not an expression. So what’s happening is basically int(“object.x”), and when text is converted to a number it becomes 0 if no digits were found.

    Maybe you meant to build the text you saved to the dictionary.

    “Smoke=“&object.x&”,”&object.y

    Thanks so much!

    Now I understand better how it works :)

  • Yes, I made a mistake, but i fixed it and it still doesn't work.

    But I know because I've tried it before...

    Also just using "Text" to find the x coordinate of the object but nothing.

    I could fix it by creating an extra function that identifies the object if it's inside a family, but I'd like to know why it doesn't work like this.

  • Why can't I return a string object.x from a dictionary into the event?

    It doesn't give me the x coordinates of the object and the object is created at x=0.

    I'll post a screenshots so I can explain better.

    It could be done?

  • Construct does remember all your settings. However if you use private browsing, adjust your privacy settings so websites can't store cookies, use browser extensions that are aimed at improving privacy, or otherwise do anything that clears storage, then it will keep clearing the settings that Construct has saved.

    i only fixed it when i did "clear data" in chrome>settings>privacy, now it stores again and loads even faster.

    (I don't know why ).

    But that's okay now.

    maybe the problem was a message that said "storage memory full", but honestly I didn't understand what it meant and what to do.

  • Hello everybody,

    I wanted to ask something very simple, I often use Constuct 3 and I have more than one page open. But practically every day, as the program is updated, when I open a new page it sets the settings in a certain way (e.g. I'm Italian but I want to use cinstruct in English, and every time I have to reset the English language and reload the page ).

    It also deletes my chosen colors in the sprite animation and other stuff.

    How do I save my settings choices as default?

    Also now I have one more problem, that even when I reload the page it's always in Italian and with the default settings that I don't want.

    At this point I have to restart my pc...

  • Hello.

    I would like to report the values ​​written in "local storage" in the event sheet in a simple way.

    I put the code here so it is easier to explain.

    I don't want to use the "random" function to create the objects, I want to arrange them on the layout view and then save their coordinates and other data, and I want to report them as a string in the event sheet in "dictionary> set key".

    How can I do?

    The problem of local storage is that I don't know where the data is saved, it could be lost, is there another way?

  • You do not have permission to view this post

  • You shouldn't need to simulate mouse input to do this. You can make clicking an object call a function, and then call the function instead of simulating input, to do the same thing as if the object was clicked.

    Hi, thanks for your reply. Eventually I managed to do it like this:

    document.addEventListener("dblclick", () =>

    {

    Main.PlaySound();

    });

  • I didn't get it right, you mean I can open the animation editor by selecting the object in the layout and then hitting enter? That to tell the truth I already know. is because I don't use the layout view, I directly create the objects in the event sheets, and I modify or add sprite objects and images only from the project bar, so I wondered why they don't open by pressing enter.

    Maybe it is because the Construct3 programmers have made sure that the only input to redirect to the animation editor is the double click of the mouse.

    Or there are other hidden shortcuts ...

    Thanks anyway for the answer ...

  • I found an example to play a sound with scripts on start of layout, is there an example also to click an object with the mouse?

brendanpoke's avatar

brendanpoke

Member since 7 Aug, 2019

Twitter
brendanpoke has 1 followers

Trophy Case

  • 5-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

9/44
How to earn trophies