winkr7's Forum Posts

  • Car movement does this for you automatically. Maybe you want to use that instead? (you will have to remap keys to wasd from the arrow keys of course).

  • They say a 2 key shoot is easy--the pilgrims did it.

  • It works fine for me.

  • Hello;

    I want to find a location C, that is the nearest place to location A that is not in the line of sight of location B. IE, I want to hide behind the nearest tree from some enemy. One way is to guess locations near A and check to see if they are in the LOS of B.

    Is there a better way?

    Thanks for your time.

    yours

    winkr7

  • looks great.

  • once you have the UID of the first closest, take it out of the SOL and go again. Then take the first two out and go again. There is probably a more efficient way by ordering them by distance and then taking the top 3.

    yours winkr7

    19.99 is a very good price. Did you mean 119.99?

  • Have you tried the latest beta? They are doing a lot of work on Hierarchy, things like persist and Json are involved.

    yours

    winkr7

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads

    I am a fanboy of c3 but I have worked with lots of software packages. They all have problems, but at least here you can get hold of the people who actually write the code. They may not be able to fix everything here, but at least you know they know you exist.

    If someone tells me what to click I will try to do this build with my current game to see if it works for me.

    yours

    winkr7

  • Do you have pixel rounding set (its a project box)? That might be it. Try turning it on and off and see.

    yours

    winkr7

  • This is good news. I will give it a try next time my internet is down. I have had a hard time with this in the past.

  • You can put your global variables in a dictionary. This may make things harder to debug but at least you know where they all are. You can also put them as static inside functions which are always global.

  • we are judging this AI as experts (Well two of you are experts anyway). Look at what the AI figured out:

    construct 3 is a programming language and not a machine like a crane

    A sprite has a location

    stretch between means to start at one place and end at another

    you have to get the sprite from the UID to get the x coord

    etc.

    It did a pretty good job, just not good enough for someone who knows construct 3.

    yours

    winkr7

  • Hello all.

    I asked the openAI this question:

    How do I stretch a sprite between two other sprites in construct 3?

    it said:

    To stretch a sprite between two other sprites in Construct 3, you can use the "Pin" behavior. The "Pin" behavior allows you to anchor a sprite to another sprite or point, and stretch it as needed.

    Here's an example of how you can use the "Pin" behavior to stretch a sprite between two other sprites:

    In the layout editor, create three sprites: a "start" sprite, an "end" sprite, and a "stretch" sprite. The "start" and "end" sprites will be used to define the start and end points for the stretch, and the "stretch" sprite will be the sprite that stretches between them.

    Select the "stretch" sprite, and then click the "Behaviors" tab in the Properties panel.

    Click the "+" button to add a new behavior, and then select the "Pin" behavior from the list.

    In the "Pin" behavior, set the "Pinned Object" field to the "start" sprite. This will anchor the "stretch" sprite to the "start" sprite.

    Set the "Pin X" and "Pin Y" fields to the appropriate values to define the position of the "stretch" sprite relative to the "start" sprite. For example, you could set "Pin X" to 0 and "Pin Y" to 0 to anchor the top-left corner of the "stretch" sprite to the top-left corner of the "start" sprite.

    Set the "Pin Angle" field to the angle that you want the "stretch" sprite to be rotated relative to the "start" sprite.

    Set the "Pin Scale" field to the scale that you want the "stretch" sprite to be stretched or scaled by.

    In the "Pin" behavior, set the "Pin Length" field to the distance between the "start" and "end" sprites. This will stretch the "stretch" sprite to the desired length.

    Finally, set the "Pin Object 2" field to the "end" sprite. This will anchor the other end of the "stretch" sprite to the "end" sprite.

    That's it! Now, when you run your game, the "stretch" sprite will be stretched between the "start" and "end" sprites, anchored at both ends and stretched or scaled as needed. You can adjust the position, angle, and scale of the "stretch" sprite using the "Pin" behavior's properties.

    END open AI

    So I tried this question:

    write a function with UID of a sprite as a parameters to move a sprite left 30 pixels (unless this movement would create a sprite overlap with any other sprite) in construct 3

    it replied with:

    function moveLeft(spriteUID) {

    // Get the sprite using its UID

    var sprite = GetSprite(spriteUID);

    // Check if there is a sprite overlap

    if (IsOverlapping(sprite)) {

    // If there is a sprite overlap, do not move the sprite

    return;

    }

    // Move the sprite left 30 pixels

    sprite.x -= 30;

    }

  • If you are using the same sprite on many layouts and it has similar properties you probably want to set the sprite on one unused layout and call it home. If just about every layout uses sprites with properties specific to that layout then you probably don't want to set up a special layout for them.

    The sprite shapes get merged either way so don't be concerned about memory--just do the best organization you can from the programming perspective.

    Just my 2 cents.

    yours

    winkr7