kinnon's Forum Posts

  • WOW Tomycase, excellent solution.

    I'll have a go tonight. Spawning on the plats themselves.. wish I'd thought of that!

    Thank you!

  • Can you share a capx file, possibly via dropbox or similar?

  • Hello,

    This is driving me bonkers so hopefully a kind soul will be interested in a small puzzle to solve or explain. I have a little capx project. The idea is to draw platforms on the screen using a gray box sprite called plat. its on a 32x32 grid.

    when run, the game will spawn better looking sprites called plat_skin on top of the plat sprites, and pick different frames based on their positions (left end, center or right end. this way I could quickly map out platforms by just stretching the play sprite about the layout, and the logic will build the rest.

    The left end sprite works, but not the right.

    So... if a plat_skin is spawned and has no platform under it, its deleted, making a gap. It should then pick the previous plat_skin, and change the animation frame to 2 (which is the far right image for my platforms).

    I've tried picking by instance, iid and uid, and it seems to just not do it. I cant see a problem with the logic.

    Heres the capx: https://www.dropbox.com/s/4auc19xpddvq40y/PlatformLevelEngine.capx?dl=0

    The issue is with event 6 in my event sheet, there should be an screenshot below. I just cant see the problem.

    Anyone help?

  • In reply to myself, I've come up with a less elegent but working solution.

    I'm writing the required release version number into the CVersionChange.exe file name.

    For those interested in quickly changing capx versions:

    https://www.dropbox.com/s/5dhf7ksrum3zbw5/CVersionChange_20190918.zip?dl=0

  • in a command prompt:

    wmic datafile where name='C:\\Users\\path\\to\\Construct 2\\Construct2.exe' get version

    ...returns the major version, but not the release version.

    Is there a file or some way to programmatically detect the construct 2 version installed?

    I use Construct 2 to teach. The release version we have in our classrooms is always older than the version students use, so we do the version number rollback ... a lot

    (this thing - https://www.construct.net/en/tutorials/revert-project-earlier-270).

    I've written a program to rollback capx files automatically, however I would like to be able to detect the version of Construct installed on the local machine and use that number as the new project version number.

    I'll share my work once this is working.

  • Hi, got it working with some minor tweaks based on your initial suggestion and built a small example as proof of concept.

    The event sheet is as follows:

    drive.google.com/file/d/1PS6GZi07iyWO7RqTBLKLnpWftGQijTO7/view

    Demo capx file can be downloaded from the link below:

    drive.google.com/file/d/1TrOkX3kgPKI0EQn1QqDGzsjh9FmpuYzt/view

    Thanks for the help,

    Kinnon

  • Ah, cool, why'd I not think of that? Will post my progress.

    Kinnon

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello,

    I'm working on a top down game with bullet behavior enemies. They act like aircraft, in that they turn towards the a targetX and targetY position recorded as enemy sprite instance variables. This is all working nicely, however my issue is I need to detect if the enemy is turning, or travelling in a relatively straight line.

    I want to know if the enemies are turning so I can change the animation to bank left or right, or move back to being level.

    Any help?