R0J0hound's Recent Forum Activity

  • indiegrimes

    You can already. There's a set resolution action to change it. The default resolution is the same as the canvas' size.

  • crugh

    You can paste (or draw) objects to the paster object with the paste action and then retrieve that image with the paster.imageUrl expression.

    Alternatively you could use the Canvas object which has similar behavior except it has a "paste layer" action that will assist.

  • JamesXXXYZ

    It does. Since it's using x and z it's rotating around the z axis. Use x and z for y axis rotation, and y and z for x axis rotation.

    You can convert an angle to the closest 8 direction with

    You can convert an angle to an iso projected angle with

    angle(0, 0, cos(a), sin(a)/2) where a is an angle.

  • playerelite

    Re-download the link I posted for a hack fix. Ignore expressions a and b.

  • Q3D would give the most realistic results by far since you wouldn't be faking it.

    Textured quads with paster is an interesting idea but it will likely be more complicated than q3d since you have to define all the verticie positions of the sphere, calculate the shading of each face, and zsort the faces so it draws right.

    The shadow caster behavior isn't really useful for shading as its for casting 2d shadows.

  • Setting the mouses position is prohibited in js.

    http://stackoverflow.com/questions/4752 ... c-position

    Otherwise the only other solution is mouse lock but that only works in Chrome or Firefox.

    plugin-mouse-lock-v0-3-updated_t102112?&hilit=mouse+lock

    eli0s

    The issue is the mouse position is 0,0 at the start and with javascript you can only get the position once the mouse moves. It would be solved if the mouse position could be retrieved without moving the mouse but that doesn't seem to be the case.

    http://stackoverflow.com/questions/2601 ... -the-mouse

    One solution for your example is to only move the box if mouse.x is nonzero.

  • Maybe something like this should work?

    for (i = 0, len = runtime.types_by_index.length; i < len; i++)
    {
    	var type = runtime.types_by_index[i];
    	var sol = type.getCurrentSol();
    	sol.select_all = false;
    	sol.instances.length = 0;
    }[/code:2lz1vgzb]
    It's untested but should work as types_by_index is used elsewhere to loop over the types.  You'll probably need to save the old SOL first with pushCleanSol() or something like that.  You can find it in preview.js as well as examples of it's use.  
    
    You may need to do some experimenting with it as I don't know if doing that will cause issues with the event sheet, since the standard behavior is to terminate evaluating and other sub-events if 0 of something is picked.  I could be wrong but it's just a thought.
  • Yeah that or you could call a certain python function directly.

  • Why not have your plugin draw to it's own canvas? That's what the canvas plugin does and actually is pretty simple minus getting it working with webgl.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Minifying or obfuscating it is your only options.

  • For that you could make a semicircle sprite as in the image and set it's angle to the light?

  • There is no rgbAt in this plugin. For that you should look at the canvas plugin.