R0J0hound's Forum Posts

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's not possible, you'll need to make your own editor.

  • This will give you the maximum scroll value:

    max(0, ceil(count/4)-2)

    If you're setting the animations like this:

    For each inventorySprite

    --- set animation to array.at(loopindex+scroll*4)

  • ryguydavis

    By default the timestep for chipmunk is set at 1/30, so at 60fps the speed will be double. You can change the timestep to 1/60 for the speeds to be the same.

  • digitalsoapbox

    I've only tried a handful of the bundled effects with paster, but I was only aware of effects pasting wrong, not causing an error.

    I guess it can be marked as a limitation, as I've been avoiding working on any plugins lately.

  • Look at plugins list i think there was a couple path plugins.

    I haven't used the moveto plugin but I think you can use it to do what you want. Just put your list of points in a comma separated list and use it like so:

    Global text points="10,32, 100,40, 600,2"

    Global number index=0

    Global number goalx=0

    Global number goaly=0

    X=goalx

    Y=goaly

    --- add 2 to index

    Every tick

    --- set goalx to int(tokenat(points, index, ","))

    --- set goaly to int(tokenat(points, index+1, ","))

    --- move to goalx, goaly

    Or something along those lines.

  • You could either a)check all the pixels with a loop, or b)set a variable when one of the actions to draw to the canvas is used. The latter is faster.

  • I haven't tried it in a bit but you may also need to wait a tick after setting the canvas size for scroll to to work.

  • If you want parabola movement you could use the qarp() expression

    Var t=0

    Every tick

    --- set t to time%2

    --- set t to (t>1)?2-t:t

    --- set X to qarp(a.x, (a.x+b.x)/2, b.x, t)

    --- set y to qarp(a.y, (a.y+b.y)/2-variance, b.y, t)

  • Here's a better approach I found after the link above.

    You set the viewport size to the size you want.

    Next scroll to the center of what you want to capture.

    Then use the snapshot canvas action.

    When it's done you can then set the viewport back to normal and scroll back so it's centered.