R0J0hound's Forum Posts

  • All that can be concluded is an example of such a game hasn't been made yet, not that it can't be done.

  • Had no idea what Paper Toss Game was until a few moments ago. Apparently I'm pretty bad at it...

    It is a 3d game so it's harder to do as it will require math to pull off, not impossible but certainly not the best candidate for a first game especially since C2 is geared for 2d games.

    First see if you can make the game in only 2d as a side view and then a top view. The bullet behavior can be used in both cases. For the 3rd dimension you'll need to use a variable to keep track of and adjust the Z position or distance into the screen and change the paper wad's scale based on that. There is a tutorial on psuedo 3d that may help with some of the math as well.

  • My graphics card locks up with that effect so I can't open the capx, but an event like this should work well to make each ColorBox have a different color.

    For each ColorBox ordered by random(1)

    ---Set effect "AdjustHSL" parameter 0 to loopindex*100/15

  • Ok, found the issue. I was looping with width^2 instead of 2^width. Now it gives all results. The bits array works much like getbit but can use many more than just 32 bits. Other than that it works the same way as yours.

    Edit:

    While it's true that you can bypass the getbit expression to access some more bits you'll run into issues once you exceed the number of significant digits in floating point numbers.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Aphrodite I like that algo you found there. Inspired I found a way to extend it beyond 32 elements. The idea is to use another array of 1's and 0's instead of just a number, and update the array with a simple function to add 1 in binary.

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

    It looks like counting sums of zero works, but it's also counting the case of none of the numbers added together. That case could be discarded by not using it when loopindex=0.

    Edit:

    Under further tests something seems broken with my capx.

    Edit2:

    Fixed

  • corlenbelspar

    Effects only work in paster currently. And unfortunately there isn't a simple way to do a coloring effect in just canvas. Also development of both plugins is currently suspended due to time and procrastination on my part, but they are in working order for what they do now.

    leofenix

    Floodfill is a slow operation as it is so it would make sense it would be slower on android.

  • +1 for me as well. I've had situations where it would've been handy to simplify some expressions.

    Construct Classic had it and it's true that it could be done with existing expressions, but the same can be said for lerp, clamp, abs and probably others.

    I also don't agree that it isn't supported everywhere, it can be done in js with just a few comparisons so it would work everywhere. Anyway, it isn't absolutely needed but I imagine it is as easy to add as qarp, cubic and cosp.

  • From the plugin list

  • Here's a demonstration.

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

    /examples23/interpolation.capx

  • [quote:2o29smuc]- And (the most important part) make it so that when two sprites overlap (for the binary suns in the picture above), the color of the intersection is the background color.

    For that bit you can use the xor blend. Only note the xor blend doesn't work with webgl so you'll need to set webgl to off.

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

  • Instead of just creating circles you could also create lines from circle to circle. The line can be done by rotating and scaling a sprite like in this example:

    how-do-i-expressions_t106009

    I found a capx in my files that may also be of help:

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

  • This topic may help, It plots a path the matches the physics sim.

  • You don't have to use ie9, you could also use firefox's or chrome's engine as well. That being said you're probably better off using nodeWebkit since it was picked because it has good compatibility and performance. There are other wrappers around the internet you could use to wrap the html5 export of your game as well. It would be a last resort to make your own wrapper in most cases since it would be time consuming and probably require expertise to improve on existing wrappers.

  • corlenbelspar

    Probably not with this plugin.

  • Sprite instances share the same set of image so if you replace an image it will be replaced for all other instances. One method that's often used is to just add a lot of empty animation frames for the number of images you might use during runtime. Just set the animation frame before the load from url action and be sure the animation speed is 0.

    That being said tiledbg and all these third party plugins can have a unique image per instance.

    plugin-paster_t88750

    http://www.scirra.com/forum/plugin-canv ... 46006.html

    plugin-sprite-sheet_t90520

    ^ I may be remembering wrong about this one.

    plugin-spriteurl_t69119