R0J0hound's Forum Posts

  • If you save your project to a folder and then open the .capproj file it will list the plugins and behaviors used. It also lists all the object types and the behaviors they use. Search the file for litetween to see where it's used in your project. Then you can go back into C2 and remove it from there.

  • Here's an example of using physics:

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

  • You can look into a recent plugin by rexrainbow that compresses strings. That would allow you to store some more data.

  • It's a solution for it. To use a blendmode you need to isolate the stuff you want to use, and separate objects would do that. Other options could be to make a image per text or maybe write an effect that replaces a certain color and replace it with a gradient.

  • The list only shows the selected objects. I guess you could right click and "select all" first.

  • Compression is only useful when saving an image to disk. If the image is to be displayed it is uncompressed in memory.

    Edit:

    I just realized you may be thinking of image resizing. You may be able to utilize the snapshot action or the canvas or paster plugins to do that, but then again someone may have made a plugin to do that too.

  • That's an artifact of the platform behavior getting stuck on the slope. One idea could be to make the object with the platform behavior a smaller square that doesn't rotate in the middle and then positioning a rotated tank sprite on top of it. Other ideas include using the physics behavior for the motion or maybe implementing motion completely with events so then you could address issues on a case by case basis.

  • You could use text with a loop.

    Repeat 10 times:

    --- array: push tokenat("4,66,33,31,1,0,5,7,8,8", loopindex,",") to end

  • Angles in c2 and most places in graphics are clockwise from the right. Anyway the idea is the same, just change the values. Just change 270 to 90 and ang to -ang.

  • The offset in overlaps at offset is as if the sprite was moved by that amount before checking for collision.

    Anyways the typical solution is to use detector sprites at the front and back of the tank. You position the detectors and then move them up or down till they touch the ground, then the angle between the two is the angle to make the tank.

    Here's one possible solution:

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

    And here's another that samples more points.

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

  • [quote:1hms37qb]ViewportBottom(layer)

    ViewportLeft(layer)

    ViewportRight(layer)

    ViewportTop(layer)

    Return the viewport boundaries in layout co-ordinates of a given layer. Not all layers have the same viewport if they are parallaxed, scaled or rotated separately.

  • You could make two sets of the spritefont. One with the outline and one with just a solid colored inside. The inside ones you could put on it's own layer with a gradient sprite that uses a blend mode. Also be sure that layer has force own texture.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • maybe:

    global number rotateDir = 1

    global number ang = 0

    space is down

    --- add 100*rotateDir*dt to ang

    --- sprite: set angle to ang

    ang>270

    --- set rotateDir to -1

    ang<0

    --- set rotateDir to 1

  • Mayfly

    This is actually a very difficult thing to do.

    Looks like the only js library that can do it is this:

    http://excelbuilderjs.com/

    Here's an example of it's use from C2 with the browser object.

    https://www.dropbox.com/s/t267l8lhl7tsc ... .capx?dl=1

    /examples35/excel.capx

    First it loads the needed libraries and call the "ready" function when it's done.

    Next it creates the workbook, worksheet and populates it from a 2d javascript array.

    Then to get a image to save it snapshots the canvas. You could use the canvas object to get image data as well.

    Finally it generates the file and uses the browser object to download it.

    It basically follows the examples on their site and at the very least gives you a starting point to play around with. Also I won't be making a plugin for this.

  • Ciao121

    You unzip the file into the effects folder in C2's install directory and then it's as easy as using any other effect.