R0J0hound's Forum Posts

  • I can’t read the image you posted of the error, but it’s probably the same known error that you get when creating and destroying too many physics objects.

  • They add dll files needed by the runtime to run. Without them you'd get an error.

    That said, not all the dll in the redistributes are needed. You can look at your game exe with something like "dependency walker" to see all the dlls it uses. Notably the dx vs dlls are the one's you could bundle. Unless of course those dlls need some other dll.

    Try this:

    Put your game on a machine where you haven't installed those redists (hopefully nothing else has already or you'll miss stuff). Next, try and run the game and it will complain about a missing dll. Find that dll on another machine you have already installed the redists on, and copy it over to the same folder as your game. Then try running the game again and repeat till the game runs. All the dlls you copied over should be all you need to bundle with your game to run without the redists.

  • It’s not really a workaround, it’s JavaScript that usually is in a plugin. Also it is possible to get the image from other objects if we tap into the runtime functions. It will no longer work when minifying though, and it’s a bit complex as there are many more edge cases to handle. At that point why not just use the canvas plugin?

  • This is probably off from the direction you're going but here is a way to get the pixels of an image without the canvas plugin.

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

    It actually just gets the alpha as in transparent 0 or not 1. Every line is separated by a newline.

    It could be modified to give a width and height then a list of pixels but as is is fine imo.

    Anyways it may be useful to someone. To make it work with C3 all that should be needed is to replace 'c2_callFunction' with 'c3_callFunction' in the js file in the files folder.

  • JohnnySix

    Someone could make a plugin i suppose, but using exec javascript still works here. What's the error? If you open up the browser console you should see what the javascript error is. However copy pasting what I posted here works fine.

  • Cool

  • I think I’ve answered better many times in the past. To read pixels of an image you need a plugin like canvas. To read the collision polygon of a sprite per pixel you could use a bunch of overlapping point checks.

  • irina

    Maybe switch the mouse events with touch events?

  • Open the sprite in the image editor. Rotate the image so it’s facing right.

  • That’s unrelated. You can use the audio plugin to affect the volume of your game.

  • I don’t think there will be a measurable difference.

  • I’d assume so but I have no idea.

  • Ah I understand now I think. You could do a three layer setup. Objects on the bottom layer and light in the middle. Then if any object has a line of sight to the light you can move it to the top layer.

    Another idea is to just do shadows yourself, either with the “paster” or “custom draw” plugins. Basically it’s just a quad from each edge with two points projected with a ray from the light to the edge corners. The trick to show objects in the light and hide those in shadow would be to only use edges facing away from the light. Anyways there was an old example of this done with the canvas or paster plugin I think.

    Edit:

    Example using "custom draw"

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

    plugin:

    plugin-custom-draw_t190098

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks. I was pretty pleased how that guy came out.

  • Then maybe putting the light object in a layer below?