R0J0hound's Recent Forum Activity

  • I think it's in the manual but you can by index

    Sprite.imagepointX(1)

    Or by name

    Sprite.imagepointX("myImagepoint")

  • The button object has its own "on clicked" condition. Maybe that's what you used before?

  • Yeah, it's relative to the top left of the canvas.

  • I'm pretty sure you could set "force own texture" on a layer in Construct Classic. Maybe that would help?

    It causes the effects of the objects on that layer to only affect that layer.

  • Some ideas here for the second video:

  • Like from the end?

    set text to left(text, len(text)-1)

  • It's a third party plugin and it draws to itself. Maybe it's not big enough?

  • Something like this works for me. I don't know how different it is from what you're using.

    start of layout
       local number value=0
       repeat 10 times
          wait 0.1*loopindex seconds
    	  add 10 to value
    	  sprite: set effect "tint" parameter 0 to value[/code:1mvlsp95]
    A variable is used instead of using loopindex below the wait because the wait action doesn't save the value of loopindex.
  • Add the function and browser objects to your project. Add a function and call it "on alt pressed". Next add a "on start of layout" event and add a "browser->execute javascript" action with this:

    "document.addEventListener('keydown', function(e){if(e.altKey)c2_callFunction('on alt pressed',[]);});"[/code:2z17k7e3]
  • Show a screenshot or a capx. Is the event that increments the variable running? Could you have another similarly named variable that you're accidentally incrementing instead?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's a bug, and here's a new report for it:

    What you can do in the meantime is set the value of the variable at the start of the layout instead of using the initial value for spaces. So for example:

    global text spaces=""

    Start of layout --- set spaces to " "

  • Problem Description

    If a text variable has only spaces and you save the project and open it later the spaces will be gone.

    Attach a Capx

    https://dl.dropboxusercontent.com/u/542 ... s_bug.capx

    Description of Capx

    The capx displays a variable containing four spaces and a string literal with four spaces. Both with quotes around them to see.

    Steps to Reproduce Bug

    • Add a text variable and add some spaces to the initial value.
    • Save and close the project.
    • Re-open the project and the initial value will now be nothing.

    Observed Result

    The spaces in the initial value are gone upon reloading the project.

    Expected Result

    That the spaces would still be there

    Affected Browsers

    • Chrome: YES
    • FireFox: n/a
    • Internet Explorer: n/a

    Operating System and Service Pack

    windows 10

    Construct 2 Version ID

    r242