R0J0hound's Recent Forum Activity

  • You could use the repeat condition with a very high number.

  • Wololo

    Motion is basically object's teleporting from one position to another each frame. The issue is when the cog spins fast the wall is on one side of the object one one frame and the other side on the next.

    Solutions to solve this either use:

    * math to calculate if the paths of the two objects cross

    * or checking positions in between the frames.

    Here's a rough idea of the latter:

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

  • A search for "isometric sorting" or "filimation engine" can give approaches similar to what you want. Based on what you know any two objects can be sorted based on their x,y and z. One thing to think of is they only need to be sorted if they overlap visually. To sort the objects it basically means a "topological sort" of the objects. A way to reference two separate instances of the same object is to use a family, then you can pick one instance like normal and the other with the family.

    I've done it before with isometric. The only difference to your idea is how you'd compare the two instances to see which is in front.

    viewtopic.php?f=147&t=79043&p=648340&hilit=isometric#p648340

    I found it can be made faster if you use an actual topological sort algorithm

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

  • Tombas

    It looks like Euler looking at the source.

  • Barye you wouldn't happen to be using the "OR" condition would you? It is known to cause crashes when changing layouts in CC.

  • miketolsa

    There is no documentation written, although the official documentation can be referenced for some info since a lot of it is the same. There are a lot of little documentation tidbits in the descriptions when adding conditions, actions, and expressions.

    You'd have to try it and see if it performs better. I haven't used any mobile exports at all.

  • You mean heavy on cpu usage? Test it and see how heavy it is. Setting the force is basically just setting a number and has a negligible performance impact.

  • It's possible in theory, but in practice it would be hard to get it to the point where it works the same as it does in javascript and html5. Not to mention it would be hard to update it to stay on par with c2 releases.

    Now if you utilized a javascript engine like v8 or spidermonkey you can get most of the way there with most of c2's runtime running as is you just need to impliment html5 stuff like images,canvases, input, etc in c++ or something.

    I was able to do that with a couple hundred lines of Python with v8 and sfml as the input/graphics backend. It just runs an html5 export to do it. I've been meaning to covert it over to c++ to eliminate the overhead of Python. But anyway the idea is to just impliment the system specific stuff in c++ and run everything else with js.

  • For that you could use Bresenham's line algorithm for a nice result. But it isn't simple.

    You could use lerp to do it like this:

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

    but you'll have to handle the case when deltay is more than deltax and do the loop in that direction.

    Edit: actually this would do it:

    variable delta= max(abs(x1-x0), abs(y1-y0))/32

    repeat delta times

    --- create sprite at (round(lerp(x0, x1, loopindex/delta)/32)*32), round(lerp(y0, y1, loopindex/delta)/32)*32)

  • spongehammer

    For shifting the CoM as mattb said is to attach multiple objects together. At least for now that's the only way.

    mattb

    Looks good, you can also utilize the "on pre step" condition to negate the acceleration of gravity on the object, but looks like it's working well as is.

    The wrapper project is stalled currently. I'll pick it up again eventually though.

  • The level rectangles need to be pinned to the sprite you drag and then you can give the rectangles a variable with the name of the layout to go to, which you can use with "go to layout (by name)"

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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What is your use case for getting all the points between two lines? You mean for picking objects on the line?

R0J0hound's avatar

R0J0hound

Member since 15 Jun, 2009

Twitter
R0J0hound has 157 followers

Connect with R0J0hound