R0J0hound's Recent Forum Activity

  • ctypes should be included with a python install and Construct uses python 2.6.

    Here are all the python files you need for ctypes, just extract into the "Construct\Data\Python" Directory.

    http://dl.dropbox.com/u/5426011/examples3/py.zip

  • It is understood that this is a feature request, and yes I think it could be possible to implement as a plugin or even by modifying Construct. I have some ideas on how it could be done as a plugin, but the problem is a lack of time to experiment with it as I don't know exactly how it could be done.

    All the posts with workarounds are trying to be be helpful by showing way's to continue making your game now despite the lack of large image support. There is no telling telling how long it will take before a feature gets implemented, if at all.

  • EDIT:

    Get rid of the OR conditions in events 28,29. OR causes problems so you need to rework your events so it's not used.

  • [quote:1flgyb0c]I think there may be a possible bug with "clear all nodes". Every time I do that it goes back to the starting node, even if I add one right after that, a tick after to boot.

    It appears to fix it by doing this after you clear then add nodes:

    -> Sprite: Set distance to 0 on the path, moving Object.
    [/code:1flgyb0c]
    
    [quote:1flgyb0c]Also, is there any way to slow the turning on angle to path?
    It would be nice if the sprites rotation was a constant speed.
    
    Disable "Angle to path" for better control.  You can make the max rotation speed of 50 degrees per second with a event like this:
    [code:1flgyb0c]+ System: Always (every tick)
    -> Sprite: Rotate 50*TimeDelta degrees toward (.X+cos(Sprite[PathMovement].GetAngle),.Y+sin(Sprite[PathMovement].GetAngle))
    [/code:1flgyb0c]
    
    [quote:1flgyb0c]And is there a way to set deceleration?
    
    You can cause deceleration by setting the acceleration in the opposite direction as the velocity.  The only catch is it will slow to zero and then accelerate past it.
  • Is the screen black when going to a certain layout or any layout?

    edit: just noticed you only have 2 layouts.

    Do you have a non transparent layer on that layout that's black? Even if you set it to invisible when editing it will be visible when it's run.

    That's what I would look for.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's pretty straightforward with the "is clockwise" system condition. I through the anglediff in there to make a threshold so that the Sprite isn't always thought to be turning.

    + Sprite: Pick by anglediff(.angle, 'oa') Greater than 1
        + System: Angle Sprite.Angle is Clockwise from Sprite ('oa')
        // turning right
        + System: Angle Sprite.Angle is Anticlockwise from Sprite ('oa')
        // turning left
    + System: Always (every tick)
    -> Sprite: Set 'oa' to.Angle
    [/code:2zibx2e6]
  • [quote:39wryl1a]Is global varible 'timer' equal to 140 - Create object.

    Which works however it creates as many of those objects as it can for 1 second, and I'm unable to fix it. Does anyone know a fix?

    Add a "trigger once" condition to that event.

    [quote:39wryl1a]Alternativly can someone explain how I can give each enemy a % chance to create an object upon death(There health varible = 0)

    Add a subevent to the event that destroys the object and add the condition system -> compare.

    + System: Random(2) Equal to 0[/code:39wryl1a]
    That would be a 50% chance of being true.
    [code:39wryl1a]+ System: Random(10) Less than to 9[/code:39wryl1a]
    And this would have a 90% Chance.
  • It's actually less height. You need to change the order of actions so that the variable vy is changed after the object is moved instead of before. Then the jump will be the same as the calculated.

  • Are global variables broken in python? They work for me. The crash related to text global variables was fixed a few builds ago. I made a typo with the syntax of accessing global variables in my other post. I forgot the "System.".

    System.globalvar('ip')[/code:1gtlnmm4]
    The name of the variable is case sensitive.  Is the name "ip" or "IP" in your cap?
    Also globalvar doesn't show in the right bar, it's just not listed.
  • Global variables can be accessed like this:

    globalvar('ip')[/code:1ptszih6]
    
    System.Close does work but you have to put parenthesis at the end since it is a action:
    [code:1ptszih6]System.Close()[/code:1ptszih6]
    
    And that bug is because scripting is enabled, 700 objects created and no scripts being run.
    There are two ways to avoid that bug:
    1 If you aren't using python at all but uncheck "enable scripting"
    2 Just run a script every frame.  It doesn't even have to do anything, a comment will work.
  • Hi,

    A posted cap along with a description of the problem always gets a solution faster than just a description.

    I recreated what you described in your second post and it work fine.

    + MouseKeyboard: On key Shift pressed
        + Sprite: Value 'crouching' Equal to 0
        -> Sprite: Set 'crouching' to 1
        + System: Else
        -> Sprite: Set 'crouching' to 0
    + Sprite: Value 'crouching' Equal to 0
    -> Sprite: Set height to 50
    + Sprite: Value 'crouching' Equal to 1
    -> Sprite: Set height to 25[/code:1ziy5fze]
    
    In your cap is the initial value of the crouching variable set to one of the two 0,1 or is it another value.  It may just be something that's amiss with the order of your events, although I can't say for sure.  If you post the cap a solution should be found fairly quickly.
  • To be able to restore the window change the script to:

    from ctypes import *
    hwnd=Window.AppWindow
    region=windll.gdi32.CreateEllipticRgn(0,0,640,480)
    oldRegion=windll.user32.SetWindowRgn(hwnd,region,0)[/code:297le7j1]
    then later when you want to restore the window shape run this:
    [code:297le7j1]windll.user32.SetWindowRgn(hwnd,oldRegion,0)[/code:297le7j1]
R0J0hound's avatar

R0J0hound

Member since 15 Jun, 2009

Twitter
R0J0hound has 155 followers

Connect with R0J0hound