randomly's Forum Posts

  • If the image point system doesn't work (don't know why though), I would simply go with some expressions.

    If the Sprite is a simple bar, you can use the Bar coordinates and a percentage of its length to simulate an image point.

    Let me give you some examples:

    • Image point at 2/3 of the bar's length: X coordinate: Bar.X + Bar.Width * (2/3)
    • Image point at 55% of the bar's length: X coordinate: Bar.X + Bar.Width * 0.55

    (Assuming, the Sprite's hotspot is on its left.

    If it's in the middle, use

    Bar.X - Bar.Length/2 + Bar.Length * 0.55

    for the second example)

    Obviously use the Bar's Y coordinate for the Y coordinate of the simulated Image Point.

    Hope this makes sense to you.

    [EDIT]

    conker23 Here is a sample .capx

  • Here is a sample .capx, hope that helps.

  • You could use the Pin behavior for this, for a grapple, the Bar and Rope modes might be especially useful.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • If I understand you correctly and you simply want the bullet to inherit the angle of motion and the speed, you can use the Custom Movement expressions of the Player.

    Like so:

    Will look like this:

  • Construct 2 doesn't have its own "CSS commands", it uses the same CSS as used in modern websites.

    If you are looking for parameters, have a look here.

  • From the Tilemap manual:

    [quote:1gkfv6pc]If you wish to have tiles that are visible but do not register a collision, use two Tilemap objects layered on top of each other.

    You probably read that as well. I am pretty sure that there is no other way of doing it apart from using a new tilemap on top of the other one.

  • pmerineau

    Are you looking for an arc prediction that includes movement prediction of the enemy?

    ___________

    darkrealos

    Do you want arrows at the point where the object will hit the ground after it flies across the arc?

    You can use the above mentioned thread for that.

  • Those links are still online and should answer your question.

  • You should be able to use the "bar" function of the Pin behavior for this.

    See this example .capx.

  • I created a commented .capx for you, hope this helps.

    You can download it here.

  • Could you provide a .capx or at least a screenshot of the important sections of your event sheet please?

    That would help a lot.

  • I don't think that I completely understand what you mean.

    Could you try to more into the details please?

  • The best way to do this would be to store the maximum and current hitpoints in an (instance) variable and use the variables to display it.

    Set the text to "[currentHP] & "/" & [maxHP]"

  • Use the textbox event "On text changed".

    When that triggers, put the action "Textbox: Set text to:"

    Set the textbox text to:

    replace(Textbox.Text, "+", "")[/code:234wu1iz].
    If you want to remove [b]-[/b] as well, simply add
    [code:234wu1iz]replace(Textbox.Text, "-", "")[/code:234wu1iz]
    as well.
    
    If you want to put all in one action, you can use regex for the Textbox text.
    [code:234wu1iz]RegexReplace(Textbox.Text, "\+|\-", "", "")[/code:234wu1iz]
  • Download link is down, can you please reupload it? Thanks!