MTR's Forum Posts

  • Is there any way (or effect or plugin) to perspective an image?

    Like this:

    Thank you

    Tagged:

  • dop2000

    Thanks for your help.

    I had not thought that if I have 1 point, I also have the angle.

    I upload a version with the ellipse made by canvas (line to line)

    drive.google.com/open

  • jobel

    I do not know what you mean by 'modify an image dynamically'. Scale an image with an ellipse line, does not look good (the line changes in size). Draw a line by canvas... is what I want, but I do not know how to make an ellipse.

    For now I have this: drive.google.com/open

    Draw hundreds of 3x3 pixel images to make the line.

    To calculate the radius from the planet X/Y, I do it by brute force...

  • Add an image (or 2 images) under everything.

    Check it in "z order bar" (activate it in "view")

    Suggestion 1: add an image in the game background, I do not recommend using flat color.

    Suggestion 2: use "layers" Background / game / hud layer

  • You do not have permission to view this post

  • Basically, draw the white lines of this image.

    Using an image and scaling it is very bad, because the lines change in size.

    I try use canvas, but I don't know how to make a line like an ellipse.

    drive.google.com/open

    Thanks in advance

    Tagged:

  • another idea:

    Repeat 50
     Pick 2 pieces at random
     save values of pieceA (X Y angle ...)
     pieceA = pieceB (X Y angle ...)
     pieceB = values saved
    
  • Solution:

    I use plugin "Paster" and "Outline" effect.

    drive.google.com/open

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Take a look at this plugin:

    c2rexplugins.weebly.com/rex_nickname.html

  • Thanks for your ideas AllanR

    "Set color": I already use it.

    For now I am using the effect "Outline"

    construct.net/en/forum/extending-construct-2/effects-31/effect-outline-53089

    But I do not like the result:

    There is no problem in duplicating all the images, but I do not think this will improve the result.

    then you will need border pieces for each edge of each piece and work out what to show.

    Make an image of each edge is the solution, but it's... impossible. As you can see in the screenshot, it would be an exaggerated number of pieces for each map.

  • It is not an optimized idea.

    Have a 3x image in a lower layer and use the blend "destination out"

    drive.google.com/open

  • Some screenshots from other games:

    I attach a capx with the complete map (layer0) and the territories separated in images (layer1).

    (It's a quick example capx)

    drive.google.com/open

    What I need is to draw a line around all the territories of the same player.

    -No need to color the territories, the capx already does.

    -The players are capturing territories, so the border moves.

    Thank you

  • Thanks the Mnk for the answer. It work.

    This is a bad "feature" of the C2... I hope this change in the C3.

  • Problem Description

    In an event IF (with OR) and sub event IF. If the 2 events have an array object, it lose something making a bug.

    Note: check how IF work in "b" when I use System compare. It fail only when use Array compare.

    Attach a Capx

    https://drive.google.com/open?id=1ED6gdUXprnqjrmdwB7pTUTqXvP3lWiuy

    Description of Capx

    Write a text to see what IF work.

    Steps to Reproduce Bug

    F4 and read the text.

    Observed Result

    "found z" never show

    Expected Result

    "found a" and "found b" is the same IF than "found z", but it never write.

    Affected Browsers

    • FireFox: YES
    • Chrome: YES

    Operating System and Service Pack

    Win7

    Construct 2 Version ID

    Release 259 (and also tested on 245)

  • You need to pick the object and in this case you could use Pick nth instance where 0 is the first button, 1 is the second button. This is essentially picking by the object's IID which is the order in which the buttons were created. Currently you are just applying to all button objects.

    I try it, and don't work.

    Pick nth instance, overlapping point, ....

    With or without "wait" (between create and load image).

    When I load an image, all instances change it.