R0J0hound's Forum Posts

  • You can also use python to do the calculations as I think it may use higher precision floating point numbers.

    And if that still isn't accurate enough you could try the python decimal module which allows extremely high precision floating point calculation and storage.

    http://docs.python.org/library/decimal.html

  • Yep, it's the "Spell Effect" sprite that is using all that vram. Without it the vram usage drops down to about 20 mb.

    A

    You could delete every other frame of it's animations and reduce the vram usage by half, at the expense of having slightly less smooth animations.

    B

    Another solution would be to take the images you imported re-size them by half and re-import them into construct. That would reduce the vram usage to one forth of what it uses now. The quality reduction will not be too noticeable since the animations are of fire and smoke, which are by nature a bit blurry.

    If either of those is not enough you could do both and reduce the usage to one eighth of the current.

  • Hey... Do you know a way to get the number of objects with opacity = 100??

    I'm trying

    condition:

    pick 'object' with opacity=100

    action:

    text: set text to object.Count

    but it's getting objects with different opacities too..

    object.Count always gives the total number of instances.

    Use CountMatching(object.OID) to get the number of picked objects.

  • [quote:410xqhgh]Is there a way in construct to store excessively large or small numbers.

    Construct uses floating point numbers so it should handle it just as well as any other program.

  • The python functions take the same number of arguments as their event counterparts. So events are the reference.

    If the argument in events is a color then in python it is in this form:

    System.rgb(255,128,0)

    so to set the filter of Sprite to red:

    Sprite.SetFilter( System.rgb(255,0,0) )

    If the argument in events is a object then in python it is the OID of that object.

    If the argument in events is a combo box then in python it is the index of the list, starting from zero.

  • [quote:1h1jk10v]What version of construct can this be used with?

    Any version should work.

    [quote:1h1jk10v]...or get examples in 1.1

    I converted the examples to 0.99.96 here:

    http://dl.dropbox.com/u/5426011/plugins ... s09996.zip

  • [quote:2csx415z]Also, might check the wording Rojo. The action reads kind of opposite of what you would expect.

    Thanks, it's now fixed. Just re-download.

  • [quote:39jatz65]Forgive me for asking before checking it out myself, but I'm quite curious: does the plugin also grab parts of texture? Think tileset or texture atlas.

    No, it just uses the entire texture.

    [quote:39jatz65]Question, i've been trying to recreate your examples "pixelscale" and "coolcubes" and it seems that the effect of sprite showing texture from canvas works only when there are objects with additive efects on the lowest layer. Just spend half an hour trying to figure it out why it shows me only white fill (in canvas and sprite) until i've noticed your clouds have additive effect.

    don't know the reason that a shader is needed. It looks like at least 1 is needed though. You can give a shader to just the canvas object and it will work.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Texture Setter 1.0

    http://dl.dropbox.com/u/5426011/plugins/TexSet.zip

    This plugin allows one object to use the texture of another. It does not copy the image like ImageManipulator does, it just reuses the same texture. This results in instant texture changes.

    Here are some examples of the possible use of this object:

    http://dl.dropbox.com/u/5426011/plugins ... mples2.zip

    animated3dobj.cap

    Animated textures for the 3dobject anyone?

    draw3dobj.cap

    By giving the 3dobject the texture of a canvas, you can draw your own texture.

    coolcubes.cap

    Using part of the display as a texture.

    pixelscale.cap

    Crisp 2x pixel scaling method.

    Some Notes:

    The 3dbox object does not work with this plug.

    Also you will get a runtime error if you use any object that doesn't have a texture as a parameter.

  • You need to use SetValue:

    SOL.Sprite.SetValue('Home', System.globalvar("tempHome"))

  • You can select the newly created sprite in python with:

    SOL.Sprite[/code:17ps0prp]
  • The source for the webcam object is unavailable, and I don't have direct access to a webcam to do any testing. You can try using python to access the webcam.

    This one looks pretty good:

    http://videocapture.sourceforge.net/

  • Hi,

    The webcam object is working for me with windows vista. Can you capture images with the webcam object?

    The only thing I've found that may be of help is this:

    http://www.wikihow.com/Fix-a-Webcam-That-Is-Displaying-a-Black-Screen-on-Windows

  • My problem : the player works very fine but not in fullscreen mode, is there anything I missed ?

    No, technically the video player is a window control so it doesn't work fullscreen.

  • - [Fix] (Untested, but hopefully works) Fix for sprites and tiled backgrounds not rendering in the editor on old graphics cards.

    They now render in the editor with my intel graphics card. There is white space when using the tiledBackground object with a non power of two texture, but that's not much of a problem.

    I must say in general that C2 is looking great. One small request though: could you add the "move at angle" action for sprites.