R0J0hound's Forum Posts

  • I got it backward, keep the ZElevation and Z distort less than 0 so that the object is mostly contained in it's bounding box. Another approach would be to always position the object at the middle of the screen and use "absolute displacement".

    s there a way to increase the screen size of drawing objects, but not the actual resolution.

    In construct it self, or even in python?

    OR can I edit the bounding box of a sprite, but not there actual height/width?

    No, you can only design around it.

  • Change the "start of layout" conditions in events 1 and 3 to a system compare "tickcount=0".

  • xpressions to retrieve system date and time.

    There's a plugin for that:

    http://www.scirra.com/forum/plugin-system-date-and-time_topic45206.html

    he ability to take a snapshot of a part of the canvas rather than the whole canvas.

    The canvas object can do it with the "paste layer" action if you're not using webgl.

  • Objects are only drawn if their bounding box is on the screen, and the bounding box is always at a ZElevation of zero.

    You ca design your game so that the ZElevation of objects (and distort points) never go lower than 0, just shift them higher. You can also increase the project property "eye distance" if they are getting clipped by being close.

  • Here is a example that uses the canvas object. I made something similar in CC.

    https://www.dropbox.com/s/akiozmfy79ywscq/cut.capx?dl=0

    You will need to re-download the canvas plugin as I added some fixes to make it work.

  • I suppose you could do it with arrays but it's not necessary.

    Here's how I would do it:

    http://dl.dropbox.com/u/5426011/examples14/laserFilter.capx

  • You could do it like this:

    global text pattern=""
    
    Every Tick:
    --- set pattern to ""
    
    For each sprite:
    --- sprite is visible:
    ------ add "x" to pattern
    --- else:
    ------ add "o" to pattern
    
    //// cases
    pattern = "ooo":
    --- do this
    
    pattern = "xoo":
    --- do that
    
    ...
  • You need to set the angle of motion when you spawn the arrows or move event 12 to the very bottom.

    As it is now the arrows spawned in event 11 work because their angle of motion is set directly after they were spawned. The arrows spawned by events 23-24 don't get their angle of motion changed until the next frame, so they move to the right a bit and no longer have a X of exactly 60,150,etc...

  • It's probably better just to edit your post rather than add another, especially if in as small a time frame as 14 minutes.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • mutuware

    That is by design. "rgbaAt()" gets the color on the canvas' texture, not the color at x,y on the layout.

  • There's no plugin but you can use python to do it.

  • In the same folder as your .cap file is a .persist file with the same name. Delete the persist file and reopen the cap.

    Persist files save the UI state, which can be saved as having no editor windows open. You can also go to the project bar and open a layout from there. And finally you can disable the creation of persist files in construct's config.

  • You can selectively make objects move when the time scale is 0 with the "set object time scale" system action. Then you can use the Sprite.dt expression to get dt.

    For example if you have a sprite with the sine behavior.

    This would pause everything else besides the sprite.

         system: set time scale to 0
         system: set sprite time scale to 1.0
    
    every tick:
         Text: set text to sprite.dt]start of layout:
         system: set time scale to 0
         system: set sprite time scale to 1.0
    
    every tick:
         Text: set text to sprite.dt
  • They've been possible but there is no plugin to make it simple.

    Here is a way to implement it using the canvas object to draw the shadows.

    http://dl.dropbox.com/u/5426011/examples14/shadow_cast.capx

  • 1. Create a Text object on the layout to display the result.

    2. Create a global number called n and set it to 3.7.

    3. Create a "start of layout" event with a "set text" action.

    4. Use this expression:

    ((mid(str(n),0,1)=".")?"":(mid(str(n),0,1)))&((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),1,1)))))&((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),2,1)))))))&((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),3,1)))))))))&((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),4,1)))))))))))&((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),5,1)))))))))))))&((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),6,1)))))))))))))))&((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),7,1)))))))))))))))))&((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),8,1)))))))))))))))))))&((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),9,1)))))))))))))))))))))&((mid(str(n),10,1)=".")?"":(((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),10,1)))))))))))))))))))))))&((mid(str(n),11,1)=".")?"":(((mid(str(n),10,1)=".")?"":(((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),11,1)))))))))))))))))))))))))&((mid(str(n),12,1)=".")?"":(((mid(str(n),11,1)=".")?"":(((mid(str(n),10,1)=".")?"":(((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),12,1)))))))))))))))))))))))))))&((mid(str(n),13,1)=".")?"":(((mid(str(n),12,1)=".")?"":(((mid(str(n),11,1)=".")?"":(((mid(str(n),10,1)=".")?"":(((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),13,1)))))))))))))))))))))))))))))&((mid(str(n),14,1)=".")?"":(((mid(str(n),13,1)=".")?"":(((mid(str(n),12,1)=".")?"":(((mid(str(n),11,1)=".")?"":(((mid(str(n),10,1)=".")?"":(((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),14,1)))))))))))))))))))))))))))))))&((mid(str(n),15,1)=".")?"":(((mid(str(n),14,1)=".")?"":(((mid(str(n),13,1)=".")?"":(((mid(str(n),12,1)=".")?"":(((mid(str(n),11,1)=".")?"":(((mid(str(n),10,1)=".")?"":(((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),15,1)))))))))))))))))))))))))))))))))&((mid(str(n),16,1)=".")?"":(((mid(str(n),15,1)=".")?"":(((mid(str(n),14,1)=".")?"":(((mid(str(n),13,1)=".")?"":(((mid(str(n),12,1)=".")?"":(((mid(str(n),11,1)=".")?"":(((mid(str(n),10,1)=".")?"":(((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),16,1)))))))))))))))))))))))))))))))))))&((mid(str(n),17,1)=".")?"":(((mid(str(n),16,1)=".")?"":(((mid(str(n),15,1)=".")?"":(((mid(str(n),14,1)=".")?"":(((mid(str(n),13,1)=".")?"":(((mid(str(n),12,1)=".")?"":(((mid(str(n),11,1)=".")?"":(((mid(str(n),10,1)=".")?"":(((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),17,1)))))))))))))))))))))))))))))))))))))&((mid(str(n),18,1)=".")?"":(((mid(str(n),17,1)=".")?"":(((mid(str(n),16,1)=".")?"":(((mid(str(n),15,1)=".")?"":(((mid(str(n),14,1)=".")?"":(((mid(str(n),13,1)=".")?"":(((mid(str(n),12,1)=".")?"":(((mid(str(n),11,1)=".")?"":(((mid(str(n),10,1)=".")?"":(((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),18,1)))))))))))))))))))))))))))))))))))))))&((mid(str(n),19,1)=".")?"":(((mid(str(n),18,1)=".")?"":(((mid(str(n),17,1)=".")?"":(((mid(str(n),16,1)=".")?"":(((mid(str(n),15,1)=".")?"":(((mid(str(n),14,1)=".")?"":(((mid(str(n),13,1)=".")?"":(((mid(str(n),12,1)=".")?"":(((mid(str(n),11,1)=".")?"":(((mid(str(n),10,1)=".")?"":(((mid(str(n),9,1)=".")?"":(((mid(str(n),8,1)=".")?"":(((mid(str(n),7,1)=".")?"":(((mid(str(n),6,1)=".")?"":(((mid(str(n),5,1)=".")?"":(((mid(str(n),4,1)=".")?"":(((mid(str(n),3,1)=".")?"":(((mid(str(n),2,1)=".")?"":(((mid(str(n),1,1)=".")?"":(((mid(str(n),0,1)=".")?"":(mid(str(n),19,1)))))))))))))))))))))))))))))))))))))))))

    What could be easier?