R0J0hound's Forum Posts

  • 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?

  • 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

  • Mayfly

    You probably shouldn't set the position or angle of objects connected by joints. Disable the action that sets the angle and the objects pivot correctly. Try a gear joint with a ratio of 2 between crankRear and fw.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's the project file format that's changing from xml (capx) to json (c3p). The plugins aren't affected by that. Any changes needed to port a plugin over are likely just busywork.

    Since c3 is primarily a editor rewrite, the runtime portion of plugins and c3's runtime such would be likely the same. Although any changes to c3's runtime would probably be a good thing.

    The edittime portion of the plugins is likely the part that would need to be re-worked, and that's actually the simpler part of the plugin. Probably most of that portion of the plugin could be converted over automatically, and only edge cases would need to be tweaked. That said people like rex probably wouldn't have any issue converting his plugins over quickly.

    At any rate, just let the beta come out and it can be figured out quickly. Scirra ported all the official plugins so I don't see an issue.

  • Zebbi

    You should be able to use a different image per tiledbackground instance.

  • you can do this to put the number back into the 0 to 360 range.

    (ang+360)%360

  • Here are the posts I was thinking of:

    Those ways give more control than tokenat, but the way to get indavidual words seperated by spaces is the same as the one to get lines except " " is used instead of newline.

    I also know regex could possibly be used somehow.

  • Taking a step back you can convert between compass angles and c2 angles with:

    Compass angle = (c2 angle +90)

    C2 angle = (compass angle -90)

    So if you just want to use compass angles with your events every time you just convert it.

    Ex:

    Instead of

    Set angle to 0

    Use

    Set angle to (0-90)