brendanpoke's Forum Posts

  • 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();

    });

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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?

  • Hello, could answer a simple question?

    Why, if I select an object in the sprite-type project bar, do I have to double-click with the mouse to open it?

    Isn't there a way to open it with the keyboard only? Nothing happens when you press enter.

    It would help me, thanks.

  • As the title says, I would like to know if it is possible instead of dragging events with the mouse to reorder them, if I can only do it with the keyboard because this is very inconvenient if I have to do a lot of them.

  • Hi, I was wondering if there are other key combinations that I don't know, in the event sheet view I use almost only the keyboard now, but for example in the layout view I have problems when I want to select objects in the lower layer because I select those in the upper one , keyboard shortcuts have made a lot of things easier for me, but by now I think I've learned them all (I think?).

  • Hi,

    thank you for your answer, but to tell the truth I wanted something more complex, so I had already thought about it but it would move in jerks, that is in several straight lines, instead I would like it to curve to give a visibly more pleasant effect.

    do you have an idea how it could be done? For example, I could insert a code that says that depending on the height the direction of movement changes, but how?

  • I have to make sure that the character moves in the yellow road, if I click with the mouse at Y200 or Y400 or 800 for example, he has to reach that distance, but always staying in the path. I have never used the "pathfinding" behavior, if I have to use that, can you tell me how?

    Thanks.

  • how can you create a game where the end of the layout goes directly to the beginning instead of stopping? that is, to create a 3d game like Star Wars how do I do?

  • Paused you mean, suspended? If yes, you have to compare time on suspended and set action on resumed.

    I don't know, to be honest I used the set time scale = 0 function to pause, and again 1 to resume, I didn't know how to do it. but if I put time scale = 1 again, all the other objects move too ...

  • I should make an object move even if the game is paused, to make objects move I use the expression "every 0.01 seconds move at", it would be a problem to change everything now. How can I do?

  • You can use Dictionary. For example, variable Var, create Dictionary keys "V1" and "V2", use:

    System - Set variable - choose(1,2)

    Text - Set text - "Value "&Var"&": "&Dictionary.Get("V"&Var)

    I don't understand, sorry, now that you told me, I can solve the problem by replacing all the variables with the global dictionary keys, but that's not what you say.

    Could you send me an example of a project? If not for the moment I do this, Thanks.