Guif0DA's Forum Posts

  • Could you use a variable on that object, and set the movement angle to that variable?

    On Construct Classic you could set the object not to rotate it's sprite... I wonder if they'll add that feature for C2ya this would be a feature that I need.

    about your suggestion, doing that the object ill always follow his angle and so it can't go to where I want..

    because I use the action to rotate to a position and he won't rotate correctly if it can't change his angle..

    I had saw an action that is set angle of motion but it's a behavior's action and families can't access it yet.. this would help already

  • Any1?

  • Kyatric is right, WebGL does not actually have the ability to draw text. So we work around this by having text layered on top of the WebGL canvas.

    You can work around it if you put your text in Sprites or use the Sprite Font plugin - any way you can make your text appear without using the Text object should work.Ya i have thinked about that.. maybe add them to sprites.. also I could add some nice effects to them..

    Thanks by the way ;)

  • It seems u having problem to select only the the bullet it going to spawn.

    can u show me the event you did to make it change it's angle?

  • You can make the bullet object invisible, then pin another object to it.

    You could then every tick, set the angle of the pinned object to 0, to ensure it's always the correct angle.

    yA I Have thinked about that but in my game, there will be alot of sprites at the same time, so doubling it's quantity isn't a good idea because of the FPS..

  • Hello

    I'm currently trying to make a sprite follow some paths and for that I used the bullet behavior and set it angle to these paths but by doing that the image rotate and I need to make it doesn't rotate.. is there a way?

    The ideal would be keep the bullet behavior because of the events already made..

    it's also controlled by computer, not player.

  • This is not a bug, it's by design. See the manual entry for Text:

    ote if WebGL is enabled in project properties, due to technical limitations all Text objects appear on top of everything else in the game. For example, Sprites cannot be displayed on top of Text objects when WebGL is on, because the text is rendered to an overlay above the game. It is recommended to design your game so it is not necessary for other objects to appear on top of text objects, since turning off WebGL can reduce performance.

    IE9 does not support WebGL, which is why it Z orders as you expect.

    but how could this be a design choice?

    I turn on webGL because it make the game faster but then I can't make the game like I want because there will be texts everywhere above things I don't want to be..

    This technical limitation if from the browsers or C2 itself?

  • Hey

    I made a text object at layer 0, layer 1 have some sprites.

    when the sprites move to the text, the text object is above then, should be below.

    In Internet Explorer 9 it's showing correctly it's Z order position.

    Also the Text object at the same layer as the sprite object, if I put it behind the sprite and run the preview it appear above the sprite too.

    Tested only in IE9 and Chrome (latest version)

    Using C2 R84 64bit.

    EDIT: WebGL disabled with Chrome the problem doesn't appear, the text Z order is correct. Maybe something related to my video card? Can some1 try that with Chrome and webgl enabled with a dedicated video card and see if this problem persist?

  • I had loaded an example in the C2 folder and happened this to me too.. everything was with a 'bork' lol

  • In future we hope to have a feature that lets you set a layout as a loading screen, so you can have whatever you like while it loads. It's some way off though.

    that would be great for a start =D

  • There is no % used in expressions, only as plain text.

    The percentage sign "%" otherwise is taken as modulo, the remainder from division.

    Correction

    % when used in expressions gives you the remainder from division, so yes it is used in expressions, just not for doing percentages.

    Hmm.. that was what I was trying to understand.. so we need to create our own expressions for percentages then..

    thanks for your time ;)

  • Well you can always multiply by 0.01 to get the hundredths position.

    So n-(0.01*p*n)

    50/100 and 50*0.01 is the same.

  • Just remember that a percent is always based on 100.

    Nice refresher from khanacademy.org.

    Ahm.. I know that lol

    if hasn't I wouldn't obtained the same result, again, my question is how to use the '%' at the expression.

    just to make it clear

    there is 3 variables:

    life-100

    attack-20

    defense-10

    you hit by 20(atk) - 10(def)% of it = 18

    then life reduces to 182.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 200-(0.2*200)

    with this method first I would need to transform 20 to 0.2(20/100), so at the end would be like my method..

  • 200 * 0.80 = 160

    this is the simplest method..

    and how did u obtain 0.80?

    I don't want to obtain the result 160, it was just an example.

    I want a value that is substracted by x% of it.