R0J0hound's Recent Forum Activity

  • Please add "rojohound", I'd like to see what I can do with this.

  • It appears that 'CopyToSprite' actually copies from the sprite. What's probably happening is the two functions 'CopyToSprite' and 'CopyFromSprite' both have the name 'CopyToSprite' in python. So the last one defined is the only one accessible. Easily fixable if the source were available.

    Edit:

    Also ImageManipulator.CopyToSprite(spritename) is incorrect.

    With functions (or methods) in construct, only two types work in python: numbers or strings. So the correct way would be: ImageManipulator.CopyToSprite('spritename'). If you use a number instead of a string, the objecttype with an OID (object id) equal to that number would be referenced. If the referenced objecttype has no image data it will cause a crash.

  • Can't you just drag the condition to be a subevent?

    <img src="http://img96.imageshack.us/img96/3114/draging.gif">

  • MouseKeyboard.AbsMouseX-Window.X will give you the X position of the mouse relative to the window.

  • 4ror

    Here is an example of a way to do mirroring:

    http://dl.dropbox.com/u/5426011/examples/pathmirror.cap

    vbmdsm

    This will make a path relative to the player:

    http://dl.dropbox.com/u/5426011/examples/pathrelative.cap/url]

    In doing that example I found a bug with the plugin: if the path starts off screen the object will not be drawn.

    Arima

    I plan on fixing some issues with the curved interpolation (which uses catmull-rom), And while i'm at it i'll see if I can get bezeir curves to work. I was using bezeir to begin with but was having an issue with the speed on the path not staying constant.

  • To avoid the sprite being tilted in between the animation angles. Change the Sprite's property "Rotation" from "Normal" to "N angles", and be sure the property "Rotations Count" is 8.

  • 1146Ullman

    That is a known problem. The solution is not to use the binary object when using python. It's no loss because python can do everything the binary object can do and more.

  • Do you have an object named "360"? If so you need to rename it so it doesn't start with a digit and it should work. Construct generates it's own python script on startup that builds an interface for each object, thus the 1027 lines.

  • [quote:2pn9fm58]+ System: "Solid" at (Sprite[RTS].DestX, Sprite[RTS].DestY)

    It's the System condition 'Object overlaps point'. And yes it works with an attribute instead of an object.

  • New Version:

    Path Movement 1.4

    Download:http://dl.dropbox.com/u/5426011/pathmovement/PathMovement1.4.zip

    After a short coding sprint here is a new version. I am now shortening the version number from 1.40 to 1.4, as there aren't any subversions. The major addition here is "acceleration" which allows for easing in and out with minimal events.

    New Features/Changes:

    + Added set/get speed (direction of motion is preserved)
    + Added Acceleration.
    + Added option to set location on path to either move the object or just the path under it.
    + Added option to compare path distance by 'floating point' or 'integer.
    + Added compare path distance in range.
    + Added compare path distance from endpoints.[/code:1jzg7mip]
  • Try Construct 3

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

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

    Here's a modification of your solution that should work.

    + System: While

    + System: "Solid" at (Sprite[RTS].DestX, Sprite[RTS].DestY)

    -> Waypoint: Set X to Random(DisplayWidth)

    -> Waypoint: Set Y to Random(DisplayHeight)

  • When you set the editbox's text limit you need to take into account the editbox's text length.

    e.g. instead of

    -> Eb_Str: Limit text to ST_Face.Value('LeftoverStringLength') characters

    use

    -> Eb_Str: Limit text to len(Eb_Str.Text)+ST_Face.Value('LeftoverStringLength') characters

    Also on the "HUD" event sheet, event 14,

    invert the condition

    then change it to less or equal instead of greater or equal.

    The only other issue that comes up is that limiting text length to 0 does nothing. so if you use up all 25 characters on the first two edit boxes, you will still be able to input one character on the others.

    Here's a quick example:

    Setup:

    * 3 different Editboxes

    * make all the edit boxes members of the Blue Family

    Code:

    + System: Always (every tick)
    -> System: Set global variable 'extra' to 25-len(EditBox.Text)-len(EditBox2.Text)-len(EditBox3.Text)
    -> Blue: Limit text to len(Blue.Text)+global('extra') characters
    
    + System: global('extra') Equal to 0
    + Blue: Pick by len(Blue.Text) Equal to 0
    -> Blue: Set read only On
    
    + System: Else
    -> Blue: Set read only Off[/code:1u2i8k3a]
    
    -Cheers
R0J0hound's avatar

R0J0hound

Member since 15 Jun, 2009

Twitter
R0J0hound has 155 followers

Connect with R0J0hound