R0J0hound's Forum Posts

  • You need to look at what the tilemap plugin does when it modifies the tilemap. It looks like it sets some booleans indicating things need to be updated, then in turn the draw function calls another function that checks the booleans and updates as needed.

  • IJCT

    Best I can tell from looking at the events is they have to be done in order, and triggers can be run at any time.

    Basically the the three events are:

    "every tick" which calculates the stating velocities

    "the input check" which launches an actual physics object with the calculated velocities

    "the loop" which takes the calculated velocities and simulates physics steps to find the path of the ball.

    So if you want to launch a ball with a trigger such as a function you need to run the every tick event first somehow. Could be as simple as copying it.

  • There's this program that can do that:

    • Post link icon

    Gdevelop predates C2 and actually was made before the author was aware of Construct Classic.

    Also it initially had only win/linux export so the whole thing was designed differently.

  • When you load just re-create the objects from the array. The only problem is while saving can be done with a family, you need to create the individual sprites instead of creating the family.

    You can look here for something similar:

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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