R0J0hound's Recent Forum Activity

  • indiegrimes that is what I meant. You can select point sampling in the project settings to eliminate the blurring.

  • The browser object has a execute js action.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 100*random(1, 1.1) ?

  • So the 8 direction capx doesn't work right for isometric. I can see that, which isn't a problem since it wasn't made with isometric in mind.

    So the problem becomes how to find the closest angle as in your image. There probably can be an elegant formula to do it nicely, but barring deriving that you can check against all those angles to see if it's close.

    But wouldn't it be simpler to do all the motions from a top view and set all the visible stuff to an isometric projection? Then the 8 direction capx is perfectly applicable. I doesn't matter that 45 is an animation drawn at 22.5 degrees, because when the angle of motion is changed from to view to iso it will be 22.5.

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

R0J0hound's avatar

R0J0hound

Member since 15 Jun, 2009

Twitter
R0J0hound has 157 followers

Connect with R0J0hound