R0J0hound's Forum Posts

  • There isn't but you can break it down into simpler problems.

    The first is to have an object follow a defined path. There are a few solutions you can find with a forum search, including some behaviors to help out.

    The second problem is to position an object an radius from another. Again a forum search for orbit will come up with a few ways.

    Here's one possible implimentation

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

  • Here's one idea:

    The first two events are the relevant ones.

  • Figure it out for a top view first, then you can transform the positions over to isometric. My idea is to have the terrain be a grid of points at various elevations and then you just find where the player is on the grid and interpolate between the nearby elevations to get the in between elevation.

    At least that's the rough idea. Here's a proof of concept of the idea:

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

    Half of it is just generating the terrain.

    Now another idea could be to layout the level in the editor and put a bunch of invisible sprites over the terrain and see what the player's feet is overlapping and somehow alter the speed when walking over slopes. Maybe something like this:

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

  • Try Construct 3

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

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

    This behavior isn't really usable for slopes.

  • You can get the json of the canvas with the canvas.asJson expression.

  • A newer variation.

    Or maybe something like this old capx:

  • Here's the relevant original discussion on the third oldest page of "Construct 2 General":

    The CC feature was called attributes and the decision was to replace them with behaviors instead. So a behavior could probably be done to implement a destroy on startup.

  • RBuster

    I don't apart from duplicating events. The plugin is probably causing a hang due to the family and I'd guess it would happen in other browsers.

    I don't have the canvas plugin installed currently and haven't made any time to work on plugins. However I seem to recall a similar problem with another plugin. The solution as I recall is to find the "typeProto.onCreate" function in the runtime and adding an if to stop the function if it's a family.

    typeProto.onCreate = function()
    	{
    		if (this.is_family)
    			return;[/code:1e6bs3fc]
    Maybe that will fix it.
  • Here's some more ideas on how to get the overlapping tiles:

    You can probably get exactly like that pic by first using the raycast plugin to get the collision point then using the idea above to get the hit tile.

  • Using an array is probably the best solution for smooth motion. I guess you could use a wait too. like every time you move the player add a wait then move the enemy by the same amount.

    partial example:

    on left pressed

    --- player: set x to self.x-64

    --- wait 1 second

    --- enemy: set x to self.x-64

  • RBuster

    So it doesn't load if the canvas is in a family, and on on safari? I guess I never tested that. I'm not sure I'll get around to finding a fix.

    kmsravindra

    This was asked a few times previously. Basically Construct Classic had a plugin like this and since C2 didn't have one at the time so I made this. I probably beat them to it, that's all. Scirra doesn't seem to duplicate third party plugins just because.

  • I don't quite understand what you did with those events and the "but" variable. Best I can tell you're setting it up so it controls when the scroll buttons can be used.

    If it helps here's the capx I did to figure out that expression above and work out how things could be simplified. As I said I didn't understand that bit so I did it a different way.

    https://www.dropbox.com/s/l8hw93anmoofu ... .capx?dl=0

  • Off hand I can't think of any. You may be able to do it with sprites and the snapshot action for some aspects of it. Plugin ideas include the canvas or paster plugins that allow you to draw to a texture. Those could help get you started.

  • Well, let's say it's not feasible. The image editor isn't usable by anything but C2's executable. If you wanted to use it first you'd have to use nw.js because browsers have security to keep webpages from running exe files at will. Next you'd need to reverse engineer the c2 executable to find out where the editor is, how it's called, and the data it uses. Then using that info you'd made a nw.js in c++ or something that setups an eviroment that the image editor expects and somehow launches it and cleans up afterwards. I'd consider that pretty hacky and a lot of work for little gain.

    Making your own editor in C2 would be quicker. Even making an image editor in JavaScript and making a plugin for it would be simpler.

  • It's not possible, you'll need to make your own editor.